qcacmn: Fix wifistats issue for WIN

For WIN, a specific raw event handler is used for handling
WMI_CTRL_PATH_STATS_EVENTID received from FW.

As a part of control path stats infrastructure, event handler
for WMI_CTRL_PATH_STATS_EVENTID is different and this results
in wifistats functionality break for WIN side.

Make changes to use WIN specific event handler.

Change-Id: I2ac677c3ca55cd783734d1137c39b8ee1d5dcbf5
CRs-Fixed: 2878466
This commit is contained in:
Harsh Kumar Bijlani 2021-02-17 16:50:50 +05:30 committed by snandini
parent 3c3d944246
commit 725ee94dca

View File

@ -219,6 +219,7 @@ int target_if_infra_cp_stats_event_handler(ol_scn_t scn, uint8_t *data,
}
#endif /* WLAN_SUPPORT_INFRA_CTRL_PATH_STATS */
#ifdef WLAN_SUPPORT_INFRA_CTRL_PATH_STATS
static QDF_STATUS
target_if_cp_stats_register_event_handler(struct wlan_objmgr_psoc *psoc)
{
@ -266,6 +267,29 @@ target_if_cp_stats_unregister_event_handler(struct wlan_objmgr_psoc *psoc)
wmi_pdev_cp_fwstats_eventid);
return QDF_STATUS_SUCCESS;
}
#else
static QDF_STATUS
target_if_cp_stats_register_event_handler(struct wlan_objmgr_psoc *psoc)
{
if (!psoc) {
cp_stats_err("PSOC is NULL!");
return QDF_STATUS_E_INVAL;
}
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS
target_if_cp_stats_unregister_event_handler(struct wlan_objmgr_psoc *psoc)
{
if (!psoc) {
cp_stats_err("PSOC is NULL!");
return QDF_STATUS_E_INVAL;
}
return QDF_STATUS_SUCCESS;
}
#endif /* WLAN_SUPPORT_INFRA_CTRL_PATH_STATS */
#ifdef WLAN_SUPPORT_INFRA_CTRL_PATH_STATS
/**