mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-04-26 10:57:20 +00:00
Link delivery adds ~64 bytes of overhead (dest_hash + Token IV/HMAC/padding) which can push encrypted payloads past the 255-byte LoRa MTU. SX1262::write() silently truncates, corrupting the HMAC and failing decryption on the receiver. Band-aid: cap link delivery plaintext at 180 bytes, falling back to opportunistic delivery for larger messages. Long-term fix needed: negotiate link MTU based on interface HW_MTU, or implement Resource-based multi-packet transfer for oversized payloads.