lr-wpan: Beacon improvements and fixes

This MR focuses on improvements and fixes related to using beacons in lr-wpan.

  • Fixes an important problem in which beacon payloads were pointers. In reality, this should be a "set of octets" stored in the MAC layer. A std::vector<uint8_t> is now used to store the values of the beacon payload.
  • In LrWpanMac::PdDataIndication the reception of beacons is now separated in an independent ReceiveBeacon() function. This reduces the bloat in the PdDataIndication Function and improves the possibility of catching errors in beacon receptions.
  • General readability fixes: Remove NS_LOG_FUNCTION from some Get/Set functions, remove the word "address" from the NS_LOG context, and Modify the printed LOG in PdDatIndication to print according to the combination of Short and Ext addresses in source and destinations.

Further fixes and improvements both related to PdDataIndication and Beacon timings will follow this fix.

Release notes and changes will be updated before the final push.

Edited by Alberto Gallegos

Merge request reports

Loading