Message ID | 157397585.158001432723579684.JavaMail.weblogic@epmlwas02d (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Johannes Berg |
Headers | show |
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;