Commit 4107cd6
committed
wifi: ath12k: don't wait when there is no vdev started
JIRA: https://issues.redhat.com/browse/RHEL-122256
commit ad5e917
Author: Baochen Qiang <quic_bqiang@quicinc.com>
Date: Thu Jun 12 09:31:52 2025 +0800
wifi: ath12k: don't wait when there is no vdev started
For WMI_REQUEST_VDEV_STAT request, firmware might split response into
multiple events dut to buffer limit, hence currently in
ath12k_wmi_fw_stats_process() host waits until all events received. In
case there is no vdev started, this results in that below condition
would never get satisfied
((++ar->fw_stats.num_vdev_recvd) == total_vdevs_started)
consequently the requestor would be blocked until time out.
The same applies to WMI_REQUEST_BCN_STAT request as well due to:
((++ar->fw_stats.num_bcn_recvd) == ar->num_started_vdevs)
Change to check the number of started vdev first: if it is zero, finish
directly; if not, follow the old way.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00284.1-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
Tested-on: QCN9274 hw2.0 WLAN.WBE.1.5-01651-QCAHKSWPL_SILICONZ-1
Fixes: e367c92 ("wifi: ath12k: Request vdev stats from firmware")
Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Link: https://patch.msgid.link/20250612-ath12k-fw-fixes-v1-4-12f594f3b857@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>1 parent 76eec44 commit 4107cd6
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8165 | 8165 | | |
8166 | 8166 | | |
8167 | 8167 | | |
8168 | | - | |
| 8168 | + | |
8169 | 8169 | | |
8170 | 8170 | | |
8171 | 8171 | | |
| |||
8185 | 8185 | | |
8186 | 8186 | | |
8187 | 8187 | | |
8188 | | - | |
| 8188 | + | |
| 8189 | + | |
| 8190 | + | |
8189 | 8191 | | |
8190 | 8192 | | |
8191 | 8193 | | |
| |||
8204 | 8206 | | |
8205 | 8207 | | |
8206 | 8208 | | |
8207 | | - | |
| 8209 | + | |
| 8210 | + | |
| 8211 | + | |
8208 | 8212 | | |
8209 | 8213 | | |
8210 | 8214 | | |
| |||
0 commit comments