diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index c9c09f51a24f..36f7ea6e37be 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -2196,6 +2196,13 @@ static os_timer_func(dp_txrx_peer_find_inact_timeout_handler) qdf_timer_mod(&soc->pdev_bs_inact_timer, soc->pdev_bs_inact_interval * 1000); } + +#else + +void dp_mark_peer_inact(void *peer, bool inactive) +{ + return; +} #endif /* @@ -3577,12 +3584,6 @@ bool dp_peer_is_inact(void *peer) { return false; } - -void dp_mark_peer_inact(void *peer, bool inactive) -{ - return; -} - #endif /* diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index 23143d90e30f..a4df79a8cb18 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -1172,10 +1172,6 @@ dp_rx_process(struct dp_intr *int_ctx, void *hal_ring, uint32_t quota) goto fail; } -#ifdef QCA_SUPPORT_SON - dp_mark_peer_inact(peer, false); -#endif - /* Get MSDU DESC info */ hal_rx_msdu_desc_info_get(ring_desc, &msdu_desc_info); diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c index 66ced11cbf5c..4b7574077f54 100644 --- a/dp/wifi3.0/dp_rx_mon_status.c +++ b/dp/wifi3.0/dp_rx_mon_status.c @@ -129,6 +129,8 @@ static void dp_rx_stats_update(struct dp_soc *soc, struct dp_peer *peer, pdev = peer->vdev->pdev; + dp_mark_peer_inact(peer, false); + if (soc->process_rx_status) return;