mac80211: simplify and improve HT/VHT/HE disable code
authorJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jan 2020 11:12:39 +0000 (13:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Feb 2020 11:37:54 +0000 (12:37 +0100)
commit75e296e9b22aef6fa467523ace87ef623dac1fad
treefd90823f4adc314d90d298bbfed423296acb4b77
parentd6039a3416f7af37c04f22c411f120ad46f51663
mac80211: simplify and improve HT/VHT/HE disable code

Check early on that a device has support for QoS (at least 4
queues) when it supports HT/VHT/HE, so we don't have to check
this while connecting.

This lets us clean up the code there: move some of it into
channel preparation to clean up a bit more, and then change
the logic to only check the "wmm_used" flag.

Additionally, disable HE consistently when VHT is disabled.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20200131111300.891737-3-luca@coelho.fi
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c
net/mac80211/mlme.c