qcacmn: Add CDP API to set ptp rx opt

Add CDP API to set ptp rx opt. This rx opt is
needed for determining whether to time stamp
the received MSDUs or not.

Change-Id: Ia7cfbe838ff62ef0775164f542a160bf93e44a74
CRs-Fixed: 2095956
This commit is contained in:
Yu Wang
2017-08-10 16:58:13 +08:00
committed by snandini
parent e14e8e9fcf
commit a3f76c5ae5
2 changed files with 26 additions and 0 deletions

View File

@@ -259,4 +259,29 @@ static inline void cdp_cfg_get_max_peer_id(ol_txrx_soc_handle soc,
struct cdp_cfg *cfg_pdev)
{
}
/**
* cdp_cfg_set_ptp_rx_opt_enabled() - enable/disable ptp rx timestamping
* @soc - data path soc handle
* @pdev - data path device instance
* @val - enable or disable packet log
*
* ptp rx timestamping enable or disable
*
* return NONE
*/
static inline void
cdp_cfg_set_ptp_rx_opt_enabled(ol_txrx_soc_handle soc,
struct cdp_cfg *cfg_pdev, uint8_t val)
{
if (!soc || !soc->ops || !soc->ops->cfg_ops) {
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
"%s invalid instance", __func__);
return;
}
if (soc->ops->cfg_ops->set_ptp_rx_opt_enabled)
return soc->ops->cfg_ops->set_ptp_rx_opt_enabled(cfg_pdev,
val);
}
#endif /* _CDP_TXRX_CFG_H_ */