wifi: mac80211: use correct iftype HE cap
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Jun 2023 09:11:23 +0000 (12:11 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 08:04:18 +0000 (10:04 +0200)
commitc37ab22bb1a43cdca8bf69cc0a22f1ccfc449e68
tree3ee54d1b2a9554d91f9f09a21853fdb4c45651f8
parentead449023d3acb1424886d7b8cc672ed69bdd27e
wifi: mac80211: use correct iftype HE cap

We already check that the right iftype capa exists,
but then don't use it. Assign it to a variable so we
can actually use it, and then do that.

Fixes: bac2fd3d7534 ("mac80211: remove use of ieee80211_get_he_sta_cap()")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230604120651.0e908e5c5fdd.Iac142549a6144ac949ebd116b921a59ae5282735@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/he.c