wifi: (fixes #880) Init last busy structs at initialization time

Otherwise, channel changes done after Install() and before Initialize()
do not trigger an update of the last busy structs.
This commit is contained in:
Stefano Avallone
2023-04-05 22:39:22 +02:00
parent db2be4a9d9
commit fcaffe8f51
4 changed files with 17 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ Release 3-dev
### Bugs fixed
- (lr-wpan) !1406 - Fixes issues during MAC scan
- (wifi) #880 - Post-install change in WifiPhy::ChannelSettings does not completely reconfigure Wi-Fi
Release 3.38
------------

View File

@@ -139,6 +139,13 @@ ChannelAccessManager::~ChannelAccessManager()
m_phyListener = nullptr;
}
void
ChannelAccessManager::DoInitialize()
{
NS_LOG_FUNCTION(this);
InitLastBusyStructs();
}
void
ChannelAccessManager::DoDispose()
{

View File

@@ -261,6 +261,7 @@ class ChannelAccessManager : public Object
bool IsBusy() const;
protected:
void DoInitialize() override;
void DoDispose() override;
private:

View File

@@ -363,6 +363,14 @@ WifiMac::DoInitialize()
{
it->second->Initialize();
}
for (auto& link : m_links)
{
if (auto cam = link->channelAccessManager)
{
cam->Initialize();
}
}
}
void