diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 9a974579ba8999af07c8175fc89e70781bd6a317..cd8b1fb05d42498885976aa4df8a780e2156e97c 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -689,7 +689,8 @@ static int ieee80211_set_channel(struct wiphy *wiphy, case CHAN_MODE_HOPPING: return -EBUSY; case CHAN_MODE_FIXED: - if (local->oper_channel != chan) + if (local->oper_channel != chan || + (!sdata && local->_oper_channel_type != channel_type)) return -EBUSY; if (!sdata && local->_oper_channel_type == channel_type) return 0;