Bug 2267

Summary: Wrong channel bandwidth value in pcap files
Product: ns-3 Reporter: P <songrittom>
Component: wifiAssignee: sebastien.deronne
Status: RESOLVED FIXED    
Severity: minor CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: fix for bug 2267

Description P 2016-01-15 23:37:19 UTC
I found txVector.GetChannelWidth() has return value in MHz units. but yans-wifi-helper.cc use in Hz units.

for example.

if (txVector.GetChannelWidth () == 40000000)
    {
                mcsFlags |= RadiotapHeader::MCS_FLAGS_BANDWIDTH_40;
    }
Comment 1 sebastien.deronne 2016-01-16 05:47:42 UTC
It looks indeed not correct.

When implementing 802.11ac, I had originally chosen for getting the bandwidth in Hz, but then I went back to Mhz units. Apparently that part of the code was forgotten to be adapted. I will test and prepare a fix today.
Comment 2 sebastien.deronne 2016-01-16 06:06:27 UTC
Created attachment 2238 [details]
fix for bug 2267

I added a fix for this bug.
Since it is an obvious one, I will deliver it in ns-3-dev immediately.
Thanks for reporting!
Comment 3 sebastien.deronne 2016-01-16 06:12:37 UTC
pushed in 11821:2965f0748903