diff --git a/dp/inc/cdp_txrx_cfg.h b/dp/inc/cdp_txrx_cfg.h index 3e10f027c511..854a79e8654b 100644 --- a/dp/inc/cdp_txrx_cfg.h +++ b/dp/inc/cdp_txrx_cfg.h @@ -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_ */ diff --git a/dp/inc/cdp_txrx_ops.h b/dp/inc/cdp_txrx_ops.h index edcdca0d8456..6d3ac355afcc 100644 --- a/dp/inc/cdp_txrx_ops.h +++ b/dp/inc/cdp_txrx_ops.h @@ -723,6 +723,7 @@ struct cdp_cfg_ops { void (*set_flow_control_parameters)(struct cdp_cfg *cfg_pdev, void *param); void (*set_flow_steering)(struct cdp_cfg *cfg_pdev, uint8_t val); + void (*set_ptp_rx_opt_enabled)(struct cdp_cfg *cfg_pdev, uint8_t val); }; /**