Browse Source

qcacld-3.0: Migrate to stats_request_params

There are currently two ways to get vdev stats from firmware. As such,
the redundant pe_stats_req is being removed. Migrate existing consumers
to stats_request_params instead.

Change-Id: I3426b43a6202bb59ceef13cf8d4528700c7f3983
CRs-Fixed: 2120637
Dustin Brown 7 năm trước cách đây
mục cha
commit
3561949b4d
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      core/wma/src/wma_utils.c

+ 6 - 6
core/wma/src/wma_utils.c

@@ -3827,7 +3827,7 @@ void wma_get_stats_req(WMA_HANDLE handle,
 {
 	tp_wma_handle wma_handle = (tp_wma_handle) handle;
 	struct wma_txrx_node *node;
-	struct pe_stats_req  cmd = {0};
+	struct stats_request_params cmd = {0};
 	tAniGetPEStatsRsp *pGetPEStatsRspParams;
 
 
@@ -3872,11 +3872,11 @@ void wma_get_stats_req(WMA_HANDLE handle,
 		node->stats_rsp, node->stats_rsp->staId,
 		node->stats_rsp->statsMask, get_stats_param->sessionId);
 
-	cmd.session_id = get_stats_param->sessionId;
-	cmd.stats_mask = get_stats_param->statsMask;
-	if (wmi_unified_get_stats_cmd(wma_handle->wmi_handle, &cmd,
-				 node->bssid)) {
-
+	cmd.vdev_id = get_stats_param->sessionId;
+	cmd.stats_id = get_stats_param->statsMask;
+	if (wmi_unified_stats_request_send(wma_handle->wmi_handle,
+					   node->bssid,
+					   &cmd)) {
 		WMA_LOGE("%s: Failed to send WMI_REQUEST_STATS_CMDID",
 			 __func__);
 		goto failed;