bug 605: Nqsta MAC should ignore beacons SSIDs while waiting for association response
This commit is contained in:
@@ -453,9 +453,15 @@ NqstaWifiMac::RestartBeaconWatchdog (Time delay)
|
||||
}
|
||||
}
|
||||
bool
|
||||
NqstaWifiMac::IsAssociated (void)
|
||||
NqstaWifiMac::IsAssociated (void) const
|
||||
{
|
||||
return (m_state == ASSOCIATED)?true:false;
|
||||
return m_state == ASSOCIATED;
|
||||
}
|
||||
|
||||
bool
|
||||
NqstaWifiMac::IsWaitAssocResp (void) const
|
||||
{
|
||||
return m_state == WAIT_ASSOC_RESP;
|
||||
}
|
||||
|
||||
void
|
||||
@@ -553,7 +559,7 @@ NqstaWifiMac::Receive (Ptr<Packet> packet, WifiMacHeader const *hdr)
|
||||
{
|
||||
goodBeacon = true;
|
||||
}
|
||||
if (IsAssociated () && hdr->GetAddr3 () != GetBssid ())
|
||||
if ((IsWaitAssocResp () || IsAssociated ()) && hdr->GetAddr3 () != GetBssid ())
|
||||
{
|
||||
goodBeacon = false;
|
||||
}
|
||||
|
||||
@@ -130,7 +130,8 @@ private:
|
||||
void TryToEnsureAssociated (void);
|
||||
void AssocRequestTimeout (void);
|
||||
void ProbeRequestTimeout (void);
|
||||
bool IsAssociated (void);
|
||||
bool IsAssociated (void) const;
|
||||
bool IsWaitAssocResp (void) const;
|
||||
void MissedBeacons (void);
|
||||
void RestartBeaconWatchdog (Time delay);
|
||||
SupportedRates GetSupportedRates (void) const;
|
||||
|
||||
@@ -484,9 +484,15 @@ QstaWifiMac::RestartBeaconWatchdog (Time delay)
|
||||
}
|
||||
|
||||
bool
|
||||
QstaWifiMac::IsAssociated ()
|
||||
QstaWifiMac::IsAssociated (void) const
|
||||
{
|
||||
return (m_state == ASSOCIATED)?true:false;
|
||||
return m_state == ASSOCIATED;
|
||||
}
|
||||
|
||||
bool
|
||||
QstaWifiMac::IsWaitAssocResp (void) const
|
||||
{
|
||||
return m_state == WAIT_ASSOC_RESP;
|
||||
}
|
||||
|
||||
void
|
||||
@@ -593,7 +599,7 @@ QstaWifiMac::Receive (Ptr<Packet> packet, const WifiMacHeader *hdr)
|
||||
{
|
||||
goodBeacon = true;
|
||||
}
|
||||
if (IsAssociated () && hdr->GetAddr3 () != GetBssid ())
|
||||
if ((IsWaitAssocResp () || IsAssociated ()) && hdr->GetAddr3 () != GetBssid ())
|
||||
{
|
||||
goodBeacon = false;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,8 @@ private:
|
||||
void SendAssociationRequest (void);
|
||||
void SendProbeRequest (void);
|
||||
void TryToEnsureAssociated (void);
|
||||
bool IsAssociated (void);
|
||||
bool IsAssociated (void) const;
|
||||
bool IsWaitAssocResp (void) const;
|
||||
virtual void DoDispose (void);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user