nl80211: fix NL80211_ATTR_HE_6GHZ_CAPABILITY usage
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Aug 2020 13:35:18 +0000 (15:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Sep 2020 09:24:03 +0000 (11:24 +0200)
commitba1bc48691d47f56c950c2e048d59e7595c1ca19
tree64306047dc850d4dc7684417a3d262c56fee1de7
parent3def2670934b0f98211106eb1b58637336c1d428
nl80211: fix NL80211_ATTR_HE_6GHZ_CAPABILITY usage

commit fce2ff728f95b8894db14f51c9274dc56c37616f upstream.

In nl80211_set_station(), we check NL80211_ATTR_HE_6GHZ_CAPABILITY
and then use NL80211_ATTR_HE_CAPABILITY, which is clearly wrong.
Fix this to use NL80211_ATTR_HE_6GHZ_CAPABILITY as well.

Cc: stable@vger.kernel.org
Fixes: 43e64bf301fd ("cfg80211: handle 6 GHz capability of new station")
Link: https://lore.kernel.org/r/20200805153516.310cef625955.I0abc04dc8abb2c7c005c88ef8fa2d0e3c9fb95c4@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c