wifi: ath10k: add chain mask and spatial stream params for qca988x
PATCH 1/1 wifi: ath10k: add chain mask and spatial stream params for qca988x
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.
--- drivers/net/wireless/ath/ath10k/core.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/wireless/ath/ath10k/core.c +3 -0
@@ -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,
Signature · 1 line
2.17.1