Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wireless: fix ERP rate flags
@ 2008-01-30 16:36 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2008-01-30 16:36 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

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>
---
 net/wireless/util.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- everything.orig/net/wireless/util.c	2008-01-30 17:33:46.643217990 +0100
+++ everything/net/wireless/util.c	2008-01-30 17:33:59.603217177 +0100
@@ -73,10 +73,10 @@ static void set_mandatory_flags_band(str
 				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;
 		}



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-30 16:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 16:36 [PATCH] wireless: fix ERP rate flags Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox