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:
parent
3c3d944246
commit
725ee94dca
@ -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
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user