qcacmn: Enable Pktlog Support
Retrieve pktlog handle through cdp api. Register proper callbacks for handling WMI responses from fw. Change-Id: Iaa3dca5ba95e41d09c99f6d0bef12880ef8f72c0 CRs-Fixed: 2185217
This commit is contained in:

committed by
snandini

parent
3beed81ef5
commit
78e6478d29
@@ -612,6 +612,7 @@ static inline int
|
||||
cdp_wdi_event_sub(ol_txrx_soc_handle soc,
|
||||
struct cdp_pdev *pdev, void *event_cb_sub, uint32_t event)
|
||||
{
|
||||
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s invalid instance", __func__);
|
||||
@@ -645,6 +646,7 @@ static inline int
|
||||
cdp_wdi_event_unsub(ol_txrx_soc_handle soc,
|
||||
struct cdp_pdev *pdev, void *event_cb_sub, uint32_t event)
|
||||
{
|
||||
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s invalid instance", __func__);
|
||||
@@ -715,35 +717,6 @@ 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,
|
||||
|
Reference in New Issue
Block a user