Message ID | 1643261609-13500-5-git-send-email-quic_mpubbise@quicinc.com (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Kalle Valo |
Headers | show |
Series | Follow-on series for WCN6750 | expand |
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 2402405..55cdee9 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -2274,6 +2274,7 @@ static void ath11k_peer_assoc_h_he(struct ath11k *ar, max_nss = i + 1; } arg->peer_nss = min(sta->rx_nss, max_nss); + arg->peer_nss = min_t(u32, arg->peer_nss, ar->num_rx_chains); if (arg->peer_phymode == MODE_11AX_HE160 || arg->peer_phymode == MODE_11AX_HE80_80) {
Cap NSS of HE peer to radio supported NSS during assoc, this is needed as the WCN6750 FW expects peer NSS to be <= radio supported NSS, this will fix the FW assert because of peer NSS being greater than max NSS supported by the radio. Since we are capping the NSS to the NSS that radio supports, this change should not impact other supported hardware. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00573-QCAMSLSWPLZ-1 Signed-off-by: Manikanta Pubbisetty <quic_mpubbise@quicinc.com> --- drivers/net/wireless/ath/ath11k/mac.c | 1 + 1 file changed, 1 insertion(+)