mac80211: consider virtual mon when calculating min_def
authorEliad Peller <eliad@wizery.com>
Mon, 3 Mar 2014 11:37:14 +0000 (13:37 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Mar 2014 12:48:13 +0000 (13:48 +0100)
commit1c37a72c1bd0b83be8b95cff7f1bc9b1f32bd433
treebc759ac5b4ff6a996cd7ffb47b16aed0cc670bf4
parentcb664981607a6b5b3d670ad57bbda893b2528d96
mac80211: consider virtual mon when calculating min_def

When calculating the current max bw required for
a channel context, we didn't consider the virtual
monitor interface, resulting in its channel context
being narrower than configured.

This broke monitor mode with iwlmvm, which uses the
minimal width.

Reported-by: Ido Yariv <idox.yariv@intel.com>
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c