Lora-net / SWL2001

LoRa Basics Modem LoRaWAN stack
BSD 3-Clause Clear License
87 stars 50 forks source link

EndDeviceConfReq does not correctly parse backoff field #28

Closed adriansmares closed 6 months ago

adriansmares commented 7 months ago

When LBM is compiled with relay TX support, the parsers for the EndDeviceConfReq MAC command considers the backoff field to be 5 bits long:

https://github.com/Lora-net/SWL2001/blob/c4f386ac54b3e35f45b8ba7502207faa6f634921/smtc_modem_core/lr1mac/src/relay/relay_tx/relay_tx_mac_parser.c#L124

The backoff field has a range of 0 to 63 - is actually 6 bits long:

image
lbm-team commented 6 months ago

Hello,

This issue was solved in the release v4.4.0-feature-relay.