cfg80211: fix 6 GHz channel conversion
authorJohannes Berg <johannes.berg@intel.com>
Thu, 17 Sep 2020 09:52:23 +0000 (11:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2020 09:43:46 +0000 (11:43 +0200)
commitc0de8776af6543e10d1a5c8969679fd9f6b66fa9
tree7d5dd94031d519e9e5f857d68c09604f9dec1d70
parent780a8c9efc65f6d86acd44794495cedcd32eeb26
cfg80211: fix 6 GHz channel conversion

We shouldn't accept any channels bigger than 233, fix that.

Reported-by: Amar <asinghal@codeaurora.org>
Fixes: d1a1646c0de7 ("cfg80211: adapt to new channelization of the 6GHz band")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200917115222.312ba6f1d461.I3a8c8fbcc3cc019814fd9cd0aced7eb591626136@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c