[PATCH] wifi: ath10k: add chain mask and spatial stream params for qca988x

Ramakrishnan Rathinasamy <[email protected]>
Newsgroups org.infradead.lists.ath10k,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless
Message-ID <[email protected]>
For QCA988x, the tx_chain_mask, rx_chain_mask, and max_spatial_stream
hardware parameters are not initialized when using the 10.4 firmware.
However, the hardware announces its max_spatial_stream capabilities
during the WMI ready event. The driver compares this against the
uninitialized (zero) value, which triggers the following warning:

"hardware advertises support for more spatial streams than it should (3 > 0)"

Consequently, the driver's max_spatial_stream evaluates to zero. This
prevents the device from associating with modern Access Points in
station mode, causing the AP to reject the association with reason
code 18 (Association denied).

Fix this issue by properly populating the tx_chain_mask, rx_chain_mask,
and max_spatial_stream hardware parameters for QCA988x.

Signed-off-by: Ramakrishnan Rathinasamy <[email protected]>
---
 drivers/net/wireless/ath/ath10k/core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
index 7c2939cbde5f..ead9c601f018 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -75,6 +75,9 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = {
 		.otp_exe_param = 0,
 		.channel_counters_freq_hz = 88000,
 		.max_probe_resp_desc_thres = 0,
+		.tx_chain_mask = 0x7,
+		.rx_chain_mask = 0x7,
+		.max_spatial_stream = 3,
 		.cal_data_len = 2116,
 		.fw = {
 			.dir = QCA988X_HW_2_0_FW_DIR,
-- 
2.17.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.