X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fmac80211%2Fchan.c;h=0c1ecfdf9a128b05f76e545d3e0b95de50123176;hb=084c6c5013af3c62f1c344435214496f5ac999f2;hp=f43613a97dd664e2daf1856b001d7bdee5708d4f;hpb=b6e53f321ee6f4b237d8cc54fbace3217fa96e05;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;