OSDN Git Service

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)
commitdc7eb0f2c23f58bc0e15574bda2dc8498d30a833
tree4817563334a235ed01d23e8159276bc183ded4c6
parent002245ec20b273bc1e31ed8fbee01396955a0f19
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