qcacld-3.0: Do not send unified stats command in disconnect state
Currently driver sends unified ll stats command to request ll_stats and station stats even if station is in disconnected state. There are no stats required in disconnected state and fw does not collect any stats in disconnected case. If host requests station stats in disconnected case, fw sends all stats as 0s, so there is no need to request these stats in disconnected case. To address above issue, add a check to not send unified ll_stats command in disconnected case. Change-Id: I0254d290694307d553f3b0cc04505e95945089d3 CRs-Fixed: 3183024
This commit is contained in:
@@ -2597,7 +2597,9 @@ wma_send_ll_stats_get_cmd(tp_wma_handle wma_handle,
|
||||
if (!(cfg_get(wma_handle->psoc, CFG_CLUB_LL_STA_AND_GET_STATION) &&
|
||||
wmi_service_enabled(wma_handle->wmi_handle,
|
||||
wmi_service_get_station_in_ll_stats_req) &&
|
||||
wma_handle->interfaces[cmd->vdev_id].type == WMI_VDEV_TYPE_STA))
|
||||
(wma_handle->interfaces[cmd->vdev_id].type ==
|
||||
WMI_VDEV_TYPE_STA) &&
|
||||
cm_is_vdevid_connected(wma_handle->pdev, cmd->vdev_id)))
|
||||
return wmi_unified_process_ll_stats_get_cmd(
|
||||
wma_handle->wmi_handle, cmd);
|
||||
|
||||
|
Reference in New Issue
Block a user