Message ID | 20201103091743.1924854-5-john@phrozen.org (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Johannes Berg |
Headers | show |
Series | mac80211: add multiple bssid support | expand |
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index cfe38480a3fc..457a956bb637 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -3508,6 +3508,9 @@ __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, if (sdata->vif.csa_active) return -EBUSY; + if (sdata->vif.multiple_bssid.flags & IEEE80211_VIF_MBSS_NON_TRANSMITTING) + return -EINVAL; + mutex_lock(&local->chanctx_mtx); conf = rcu_dereference_protected(sdata->vif.chanctx_conf, lockdep_is_held(&local->chanctx_mtx));