]> Git Repo - linux.git/commitdiff
wifi: ath11k: fix WCN6750 firmware crash caused by 17 num_vdevs
authorCarl Huang <[email protected]>
Tue, 21 May 2024 08:08:10 +0000 (11:08 +0300)
committerKalle Valo <[email protected]>
Thu, 23 May 2024 12:43:40 +0000 (15:43 +0300)
WCN6750 firmware crashes because of num_vdevs changed from 4 to 17
in ath11k_init_wmi_config_qca6390() as the ab->hw_params.num_vdevs
is 17. This is caused by commit f019f4dff2e4 ("wifi: ath11k: support
2 station interfaces") which assigns ab->hw_params.num_vdevs directly
to config->num_vdevs in ath11k_init_wmi_config_qca6390(), therefore
WCN6750 firmware crashes as it can't support such a big num_vdevs.

Fix it by assign 3 to num_vdevs in hw_params for WCN6750 as 3 is
sufficient too.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3
Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-01371-QCAMSLSWPLZ-1

Fixes: f019f4dff2e4 ("wifi: ath11k: support 2 station interfaces")
Reported-by: Luca Weiss <[email protected]>
Tested-by: Luca Weiss <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Carl Huang <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
drivers/net/wireless/ath/ath11k/core.c

index 3cc817a3b4a4047600591804bbc57aa45cba866f..b82e8fb2854130b1b4ebf109f4712f6f8c586590 100644 (file)
@@ -604,7 +604,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
                .coldboot_cal_ftm = true,
                .cbcal_restart_fw = false,
                .fw_mem_mode = 0,
-               .num_vdevs = 16 + 1,
+               .num_vdevs = 3,
                .num_peers = 512,
                .supports_suspend = false,
                .hal_desc_sz = sizeof(struct hal_rx_desc_qcn9074),
This page took 0.062591 seconds and 4 git commands to generate.