Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ramakrishnan Rathinasamy <ramakrishnan@aerlync.com>
To: jjohnson@kernel.org
Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Ramakrishnan Rathinasamy <ramakrishnan@aerlync.com>
Subject: [PATCH] wifi: ath10k: add chain mask and spatial stream params for qca988x
Date: Mon,  9 Mar 2026 22:10:43 +0530	[thread overview]
Message-ID: <20260309164043.24859-1-ramakrishnan@aerlync.com> (raw)

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 <ramakrishnan@aerlync.com>
---
 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


                 reply	other threads:[~2026-03-09 16:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260309164043.24859-1-ramakrishnan@aerlync.com \
    --to=ramakrishnan@aerlync.com \
    --cc=ath10k@lists.infradead.org \
    --cc=jjohnson@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox