From 165d72e17e036d22387a926f29351feba596cd42 Mon Sep 17 00:00:00 2001 From: Charline Taibi Guguen Date: Mon, 12 Apr 2010 13:24:25 +0200 Subject: [PATCH] bug 813 - Nqos AP sends packet to non associated STA --- src/devices/wifi/nqap-wifi-mac.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/devices/wifi/nqap-wifi-mac.cc b/src/devices/wifi/nqap-wifi-mac.cc index 8563cddc6..1f66944be 100644 --- a/src/devices/wifi/nqap-wifi-mac.cc +++ b/src/devices/wifi/nqap-wifi-mac.cc @@ -312,13 +312,19 @@ void NqapWifiMac::Enqueue (Ptr packet, Mac48Address to, Mac48Address from) { NS_LOG_FUNCTION (this << packet << to << from); - ForwardDown (packet, from, to); + if (to.IsBroadcast () || m_stationManager->IsAssociated (to)) + { + ForwardDown (packet, from, to); + } } void NqapWifiMac::Enqueue (Ptr packet, Mac48Address to) { NS_LOG_FUNCTION (this << packet << to); - ForwardDown (packet, m_low->GetAddress (), to); + if (to.IsBroadcast () || m_stationManager->IsAssociated (to)) + { + ForwardDown (packet, m_low->GetAddress (), to); + } } bool NqapWifiMac::SupportsSendFrom (void) const