cfg80211: add operating classes 128-130
authorEliad Peller <[email protected]>
Sun, 1 Mar 2015 07:10:01 +0000 (09:10 +0200)
committerJohannes Berg <[email protected]>
Tue, 3 Mar 2015 14:56:07 +0000 (15:56 +0100)
Operating classes 128-130 are defined in the 11ac
spec for the 5GHz band.

Update ieee80211_operating_class_to_band() to support them.

Signed-off-by: Eliad Peller <[email protected]>
Signed-off-by: Emmanuel Grumbach <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
net/wireless/util.c

index 6903dbdcb8c1f03bcef684ad1074e3dea9f18e18..f7b35980af6946c870f391a56c3324d86750437a 100644 (file)
@@ -1296,6 +1296,7 @@ bool ieee80211_operating_class_to_band(u8 operating_class,
        switch (operating_class) {
        case 112:
        case 115 ... 127:
+       case 128 ... 130:
                *band = IEEE80211_BAND_5GHZ;
                return true;
        case 81: