summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-01-30 17:36:10 +0100
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:19:33 -0500
commitaac09fbf827b467995b00a1ea0213843a9e605b8 (patch)
tree04748962e5d88747183f0237fa73a99ee42f757c /net
parentb7c50de92e1b54fa4a9a2ee436b16ead3ee31767 (diff)
downloadblackbird-op-linux-aac09fbf827b467995b00a1ea0213843a9e605b8.tar.gz
blackbird-op-linux-aac09fbf827b467995b00a1ea0213843a9e605b8.zip
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>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 0dcccbf3eb57..e6046901055a 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -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;
}
OpenPOWER on IntegriCloud