wifi: cfg80211: move puncturing bitmap validation from mac80211
authorAloka Dixit <quic_alokad@quicinc.com>
Tue, 31 Jan 2023 00:12:24 +0000 (16:12 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 14 Feb 2023 11:09:18 +0000 (12:09 +0100)
commitb25413fed3d43e1ed3340df4d928971bb8639f66
treeb846a3467ed463a20494f4fdc1fc54da9dd4851c
parent90b2c3cc4b718d7e5591e812313dd72677d9fad0
wifi: cfg80211: move puncturing bitmap validation from mac80211

- Move ieee80211_valid_disable_subchannel_bitmap() from mlme.c to
  chan.c, rename it as cfg80211_valid_disable_subchannel_bitmap()
  and export it.
- Modify the prototype to include struct cfg80211_chan_def instead
  of only bandwidth to support a check which returns false if the
  primary channel is punctured.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Link: https://lore.kernel.org/r/20230131001227.25014-2-quic_alokad@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/mac80211/mlme.c
net/wireless/chan.c