qcacmn: Add dp interface to enable/disable reap timer

Enhanced channel frequency response (CFR) based on monitor status
ring, need to enable mon reap timer before starting CFR and disable
the timer after stopping CFR capture. This change adds interface to
enable/disable monitor status ring's reap timer.

Change-Id: I843433ac07c4d55e14b42855ee22779eb7ecb678
CRs-Fixed: 2639307
This commit is contained in:
Wu Gao
2016-08-19 11:46:11 +08:00
committed by nshrivas
parent c359013b26
commit 577bdfe20e
4 changed files with 108 additions and 7 deletions

View File

@@ -937,6 +937,33 @@ cdp_cfr_clr_dbg_stats(ol_txrx_soc_handle soc, uint8_t pdev_id)
soc->ops->cfr_ops->txrx_clear_cfr_dbg_stats(soc, pdev_id);
}
/**
* cdp_enable_mon_reap_timer() - enable/disable reap timer
* @soc: Datapath soc handle
* @pdev_id: id of objmgr pdev
* @enable: enable/disable reap timer of monitor status ring
*
* Return: none
*/
static inline void
cdp_enable_mon_reap_timer(ol_txrx_soc_handle soc, uint8_t pdev_id,
bool enable)
{
if (!soc || !soc->ops) {
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
"%s invalid instance", __func__);
QDF_BUG(0);
return;
}
if (!soc->ops->cfr_ops ||
!soc->ops->cfr_ops->txrx_enable_mon_reap_timer)
return;
return soc->ops->cfr_ops->txrx_enable_mon_reap_timer(soc, pdev_id,
enable);
}
#endif
#if defined(WLAN_TX_PKT_CAPTURE_ENH) || defined(WLAN_RX_PKT_CAPTURE_ENH)