lr-wpan: MAC layer AssignStreams function fixes

This commit is contained in:
Alberto Gallegos Ramonet
2024-06-28 10:31:52 +09:00
parent 144d1952c1
commit c856c57fe5
2 changed files with 6 additions and 3 deletions

View File

@@ -19,14 +19,17 @@ Changes from ns-3.42 to ns-3-dev
### New API
### Changes to existing API
* (lr-wpan) Attribute `macBeaconPayload` in `MacPibAttributes` is now a std::vector<uint8_t> instead of a packet pointer.
* (lr-wpan) Removes the word `address` from the MAC address prefix when `LOG_PREFIX_FUNC` is used.
* (lr-wpan) Removes the word `address` from the CSMA-CA logs prefix when `LOG_PREFIX_FUNC` is used.
* (wifi) The `WifiHelper::AssignStreams()` method has been made static
* (wifi) The `WifiHelper::AssignStreams()` method has been made static.
* (lr-wpan) Added `AssignStreams` function to the MAC.
### Changes to build system
### Changed behavior
* (lr-wpan) Beacons are now transmitted using CSMA-CA when requested from a beacon request command.
* (lr-wpan) Upon a beacon request command, beacons are transmitted after a jitter to reduce the probability of collisions.

View File

@@ -3006,8 +3006,8 @@ LrWpanMac::AssignStreams(int64_t stream)
{
NS_LOG_FUNCTION(this);
m_uniformVar->SetStream(stream);
m_csmaCa->AssignStreams(stream);
return 1;
m_csmaCa->AssignStreams(stream + 1);
return 2;
}
void