diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-08-05 15:35:18 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-08-20 17:23:03 +0200 |
commit | fce2ff728f95b8894db14f51c9274dc56c37616f (patch) | |
tree | 36b71f4efa0106d8c361194949250024e486cbbb /net/wireless/nl80211.c | |
parent | net: gemini: Fix missing free_netdev() in error path of gemini_ethernet_port_... (diff) | |
download | linux-fce2ff728f95b8894db14f51c9274dc56c37616f.tar.xz linux-fce2ff728f95b8894db14f51c9274dc56c37616f.zip |
nl80211: fix NL80211_ATTR_HE_6GHZ_CAPABILITY usage
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>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index c04fc6cf6583..19dc0ee807f6 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -6011,7 +6011,7 @@ static int nl80211_set_station(struct sk_buff *skb, struct genl_info *info) if (info->attrs[NL80211_ATTR_HE_6GHZ_CAPABILITY]) params.he_6ghz_capa = - nla_data(info->attrs[NL80211_ATTR_HE_CAPABILITY]); + nla_data(info->attrs[NL80211_ATTR_HE_6GHZ_CAPABILITY]); if (info->attrs[NL80211_ATTR_AIRTIME_WEIGHT]) params.airtime_weight = |