Closed adriansmares closed 6 months ago
Hello @adriansmares,
Thanks for the catch! It will be fixed in the next release. In the meantime, your proposal is valid.
Hello,
This issue was solved in the release v4.4.0-feature-relay. I will let you close the issue if the fix is ok for you.
The fix looks good to me and I cannot reproduce this anymore in v4.4.0-feature-relay
👍 .
When LBM is compiled with relay RX support, LBM will ignore relay MAC commands (FPort 0) which are sent as a response to a uplink forwarding request (FPort 226). This happens because the following part of the MAC command parser checks the TX port instead of the RX port:
https://github.com/Lora-net/SWL2001/blob/c4f386ac54b3e35f45b8ba7502207faa6f634921/smtc_modem_core/lr1mac/src/lr1_stack_mac_layer.c#L1424-L1440
I think this is a mistake, as non-relay MAC commands are processed, but relay MAC commands themselves cannot be sent as a response to a relay forwarding request. A possible fixup may be to check the RX metadata instead: