diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-06-08 14:18:17 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-06-20 12:55:55 +0200 |
commit | a503a9535eb83afcbdcba7696b4bc7a1e17f93f2 (patch) | |
tree | d9de0874269e323a18bab0684909ecfcdd0cd0ad /net/mac80211 | |
parent | wifi: mac80211_hwsim: split bss_info_changed to vif/link info_changed (diff) | |
download | linux-a503a9535eb83afcbdcba7696b4bc7a1e17f93f2.tar.xz linux-a503a9535eb83afcbdcba7696b4bc7a1e17f93f2.zip |
wifi: mac80211: ignore IEEE80211_CONF_CHANGE_SMPS in chanctx mode
When channel contexts are used, IEEE80211_CONF_CHANGE_SMPS
doesn't make sense and doesn't apply (which is documented).
Mask it in this case.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 0eaa1f48efa7..08f153b82a23 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -175,7 +175,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) changed |= ieee80211_hw_conf_chan(local); else changed &= ~(IEEE80211_CONF_CHANGE_CHANNEL | - IEEE80211_CONF_CHANGE_POWER); + IEEE80211_CONF_CHANGE_POWER | + IEEE80211_CONF_CHANGE_SMPS); if (changed && local->open_count) { ret = drv_config(local, changed); |