]> www.infradead.org Git - users/dwmw2/linux.git/commit
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:16:47 +0000 (11:16 +0200)
commit16971b41c2eb38e259c596b6ddfa1ff3ba266d13
tree7eaf3ef5bd325e6c72fa82e79313ebd85f4a24a6
parent65f907344c42f2cb2dc7f6b1fdc0e615c57f263d
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