nl80211: support setting S1G channels
authorThomas Pedersen <thomas@adapt-ip.com>
Tue, 8 Sep 2020 19:03:06 +0000 (12:03 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2020 10:31:17 +0000 (12:31 +0200)
commit11b34737b18a70c74d5cf13ee58d36e95879013c
tree3c0aca151a847aa8335eaf2adc171de42f6ee89b
parent1d47f1198d58117735edc6b8b1a687db47883f1e
nl80211: support setting S1G channels

S1G channels have a single width defined per frequency, so
derive it from the channel flags with
ieee80211_s1g_channel_width().

Also support setting an S1G channel where control frequency may
differ from operating, and add some basic validation to
ensure the control channel is with the operating.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200908190323.15814-6-thomas@adapt-ip.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/chan.c
net/wireless/util.c