jgromes / RadioLib

Universal wireless communication library for embedded devices
https://jgromes.github.io/RadioLib/
MIT License
1.52k stars 381 forks source link

[LoRaWAN] Session restore doesn't handle a lack of channel mask #1238

Closed StevenCellist closed 4 days ago

StevenCellist commented 6 days ago

Reported by two individual users, there is a problem with the new LoRaWAN channel mask logic introduced in 7.0. As long as no ADR downlink is received, there is no channel mask set for the ADR command in the session buffer, and as a result, restoring this buffer means that all channels are disabled / datarate fails to configure as there are no channels for it.

This must be fixed and integrated into 7.0.1, hope to fix by Saturday.