Commit aac09fbf authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

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: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b7c50de9
...@@ -73,10 +73,10 @@ static void set_mandatory_flags_band(struct ieee80211_supported_band *sband, ...@@ -73,10 +73,10 @@ static void set_mandatory_flags_band(struct ieee80211_supported_band *sband,
want--; want--;
} }
if (sband->bitrates[i].bitrate == 10 || if (sband->bitrates[i].bitrate != 10 &&
sband->bitrates[i].bitrate == 20 || sband->bitrates[i].bitrate != 20 &&
sband->bitrates[i].bitrate == 55 || sband->bitrates[i].bitrate != 55 &&
sband->bitrates[i].bitrate == 110) sband->bitrates[i].bitrate != 110)
sband->bitrates[i].flags |= sband->bitrates[i].flags |=
IEEE80211_RATE_ERP_G; IEEE80211_RATE_ERP_G;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment