mac80211: fix broken use of VHT/20Mhz with some APs
authorEyal Shapira <eyal@wizery.com>
Thu, 4 Sep 2014 19:37:55 +0000 (22:37 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 5 Sep 2014 11:54:07 +0000 (13:54 +0200)
commitf3000e1b43f164802f2a74c9de6a398943a36378
tree5a7c84aad441dce8b65d35a11d1467e19f2f7f46
parenta4bcaf5556da649f0160e60fa7b4bb2c29801c12
mac80211: fix broken use of VHT/20Mhz with some APs

commit "mac80211: disable 40MHz support in case of 20MHz AP"
broke working VHT in 20Mhz with APs like Netgear R6300v2 which
do not publish support for 40Mhz but allow use of VHT in 20Mhz.
The break is because VHT is disabled once no HT cap doesn't indicate
support for 40Mhz. This causes the assoc request to be sent without
any VHT IE and the association is only HT due to this.

For more details check out commit 4a817aa7
"mac80211: allow VHT with peers not capable of 40MHz"

Fixes: 53b954ee4a71 ("mac80211: disable 40MHz support in case of 20MHz AP")
Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c