This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 1d36eb31c3772979bcb0e89b165f98322de40e36 Author: raiden00pl <[email protected]> AuthorDate: Thu Oct 22 13:25:38 2026 +0200 wireless/ieee802154: give 6LoWPAN the hub short address in network order The 6LoWPAN framer swaps a short address from network to MAC byte order, but the PAN coordinator address was returned in MAC order, so a star point sent its frames to the byte swapped hub address. Assisted-by: Claude Code Signed-off-by: raiden00pl <[email protected]> --- wireless/ieee802154/mac802154_netdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wireless/ieee802154/mac802154_netdev.c b/wireless/ieee802154/mac802154_netdev.c index 26298a2231f..b97692374c1 100644 --- a/wireless/ieee802154/mac802154_netdev.c +++ b/wireless/ieee802154/mac802154_netdev.c @@ -599,7 +599,10 @@ static int macnet_coord_saddr(FAR struct radio_driver_s *radio, return ret; } - IEEE802154_SADDRCOPY(saddr, arg.getreq.attrval.mac.saddr); + /* Network layers expect address in Network Order (Big Endian) */ + + saddr[0] = arg.getreq.attrval.mac.coordsaddr[1]; + saddr[1] = arg.getreq.attrval.mac.coordsaddr[0]; return OK; } #endif
