Bug 1015 - GetChannelFrequencyMhz() does not match with standard
GetChannelFrequencyMhz() does not match with standard
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
pre-release
All All
: P5 normal
Assigned To: Nicola Baldo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-25 13:32 EDT by Gary Pei
Modified: 2010-10-26 08:02 EDT (History)
1 user (show)

See Also:


Attachments
Modify GetChannelFrequencyMhz to get the center freqency correctly for 802.11a. (1.63 KB, patch)
2010-10-25 13:32 EDT, Gary Pei
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Pei 2010-10-25 13:32:58 EDT
Created attachment 1005 [details]
Modify GetChannelFrequencyMhz to get the center freqency correctly for 802.11a.

According to 802.11-2007 equation 17-27 on page 613 for 802.11a 5GHz:

Channel center frequency = Channel starting frequency + 5 × nch (MHz) (17-27)

Thus, for example, channel 36 should be 5180 MHz. However, current code return 5175 MHz. Current code is correct for 802.11b/g.
Comment 1 Nicola Baldo 2010-10-26 08:02:38 EDT
I applied a different (simpler) fix

changeset:   6644:a5cf56882003