wifi: mac80211: use correct iftype HE cap
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Jun 2023 09:11:23 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:15:18 +0000 (11:15 +0200)
commit434cf4fbee4e3c26f1305865307ae52097e1e342
tree47a1fe4aec4a8839712e5ab714f77ad019349e90
parent3e8a7573ff9f43b76e7056b5ed32ea4b93e6ca10
wifi: mac80211: use correct iftype HE cap

[ Upstream commit c37ab22bb1a43cdca8bf69cc0a22f1ccfc449e68 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/he.c