]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: disable HT/VHT if AP has no HT/VHT capability
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Feb 2013 22:33:32 +0000 (23:33 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Feb 2013 08:41:35 +0000 (09:41 +0100)
commite91581aade9d12ca3d6fcd9d46be9ab4a779199a
tree3d48812d1ee8d43a42603c7f528927d56929516a
parent26cd6a920ff324507ba47afd741a8ae3e1bbda2d
mac80211: disable HT/VHT if AP has no HT/VHT capability

Having HT/VHT operation IEs but not capability IEs
leads to a strange situation where we configure the
channel to an HT or VHT bandwidth and then can't
actually use it. Prevent this by checking that the
HT and VHT capability IEs are present as well as
the operation IEs; if not, disable HT and/or VHT.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c