diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 16d47123a73c95..1b1bf044378d48 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1911,6 +1911,8 @@ static int sta_link_apply_parameters(struct ieee80211_local *local, params->eht_capa_len, link_sta); + ieee80211_sta_init_nss(link_sta); + if (params->opmode_notif_used) { /* returned value is only needed for rc update, but the * rc isn't initialized here yet, so ignore it @@ -1920,8 +1922,6 @@ static int sta_link_apply_parameters(struct ieee80211_local *local, sband->band); } - ieee80211_sta_init_nss(link_sta); - return 0; }