diff options
author | Aloka Dixit <quic_alokad@quicinc.com> | 2023-01-30 16:12:24 -0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-02-14 12:09:18 +0100 |
commit | b25413fed3d43e1ed3340df4d928971bb8639f66 (patch) | |
tree | b846a3467ed463a20494f4fdc1fc54da9dd4851c /include/net/cfg80211.h | |
parent | 90b2c3cc4b718d7e5591e812313dd72677d9fad0 (diff) | |
download | linux-stable-b25413fed3d43e1ed3340df4d928971bb8639f66.tar.gz linux-stable-b25413fed3d43e1ed3340df4d928971bb8639f66.tar.bz2 linux-stable-b25413fed3d43e1ed3340df4d928971bb8639f66.zip |
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>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 70f01ea5ba5c..191603f32b37 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -8952,4 +8952,16 @@ static inline int cfg80211_color_change_notify(struct net_device *dev) 0, 0); } +/** + * cfg80211_valid_disable_subchannel_bitmap - validate puncturing bitmap + * @bitmap: bitmap to be validated + * @chandef: channel definition + * + * Validate the puncturing bitmap. + * + * Return: %true if the bitmap is valid. %false otherwise. + */ +bool cfg80211_valid_disable_subchannel_bitmap(u16 *bitmap, + const struct cfg80211_chan_def *chandef); + #endif /* __NET_CFG80211_H */ |