equal
deleted
inserted
replaced
482 m_beaconWatchdog = Simulator::Schedule (delay, &QstaWifiMac::MissedBeacons, this); |
482 m_beaconWatchdog = Simulator::Schedule (delay, &QstaWifiMac::MissedBeacons, this); |
483 } |
483 } |
484 } |
484 } |
485 |
485 |
486 bool |
486 bool |
487 QstaWifiMac::IsAssociated () |
487 QstaWifiMac::IsAssociated (void) const |
488 { |
488 { |
489 return (m_state == ASSOCIATED)?true:false; |
489 return m_state == ASSOCIATED; |
|
490 } |
|
491 |
|
492 bool |
|
493 QstaWifiMac::IsWaitAssocResp (void) const |
|
494 { |
|
495 return m_state == WAIT_ASSOC_RESP; |
490 } |
496 } |
491 |
497 |
492 void |
498 void |
493 QstaWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to) |
499 QstaWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to) |
494 { |
500 { |
591 if (GetSsid ().IsBroadcast () || |
597 if (GetSsid ().IsBroadcast () || |
592 beacon.GetSsid ().IsEqual (GetSsid ())) |
598 beacon.GetSsid ().IsEqual (GetSsid ())) |
593 { |
599 { |
594 goodBeacon = true; |
600 goodBeacon = true; |
595 } |
601 } |
596 if (IsAssociated () && hdr->GetAddr3 () != GetBssid ()) |
602 if ((IsWaitAssocResp () || IsAssociated ()) && hdr->GetAddr3 () != GetBssid ()) |
597 { |
603 { |
598 goodBeacon = false; |
604 goodBeacon = false; |
599 } |
605 } |
600 if (goodBeacon) |
606 if (goodBeacon) |
601 { |
607 { |