Browse Source

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
Bapiraju Alla 4 years ago
parent
commit
6008b9db41
2 changed files with 28 additions and 2 deletions
  1. 25 1
      core/hdd/inc/hdd_config.h
  2. 3 1
      core/wma/src/wma_utils.c

+ 25 - 1
core/hdd/inc/hdd_config.h

@@ -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 */

+ 3 - 1
core/wma/src/wma_utils.c

@@ -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