]> err.no Git - linux-2.6/commitdiff
wireless: fix ERP rate flags
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 30 Jan 2008 16:36:10 +0000 (17:36 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Feb 2008 20:19:33 +0000 (15:19 -0500)
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>
net/wireless/util.c

index 0dcccbf3eb57f22314e8a642d8a90a7309222107..e6046901055ad4690c3736ab330271516ae8cd2c 100644 (file)
@@ -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;
                }