[Ns-developers] Bug in ApWifiMac
Ruben Merz
ruben at net.t-labs.tu-berlin.de
Fri Mar 25 17:01:21 PDT 2011
Thanks for the report,
I created bug 1080 (http://www.nsnam.org/bugzilla/show_bug.cgi?id=1080).
Could you let us know which version of ns-3 you are using? And if you
have a ns-3 simulation file that we can use to reproduce this bug, we
would be glad if you can attach it to the bug report.
Ruben
On 3/25/11 10:18 , Sergio Mtnez wrote:
> I think I have found a bug in ApWifiMac.
>
> When an AP receive a Mgt packet from another AP, lets say a Beacon
> frame, it doesn't know how to handle it and drops this error:
>
> NS_FATAL_ERROR ("Don't know how to handle frame (type="<<
> hdr->GetType ()); //Type is five in case of MGT_BEACON
>
> I have fixed it by this patch:
>
> --- a/src/devices/wifi/ap-wifi-mac.cc Wed Jan 05 21:00:01 2011 -0800
> +++ b/src/devices/wifi/ap-wifi-mac.cc Thu Mar 24 20:29:46 2011 +0100
> @@ -530,6 +530,13 @@
> return;
> }
> }
> + else if( from != GetAddress()&& hdr->GetAddr1 () != GetAddress () )
> + {
> + // this is an Mgt packet from another AP not for us
> + // we can ignore it.
> + NotifyRxDrop (packet);
> + return;
> + }
> }
More information about the Ns-developers
mailing list