diff options
-rw-r--r-- | net/mac80211/cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 9a974579ba89..cd8b1fb05d42 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -689,7 +689,8 @@ static int ieee80211_set_channel(struct wiphy *wiphy, | |||
689 | case CHAN_MODE_HOPPING: | 689 | case CHAN_MODE_HOPPING: |
690 | return -EBUSY; | 690 | return -EBUSY; |
691 | case CHAN_MODE_FIXED: | 691 | case CHAN_MODE_FIXED: |
692 | if (local->oper_channel != chan) | 692 | if (local->oper_channel != chan || |
693 | (!sdata && local->_oper_channel_type != channel_type)) | ||
693 | return -EBUSY; | 694 | return -EBUSY; |
694 | if (!sdata && local->_oper_channel_type == channel_type) | 695 | if (!sdata && local->_oper_channel_type == channel_type) |
695 | return 0; | 696 | return 0; |