X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fmac80211%2Fchan.c;h=0c1ecfdf9a128b05f76e545d3e0b95de50123176;hb=0f2776e6151a123552fd06b666fe755fa780a967;hp=f43613a97dd664e2daf1856b001d7bdee5708d4f;hpb=00e674702438b8b2abc9dd6b8b49d54a3e99baa7;p=~andy%2Flinux diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index f43613a97dd..0c1ecfdf9a1 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c @@ -100,6 +100,12 @@ ieee80211_get_chanctx_max_required_bw(struct ieee80211_local *local, } max_bw = max(max_bw, width); } + + /* use the configured bandwidth in case of monitor interface */ + sdata = rcu_dereference(local->monitor_sdata); + if (sdata && rcu_access_pointer(sdata->vif.chanctx_conf) == conf) + max_bw = max(max_bw, conf->def.width); + rcu_read_unlock(); return max_bw;