qcacmn: Move peer activity marking to a common place

Move the peer Rx activity to PPDU_stats_handler
which is common for both NSS offload and Host datapath modes.

Change-Id: I06c3dd14d117cc291e3b19076ddfc7f3be00e602
CRs-Fixed: 2176385
This commit is contained in:
Subhranil Choudhury 2018-01-18 20:24:36 +05:30 • committed by snandini
commit eea6738ef9
3 changed files with 9 additions and 10 deletions

View file

@ -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
/*

View file

@ -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);

View file

@ -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;