qcacmn: Enable Packetlog
Enable Packetlog for Lithium Based chipsets by: Replacing ol_txrx calls with equivalent cdp calls Change-Id: Ibf4431daca23c23c9e1c1a5e1ebb2579079e4969 CRs-Fixed: 2117063
This commit is contained in:

committed by
snandini

parent
5a6f4296cd
commit
09adf5336c
@@ -715,4 +715,51 @@ static inline int cdp_set_mgmt_tx_power(ol_txrx_soc_handle soc,
|
||||
subtype, tx_power);
|
||||
return 0;
|
||||
}
|
||||
/**
|
||||
* @brief WDI event handler
|
||||
* @details
|
||||
* This function handles in the events posted by the packet logger.
|
||||
* This function shall only be called if there was a successful prior call
|
||||
* to event_sub() on the same wdi_event_subscribe object.
|
||||
*
|
||||
* @param soc - pointer to the soc
|
||||
* @param pdev - the data physical device object
|
||||
* @param event - which event is being handled
|
||||
* @param event - data for the event
|
||||
* @return - int
|
||||
*/
|
||||
static inline A_STATUS
|
||||
cdp_wdi_event_handler(ol_txrx_soc_handle soc,
|
||||
struct cdp_pdev *pdev, uint32_t event, void *evt_data)
|
||||
{
|
||||
if (!soc || !soc->ops || !soc->ops->ctrl_ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
|
||||
"%s invalid instance", __func__);
|
||||
return A_ERROR;
|
||||
}
|
||||
|
||||
if (soc->ops->ctrl_ops->txrx_wdi_event_handler)
|
||||
return soc->ops->ctrl_ops->txrx_wdi_event_handler
|
||||
(pdev, event, evt_data);
|
||||
|
||||
return A_OK;
|
||||
}
|
||||
|
||||
static inline void *
|
||||
cdp_get_pldev(ol_txrx_soc_handle soc,
|
||||
struct cdp_pdev *pdev)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
|
||||
"%s invalid instance", __func__);
|
||||
QDF_BUG(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!soc->ops->ctrl_ops || !soc->ops->ctrl_ops->txrx_get_pldev)
|
||||
return NULL;
|
||||
|
||||
return soc->ops->ctrl_ops->txrx_get_pldev(pdev);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user