Search Linux Wireless

[PATCH RFC 4/8] ath11k: Cap NSS of HE peer to radio supported NSS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 drivers/net/wireless/ath/ath11k/mac.c | 1 +
 1 file changed, 1 insertion(+)

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) {
-- 
2.7.4




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux