mac80211: recalc min_def chanctx even when chandef is identical
authorArik Nemtsov <arik@wizery.com>
Wed, 2 Mar 2016 21:28:33 +0000 (23:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 08:51:08 +0000 (10:51 +0200)
commitaa507a7bc5ab7513b83fc37ed040b5254737a518
tree2563b92e174b47c18bfd73729edadb96f8b40dd9
parent59021c675995281d453eee45b3e2e1e3edbc0ec2
mac80211: recalc min_def chanctx even when chandef is identical

The min_def chanctx is affected not only by the current chandef, but
sometimes also by other stations on the vif. There's a valid scenario
where a TDLS peer can widen its BW, thereby causing the min_def
to increase.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c