diff mbox

cfg80211: moving up BAND_2GHZ above BAND_5GHZ regulatory class [EDT]

Message ID 157397585.158001432723579684.JavaMail.weblogic@epmlwas02d (mailing list archive)
State Rejected
Delegated to: Johannes Berg
Headers show

Commit Message

Rahul Jain May 27, 2015, 10:46 a.m. UTC
EP-FEDC771DF4FF48A9829CB85254E29FD3

hello Joe, Rafel, Wireless Community,

I have incorporated your review comments. Please find updated patch.

From 30f4fb72bcb10f9f6589ea22e26e37631f07f8fe Mon Sep 17 00:00:00 2001
From: Rahul Jain 

Date: Mon, 25 May 2015 14:15:36 +0530
Subject: [PATCH] cfg80211: moving up BAND_2GHZ above BAND_5GHZ regulatory
class


Signed-off-by: Rahul Jain 

---
net/wireless/util.c |   12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

-- 
1.7.9.5


Thanks
-Rahul Jain
diff mbox

Patch

diff --git a/net/wireless/util.c b/net/wireless/util.c
index 70051ab..b1aca3e 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -1335,17 +1335,13 @@  bool ieee80211_operating_class_to_band(u8 operating_class,
       enum ieee80211_band *band)
{
switch (operating_class) {
+ case 81 ... 84:
+ *band = IEEE80211_BAND_2GHZ;
+ return true;
case 112:
- case 115 ... 127:
- case 128 ... 130:
+ case 115 ... 130:
*band = IEEE80211_BAND_5GHZ;
return true;
- case 81:
- case 82:
- case 83:
- case 84:
- *band = IEEE80211_BAND_2GHZ;
- return true;
case 180:
*band = IEEE80211_BAND_60GHZ;
return true;