From 8ee18d95c8f3c1692fd2cba008385d1100e86991 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Mon, 12 Apr 2010 14:12:25 +0200 Subject: [PATCH] bug 813 also affects Qap --- src/devices/wifi/qap-wifi-mac.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/devices/wifi/qap-wifi-mac.cc b/src/devices/wifi/qap-wifi-mac.cc index 4e64dd625..dff043919 100644 --- a/src/devices/wifi/qap-wifi-mac.cc +++ b/src/devices/wifi/qap-wifi-mac.cc @@ -439,14 +439,20 @@ void QapWifiMac::Enqueue (Ptr packet, Mac48Address to, Mac48Address from) { NS_LOG_FUNCTION (this << packet << from << to); - ForwardDown (packet, from, to); + if (to.IsBroadcast () || m_stationManager->IsAssociated (to)) + { + ForwardDown (packet, from, to); + } } void QapWifiMac::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