diff options
author | Johannes Berg <johannes.berg@intel.com> | 2024-01-29 17:53:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-01 15:34:54 +0300 |
commit | c7a4f932b3a602e94cf4cb4c42b9b1389e548d1d (patch) | |
tree | 2c241409a814bbf35916928daac933c201a0e258 /net | |
parent | 52fff5799e3d1b5803ecd2f5f19c13c65f4f7b23 (diff) | |
download | linux-c7a4f932b3a602e94cf4cb4c42b9b1389e548d1d.tar.xz |
wifi: mac80211: set station RX-NSS on reconfig
[ Upstream commit dd6c064cfc3fc18d871107c6f5db8837e88572e4 ]
When a station is added/reconfigured by userspace, e.g. a TDLS
peer or a SoftAP client STA, rx_nss is currently not always set,
so that it might be left zero. Set it up properly.
Link: https://msgid.link/20240129155354.98f148a3d654.I193a02155f557ea54dc9d0232da66cf96734119a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/cfg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index f7cb50b0dd4e..daf5212e283d 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1887,6 +1887,8 @@ static int sta_link_apply_parameters(struct ieee80211_local *local, sband->band); } + ieee80211_sta_set_rx_nss(link_sta); + return ret; } |