diff options
author | Johannes Berg <johannes.berg@intel.com> | 2024-01-29 20:35:45 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2024-02-08 15:00:44 +0100 |
commit | 55167a3eed53ce8b40d5bf2a3e0be4e15d2eba57 (patch) | |
tree | 7d34ba87afa6aca74f941f9d13072c705726f140 /net/mac80211/cfg.c | |
parent | wifi: mac80211: convert ieee80211_ie_build_eht_cap() to SKB use (diff) | |
download | linux-55167a3eed53ce8b40d5bf2a3e0be4e15d2eba57.tar.xz linux-55167a3eed53ce8b40d5bf2a3e0be4e15d2eba57.zip |
wifi: mac80211: allow CSA to same channel
This could be used e.g. for temporarily sending quiet
(mode=1 in CSA/ECSA), or updating bandwidth. This is
also useful for testing, since it's something that an
AP may do and the client needs to be prepared. Simply
allow it.
Link: https://msgid.link/20240129203544.ef7258d5790d.Idafe22e41621757458d4960659b9621853f7104d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 2ddaf0037952..17b445491881 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -3876,10 +3876,6 @@ __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, if (sdata->wdev.cac_started) return -EBUSY; - if (cfg80211_chandef_identical(&chanreq.oper, - &sdata->vif.bss_conf.chanreq.oper)) - return -EINVAL; - if (chanreq.oper.punctured && !sdata->vif.bss_conf.eht_support) return -EINVAL; |