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