qcacmn: Send get_station and ll_stats req in a single command

Currently ll_stats and get_station requests are sent back to back
from user space. The firmware time difference between these two commands
results in extra sleep and wakeup for Q6.

To avoid this extra Q6 sleep and wake, send both requests in a single
command from the driver if the firmware supports that operation. Cache
the get_station results in the driver until user space request reach
to the driver.

Change-Id: I5e6f42f9e3836ef4bf61d3d9220f8cedb775cbd5
CRs-Fixed: 2778479
This commit is contained in:
Bapiraju Alla
2020-09-06 00:10:53 +05:30
committed by snandini
parent bc3e92d1d6
commit 0ff4421b30
5 changed files with 126 additions and 1 deletions

View File

@@ -769,6 +769,19 @@ QDF_STATUS wmi_unified_process_ll_stats_get_cmd(wmi_unified_t wmi_handle,
return QDF_STATUS_E_FAILURE;
}
#ifdef FEATURE_CLUB_LL_STATS_AND_GET_STATION
QDF_STATUS wmi_process_unified_ll_stats_get_sta_cmd(
wmi_unified_t wmi_handle,
const struct ll_stats_get_params *get_req)
{
if (wmi_handle->ops->send_unified_ll_stats_get_sta_cmd)
return wmi_handle->ops->send_unified_ll_stats_get_sta_cmd(
wmi_handle, get_req);
return QDF_STATUS_E_FAILURE;
}
#endif
#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
QDF_STATUS wmi_unified_congestion_request_cmd(wmi_unified_t wmi_handle,