the NAV should be updated only when the packet is _not_ addressed to us. (see section 9.2.5.4)
authorFederico Maguolo <maguolof@dei.unipd.it>
Fri, 22 Feb 2008 23:16:51 +0100
changeset 2348 e56aa089a268
parent 2347 78ef05e7239d
child 2349 b1df486516a4
the NAV should be updated only when the packet is _not_ addressed to us. (see section 9.2.5.4)
src/devices/wifi/mac-low.cc
--- a/src/devices/wifi/mac-low.cc	Wed Feb 20 19:40:36 2008 +0100
+++ b/src/devices/wifi/mac-low.cc	Fri Feb 22 23:16:51 2008 +0100
@@ -687,7 +687,7 @@
     }
   // XXX Note that we should also handle CF_END specially here
   // but we don't for now because we do not generate them.
-  else if (hdr.GetAddr1 () == m_device->GetSelfAddress ())
+  else if (hdr.GetAddr1 () != m_device->GetSelfAddress ())
     {
       // see section 9.2.5.4 802.11-1999
       bool navUpdated = DoNavStartNow (duration);