mac80211: don't require VHT elements for HE on 2.4 GHz
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Oct 2020 12:01:57 +0000 (14:01 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 30 Oct 2020 09:22:42 +0000 (10:22 +0100)
commitc2f46814521113f6699a74e0a0424cbc5b305479
tree44b5a03c3ce8cbd8094d4b094667c6da9f349e7c
parentdb18d20d1cb0fde16d518fb5ccd38679f174bc04
mac80211: don't require VHT elements for HE on 2.4 GHz

After the previous similar bugfix there was another bug here,
if no VHT elements were found we also disabled HE. Fix this to
disable HE only on the 5 GHz band; on 6 GHz it was already not
disabled, and on 2.4 GHz there need (should) not be any VHT.

Fixes: 57fa5e85d53c ("mac80211: determine chandef from HE 6 GHz operation")
Link: https://lore.kernel.org/r/20201013140156.535a2fc6192f.Id6e5e525a60ac18d245d86f4015f1b271fce6ee6@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c