qcacld-3.0: Send unified ll_stats and get_station request over qmi

Send unified ll_stats and get_stats request over qmi based on INI
configuration.

Change-Id: I0c8f9e6ccb7a4a1588a8086c610ab29f58dfdcd7
CRs-Fixed: 2791039
This commit is contained in:
Bapiraju Alla 2020-10-05 15:52:48 +05:30 committed by snandini
parent 974b1d5c52
commit 6008b9db41
2 changed files with 28 additions and 2 deletions

View File

@ -1587,9 +1587,33 @@ struct dhcp_server {
CFG_VALUE_OR_DEFAULT, \
"Station stats cache expiry")
/*
* <ini>
* send_ll_and_get_station_stats_over_qmi - Flag to send clubbed ll_stats and
* get_station request over qmi
*
* @Min: 0
* @Max: 1
* Default: 0
*
* This ini param is used to send the unified ll_stats and get_station request
* over qmi.
*
* Supported Feature: STA
*
* Usage: Internal
*
* </ini>
*/
#define CFG_SEND_LL_AND_GET_STATION_STATS_OVER_QMI CFG_INI_BOOL( \
"send_ll_and_get_station_stats_over_qmi", \
0, \
"send ll and get station stats over qmi")
#define CFG_WLAN_CLUB_GET_STA_IN_LL_STA_REQ \
CFG(CFG_CLUB_LL_STA_AND_GET_STATION) \
CFG(CFG_STA_STATS_CACHE_EXPIRY)
CFG(CFG_STA_STATS_CACHE_EXPIRY) \
CFG(CFG_SEND_LL_AND_GET_STATION_STATS_OVER_QMI)
#else
#define CFG_WLAN_CLUB_GET_STA_IN_LL_STA_REQ
#endif /* FEATURE_CLUB_LL_STATS_AND_GET_STATION */

View File

@ -2512,7 +2512,9 @@ wma_send_ll_stats_get_cmd(tp_wma_handle wma_handle,
wma_handle->wmi_handle, cmd);
return wmi_process_unified_ll_stats_get_sta_cmd(
wma_handle->wmi_handle, cmd);
wma_handle->wmi_handle, cmd,
cfg_get(wma_handle->psoc,
CFG_SEND_LL_AND_GET_STATION_STATS_OVER_QMI));
}
#else
static QDF_STATUS