wifi: ath12k: delete mon reap timer
authorKang Yang <kang.yang@oss.qualcomm.com>
Wed, 16 Apr 2025 02:20:11 +0000 (10:20 +0800)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Fri, 16 May 2025 19:38:52 +0000 (12:38 -0700)
Currently mon reap timer is not used, and it is not needed anymore for
WCN7850.

So remove related code.

This change does not affect QCN9274, as the mon reap timer is not used
for QCN9274.

Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20250416022011.1935-1-kang.yang@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/dp.c

index 1b7701b8afd1c696a9e2d53fb5232e38473e123c..fff3d1f81d5d7a5b3ea94905abcb72b872deaf09 100644 (file)
@@ -1097,8 +1097,6 @@ struct ath12k_base {
        struct ath12k_dbring_cap *db_caps;
        u32 num_db_cap;
 
-       struct timer_list mon_reap_timer;
-
        struct completion htc_suspend;
 
        u64 fw_soc_drop_count;
index ad873013e46c38d99b4fef05ef62e0b13dc06784..2e0c5922b6e4c34b6eb24631925bd7d50bc9725e 100644 (file)
@@ -982,11 +982,6 @@ void ath12k_dp_pdev_free(struct ath12k_base *ab)
 {
        int i;
 
-       if (!ab->mon_reap_timer.function)
-               return;
-
-       timer_delete_sync(&ab->mon_reap_timer);
-
        for (i = 0; i < ab->num_radios; i++)
                ath12k_dp_rx_pdev_free(ab, i);
 }
@@ -1024,27 +1019,6 @@ void ath12k_dp_hal_rx_desc_init(struct ath12k_base *ab)
                ab->hal_rx_ops->rx_desc_get_desc_size();
 }
 
-static void ath12k_dp_service_mon_ring(struct timer_list *t)
-{
-       struct ath12k_base *ab = from_timer(ab, t, mon_reap_timer);
-       int i;
-
-       for (i = 0; i < ab->hw_params->num_rxdma_per_pdev; i++)
-               ath12k_dp_mon_process_ring(ab, i, NULL, DP_MON_SERVICE_BUDGET,
-                                          ATH12K_DP_RX_MONITOR_MODE);
-
-       mod_timer(&ab->mon_reap_timer, jiffies +
-                 msecs_to_jiffies(ATH12K_MON_TIMER_INTERVAL));
-}
-
-static void ath12k_dp_mon_reap_timer_init(struct ath12k_base *ab)
-{
-       if (ab->hw_params->rxdma1_enable)
-               return;
-
-       timer_setup(&ab->mon_reap_timer, ath12k_dp_service_mon_ring, 0);
-}
-
 int ath12k_dp_pdev_alloc(struct ath12k_base *ab)
 {
        struct ath12k *ar;
@@ -1055,8 +1029,6 @@ int ath12k_dp_pdev_alloc(struct ath12k_base *ab)
        if (ret)
                goto out;
 
-       ath12k_dp_mon_reap_timer_init(ab);
-
        /* TODO: Per-pdev rx ring unlike tx ring which is mapped to different AC's */
        for (i = 0; i < ab->num_radios; i++) {
                ar = ab->pdevs[i].ar;