mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 00:29:36 -04:00
wifi: ath12k: add monitor mode handler by monitor status ring interrupt
Monitor status ring interrupt is configured in previous patch. So add handler function __ath12k_dp_mon_process_ring() for monitor mode. Will implement detail processing in patch 7 and 10. 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-7-kang.yang@oss.qualcomm.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
This commit is contained in:
@@ -933,7 +933,11 @@ int ath12k_dp_service_srng(struct ath12k_base *ab,
|
||||
int id = i * ab->hw_params->num_rxdma_per_pdev + j;
|
||||
|
||||
if (ring_mask & BIT(id)) {
|
||||
/* TODO: add monitor mode function */
|
||||
work_done =
|
||||
ath12k_dp_mon_process_ring(ab, id, napi, budget,
|
||||
0);
|
||||
budget -= work_done;
|
||||
tot_work_done += work_done;
|
||||
if (budget <= 0)
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -3727,6 +3727,14 @@ int ath12k_dp_mon_srng_process(struct ath12k *ar, int *budget,
|
||||
return num_buffs_reaped;
|
||||
}
|
||||
|
||||
static int
|
||||
__ath12k_dp_mon_process_ring(struct ath12k *ar, int mac_id,
|
||||
struct napi_struct *napi, int *budget)
|
||||
{
|
||||
/* TODO:Implement monitor mode for WCN7850 here. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ath12k_dp_mon_process_ring(struct ath12k_base *ab, int mac_id,
|
||||
struct napi_struct *napi, int budget,
|
||||
enum dp_monitor_mode monitor_mode)
|
||||
@@ -3737,6 +3745,10 @@ int ath12k_dp_mon_process_ring(struct ath12k_base *ab, int mac_id,
|
||||
if (ab->hw_params->rxdma1_enable) {
|
||||
if (monitor_mode == ATH12K_DP_RX_MONITOR_MODE)
|
||||
num_buffs_reaped = ath12k_dp_mon_srng_process(ar, &budget, napi);
|
||||
} else {
|
||||
if (ar->monitor_started)
|
||||
num_buffs_reaped =
|
||||
__ath12k_dp_mon_process_ring(ar, mac_id, napi, &budget);
|
||||
}
|
||||
|
||||
return num_buffs_reaped;
|
||||
|
||||
Reference in New Issue
Block a user