Skip to content

Commit

Permalink
wifi: mac80211: set station RX-NSS on reconfig
Browse files Browse the repository at this point in the history
[ Upstream commit dd6c064 ]

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>
  • Loading branch information
jmberg-intel authored and gregkh committed Mar 1, 2024
1 parent 52fff57 commit c7a4f93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c7a4f93

Please sign in to comment.