mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
wireless: fix ERP rate flags
In the rate API patch I accidentally reverted the test for ERP rates, this fixes it. All rates except 1, 2, 5.5 and 11 MBit are ERP rates, not those. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
b7c50de92e
commit
aac09fbf82
@ -73,10 +73,10 @@ static void set_mandatory_flags_band(struct ieee80211_supported_band *sband,
|
||||
want--;
|
||||
}
|
||||
|
||||
if (sband->bitrates[i].bitrate == 10 ||
|
||||
sband->bitrates[i].bitrate == 20 ||
|
||||
sband->bitrates[i].bitrate == 55 ||
|
||||
sband->bitrates[i].bitrate == 110)
|
||||
if (sband->bitrates[i].bitrate != 10 &&
|
||||
sband->bitrates[i].bitrate != 20 &&
|
||||
sband->bitrates[i].bitrate != 55 &&
|
||||
sband->bitrates[i].bitrate != 110)
|
||||
sband->bitrates[i].flags |=
|
||||
IEEE80211_RATE_ERP_G;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user