Bugzilla – Bug 2351
Wrong symbol rate calculation for channels with 10 and 5 Mhz width
Last modified: 2016-07-30 04:08:28 UTC
Created attachment 2360 [details] Suggested Patch WifiMode::GetDataRate function seems to calculate the symbol rate for 20Mhz channel, while considers other differences between 20, 10, and 5 Mhz channels such as the number of usable subcarriers. The function uses following line to calculate the symbol rate: double symbolRate = (1 / 4.0) * 1e6; While is should be: double symbolRate = (1 / 8.0) * 1e6; and: double symbolRate = (1 / 16.0) * 1e6; for the 10 Mhz channel width and the 5 Mhz channel width, respectively.
This could be pushed
wave-mac-extension is failing with those changes, I'll check before pushing
Patch is actually NOK, data rates are half of expected!
Created attachment 2504 [details] final patch The patch has been corrected: 10 MHz uses double symbol duration than 20 MHz, with the same number of subcarriers (and thus half subcarrier spacing). We now retrieve the correct data rate and tests are all passing fine.
patch is now ready to be pushed!
fixed in changeset 12229:9e43ad888f78