mac80211: disable 40MHz support in case of 20MHz AP
authorEliad Peller <eliad@wizery.com>
Thu, 24 Jul 2014 08:20:05 +0000 (11:20 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Aug 2014 12:38:08 +0000 (14:38 +0200)
commit53b954ee4a71e782d7dfcdeee5bf4695caeeb112
tree77468f7957d3bbcec2d745c2932225acf3bc7f00
parenta74a8c846fb699f3277c0c21278bd4c414074b4a
mac80211: disable 40MHz support in case of 20MHz AP

If the AP only advertises support for 20MHz (in the
ht operation ie), disable 40MHz and VHT.

This can improve interoperability with APs that
don't like stations exceeding their own
advertised capabilities.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c