generic: replace simple AQR hack patch with upstream version
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / ath11k / 0005-wifi-ath11k-Remove-cal_done-check-during-probe.patch
1 From 13329d0cb7212b058bd8451a99d215a8f97645ea Mon Sep 17 00:00:00 2001
2 From: Seevalamuthu Mariappan <quic_seevalam@quicinc.com>
3 Date: Wed, 26 Jul 2023 19:40:32 +0530
4 Subject: [PATCH 5/5] wifi: ath11k: Remove cal_done check during probe
5
6 In some race conditions, calibration done QMI message is received even
7 before host wait starts for calibration to be done.
8 Due to this, resetting firmware was not performed after calibration.
9
10 Hence, remove cal_done check in ath11k_qmi_fwreset_from_cold_boot()
11 as this is called only from probe.
12
13 Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
14
15 Signed-off-by: Seevalamuthu Mariappan <quic_seevalam@quicinc.com>
16 Signed-off-by: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com>
17 Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
18 Link: https://lore.kernel.org/r/20230726141032.3061-4-quic_rajkbhag@quicinc.com
19 ---
20 drivers/net/wireless/ath/ath11k/qmi.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/drivers/net/wireless/ath/ath11k/qmi.c
24 +++ b/drivers/net/wireless/ath/ath11k/qmi.c
25 @@ -2844,7 +2844,7 @@ int ath11k_qmi_fwreset_from_cold_boot(st
26 {
27 int timeout;
28
29 - if (!ath11k_core_coldboot_cal_support(ab) || ab->qmi.cal_done ||
30 + if (!ath11k_core_coldboot_cal_support(ab) ||
31 ab->hw_params.cbcal_restart_fw == 0)
32 return 0;
33