diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 9620d4fba0d1..4d15a1566cd5 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -3251,7 +3251,7 @@ int ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, | |||
3251 | 3251 | ||
3252 | /* don't handle for multi-VIF cases */ | 3252 | /* don't handle for multi-VIF cases */ |
3253 | chanctx = container_of(conf, struct ieee80211_chanctx, conf); | 3253 | chanctx = container_of(conf, struct ieee80211_chanctx, conf); |
3254 | if (chanctx->refcount > 1) { | 3254 | if (ieee80211_chanctx_refcount(local, chanctx) > 1) { |
3255 | mutex_unlock(&local->chanctx_mtx); | 3255 | mutex_unlock(&local->chanctx_mtx); |
3256 | return -EBUSY; | 3256 | return -EBUSY; |
3257 | } | 3257 | } |