summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKang Yang <kang.yang@oss.qualcomm.com>2025-04-21 10:34:42 +0800
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>2025-05-16 12:38:55 -0700
commitf4dd79e9b5d3cae04e166186e7b325453cdbaf7e (patch)
treeac5f97f8b0301db90a4f6c061218ce9df46fb9c3
parent72bfbf19b7da6edc6db1d8ea81751ee6d31fe2f2 (diff)
wifi: ath12k: init monitor parameters for WCN7850
Some monitor parameters are only initialized for QCN9274, but WCN7850 also needs them, so initialize them for WCN7850 as well. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com> Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com> Link: https://patch.msgid.link/20250421023444.1778-12-kang.yang@oss.qualcomm.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath12k/dp_rx.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c
index b3f638af1717..828ed55f83f5 100644
--- a/drivers/net/wireless/ath/ath12k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_rx.c
@@ -4606,17 +4606,15 @@ int ath12k_dp_rx_pdev_mon_attach(struct ath12k *ar)
return ret;
}
- /* if rxdma1_enable is false, no need to setup
- * rxdma_mon_desc_ring.
- */
+ pmon->mon_last_linkdesc_paddr = 0;
+ pmon->mon_last_buf_cookie = DP_RX_DESC_COOKIE_MAX + 1;
+ spin_lock_init(&pmon->mon_lock);
+
if (!ar->ab->hw_params->rxdma1_enable)
return 0;
- pmon->mon_last_linkdesc_paddr = 0;
- pmon->mon_last_buf_cookie = DP_RX_DESC_COOKIE_MAX + 1;
INIT_LIST_HEAD(&pmon->dp_rx_mon_mpdu_list);
pmon->mon_mpdu = NULL;
- spin_lock_init(&pmon->mon_lock);
return 0;
}