From: Arend van Spriel Date: Fri, 2 Aug 2019 11:31:01 +0000 (+0200) Subject: cfg80211: extend ieee80211_operating_class_to_band() for 6GHz X-Git-Tag: v5.15~5506^2~194^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=852f04620e5b7c27eadbf81d086d04f61431c9dc;p=platform%2Fkernel%2Flinux-starfive.git cfg80211: extend ieee80211_operating_class_to_band() for 6GHz Add 6GHz operating class range as defined in 802.11ax D4.1 Annex E. Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Leon Zegers Signed-off-by: Arend van Spriel Link: https://lore.kernel.org/r/1564745465-21234-5-git-send-email-arend.vanspriel@broadcom.com Signed-off-by: Johannes Berg --- diff --git a/net/wireless/util.c b/net/wireless/util.c index c18d4fc..27171aa 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -1474,6 +1474,9 @@ bool ieee80211_operating_class_to_band(u8 operating_class, case 128 ... 130: *band = NL80211_BAND_5GHZ; return true; + case 131 ... 135: + *band = NL80211_BAND_6GHZ; + return true; case 81: case 82: case 83: