Commit 819e0f1e authored by Benjamin Lin's avatar Benjamin Lin Committed by Johannes Berg
Browse files

wifi: mac80211: fix station NSS capability initialization order



Station's spatial streaming capability should be initialized before
handling VHT OMN, because the handling requires the capability information.

Fixes: a8bca3e9 ("wifi: mac80211: track capability/opmode NSS separately")
Signed-off-by: default avatarBenjamin Lin <benjamin-jw.lin@mediatek.com>
Link: https://patch.msgid.link/20241118080722.9603-1-benjamin-jw.lin@mediatek.com


[rewrite subject]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 52cebabb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1935,6 +1935,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
@@ -1944,8 +1946,6 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
					      sband->band);
	}

	ieee80211_sta_init_nss(link_sta);

	return 0;
}