wifi: (fixes #862) Cancel AssocReq timer upon dissociation

This commit is contained in:
Stefano Avallone
2023-04-30 22:29:57 +02:00
committed by Stefano Avallone
parent 1cd2f4b66c
commit c94bae8e58
2 changed files with 3 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ Release 3-dev
- (lr-wpan) !1406 - Fixes issues during MAC scan
- (wifi) #880 - Post-install change in WifiPhy::ChannelSettings does not completely reconfigure Wi-Fi
- (energy) !1422 - Fix null harvester issue in EnergySource
- (wifi) #862 - sta-wifi-mac.cc cond="!link.bssid.has_value()", High occurrence at higher numbers of STAs per AP in indoor deployment.
Release 3.38
------------

View File

@@ -674,6 +674,8 @@ StaWifiMac::Disassociated(uint8_t linkId)
NS_LOG_DEBUG("Set state to UNASSOCIATED and start scanning");
SetState(UNASSOCIATED);
// cancel the association request timer (see issue #862)
m_assocRequestEvent.Cancel();
auto mldAddress = GetWifiRemoteStationManager(linkId)->GetMldAddress(GetBssid(linkId));
if (GetNLinks() > 1 && mldAddress.has_value())
{