Browse Source

qcacmn: Initialize pdev_id for PDEV STATS request and event

Initialize pdev_id for PDEV stats request and response event.
Add param to set pdev stats request timer.

Change-Id: I11f648070cd39f026129d1cf3aa13bf296d25e6e
Gurumoorthi Gnanasambandhan 8 years ago
parent
commit
7e23dd54c6
3 changed files with 4 additions and 34 deletions
  1. 0 4
      wmi_unified_api.h
  2. 4 27
      wmi_unified_param.h
  3. 0 3
      wmi_unified_priv.h

+ 0 - 4
wmi_unified_api.h

@@ -700,10 +700,6 @@ QDF_STATUS wmi_unified_process_ll_stats_get_cmd
 	(void *wmi_hdl, const struct ll_stats_get_params  *get_req,
 		 uint8_t addr[IEEE80211_ADDR_LEN]);
 
-QDF_STATUS wmi_unified_get_stats_cmd(void *wmi_hdl,
-		       struct pe_stats_req  *get_stats_param,
-			   uint8_t addr[IEEE80211_ADDR_LEN]);
-
 /**
  * wmi_unified_congestion_request_cmd() - send request to fw to get CCA
  * @wmi_hdl: wma handle

+ 4 - 27
wmi_unified_param.h

@@ -817,23 +817,17 @@ typedef enum {
 	WMI_HOST_REQUEST_VDEV_EXTD_STAT =  0x100,
 } wmi_host_stats_id;
 
-typedef struct {
-	uint16_t cfg_retry_count;
-	uint16_t retry_count;
-} wmi_host_inst_rssi_args;
 
 /**
  * struct stats_request_params - stats_request cmd parameter
- * @stats_id: statistics id
+ * @stats_id: Bit mask of all the STATS request are specified with values from wmi_host_stats_id
  * @vdev_id: vdev id
- * @wmi_host_inst_rssi_args: Instantaneous rssi stats args
+ * @pdev_id: pdev_id
  */
 struct stats_request_params {
 	uint32_t stats_id;
-	uint32_t vdev_id;
-#ifndef CONFIG_MCL
-	wmi_host_inst_rssi_args rssi_args;
-#endif
+	uint8_t vdev_id;
+	uint8_t pdev_id;
 };
 
 /**
@@ -2595,23 +2589,6 @@ struct ll_stats_get_params {
 	uint32_t param_id_mask;
 };
 
-/**
- * struct pe_stats_req - pe stats parameter
- * @msg_type: message type is same as the request type
- * @msg_len: length of the entire request
- * @sta_id: Per STA stats request must contain valid
- * @stats_mask: categories of stats requested
- * @session_id: wsm ts spec flag
- */
-struct pe_stats_req {
-	/* Common for all types are requests */
-	uint16_t msg_type;
-	uint16_t msg_len;
-	uint32_t sta_id;
-	/* categories of stats requested. look at ePEStatsMask */
-	uint32_t stats_mask;
-	uint8_t session_id;
-};
 
 /**
  * struct link_status_params - link stats parameter

+ 0 - 3
wmi_unified_priv.h

@@ -481,9 +481,6 @@ QDF_STATUS (*send_process_ll_stats_get_cmd)
 	(wmi_unified_t wmi_handle, const struct ll_stats_get_params  *get_req,
 		 uint8_t addr[IEEE80211_ADDR_LEN]);
 
-QDF_STATUS (*send_get_stats_cmd)(wmi_unified_t wmi_handle,
-		       struct pe_stats_req  *get_stats_param,
-			   uint8_t addr[IEEE80211_ADDR_LEN]);
 
 QDF_STATUS (*send_congestion_cmd)(wmi_unified_t wmi_handle,
 			A_UINT8 vdev_id);