diff options
| author | Aloka Dixit <quic_alokad@quicinc.com> | 2023-01-31 03:12:24 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-11 17:18:58 +0300 |
| commit | 3d6dcb6b9408b73c5cd0e44258ec4ea5a1bd85e7 (patch) | |
| tree | 704494861f967a634e0045b0010613fe157c25d9 /include/net | |
| parent | 225d8006d646cb3bf09343c64e8c21aa262003b5 (diff) | |
| download | linux-3d6dcb6b9408b73c5cd0e44258ec4ea5a1bd85e7.tar.xz | |
wifi: cfg80211: move puncturing bitmap validation from mac80211
[ Upstream commit b25413fed3d43e1ed3340df4d928971bb8639f66 ]
- 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>
Stable-dep-of: a519be2f5d95 ("wifi: mac80211: do not use old MBSSID elements")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net')
| -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 d15033420ca3..bf79788f1c5d 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -9056,4 +9056,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 */ |
