From ff776177bf44fc6d969492d669face80f02b826b Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Thu, 16 Oct 2008 12:47:17 +0200 Subject: [PATCH] bug 352: STA receives back the broadcasts it sends. --- src/devices/wifi/nqsta-wifi-mac.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/devices/wifi/nqsta-wifi-mac.cc b/src/devices/wifi/nqsta-wifi-mac.cc index 1b956b4ca..2f94f52d8 100644 --- a/src/devices/wifi/nqsta-wifi-mac.cc +++ b/src/devices/wifi/nqsta-wifi-mac.cc @@ -479,7 +479,10 @@ NqstaWifiMac::Receive (Ptr packet, WifiMacHeader const *hdr) } else if (hdr->IsData ()) { - ForwardUp (packet, hdr->GetAddr2 (), hdr->GetAddr1 ()); + if (hdr->GetAddr3 () != GetAddress ()) + { + ForwardUp (packet, hdr->GetAddr3 (), hdr->GetAddr1 ()); + } } else if (hdr->IsProbeReq () || hdr->IsAssocReq ())