]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: do not advertise HE cap IE if HE disabled
authorShaul Triebitz <shaul.triebitz@intel.com>
Sat, 15 Dec 2018 09:03:20 +0000 (11:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Dec 2018 13:19:52 +0000 (14:19 +0100)
commit0261ce242400474a77e7e7ef376c301a6dc7be20
tree4817563334a235ed01d23e8159276bc183ded4c6
parentdb44c0b2b24df92b1009a2e3aff38bbb0d4eca54
mac80211: do not advertise HE cap IE if HE disabled

When disabling HE due to the lack of HT/VHT, do it
at an earlier stage to avoid advertising HE capabilities IE.
Also, at this point, no need to check if AP supports HE, since
it is already checked earlier (in ieee80211_prep_channel).

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c