Преглед изворни кода

qcacmn: Support congestion report on multiple interfaces

Support congestion report on multiple interfaces

Change-Id: I8a3dcc006576b26574e072cf6f74daee4925e6be
CRs-Fixed: 2909919
Paul Zhang пре 4 година
родитељ
комит
cedbb9d221

+ 3 - 0
umac/cmn_services/inc/wlan_cmn.h

@@ -78,6 +78,9 @@
 /* Invalid free descriptor count */
 #define WLAN_INVALID_MGMT_DESC_COUNT 0xFFFFFFFF
 
+/* Max fw report pdev id */
+#define WLAN_UMAC_MAX_RP_PID 2
+
 /* 802.11 cap info */
 #define WLAN_CAPINFO_ESS               0x0001
 #define WLAN_CAPINFO_IBSS              0x0002

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -4012,6 +4012,7 @@ typedef struct {
  * @fcsBad:
  * @noBeacons:
  * @mib_int_count:
+ * @pdev_id: pdev id
  */
 typedef struct {
 	int32_t chan_nf;
@@ -4028,6 +4029,7 @@ typedef struct {
 	uint32_t	fcsBad;
 	uint32_t	noBeacons;
 	uint32_t	mib_int_count;
+	uint32_t pdev_id;
 } wmi_host_pdev_stats;
 
 /**

+ 3 - 0
wmi/src/wmi_unified_cp_stats_tlv.c

@@ -684,6 +684,9 @@ extract_pdev_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf, uint32_t index,
 
 	param_buf = (WMI_UPDATE_STATS_EVENTID_param_tlvs *) evt_buf;
 	ev_param = (wmi_stats_event_fixed_param *) param_buf->fixed_param;
+	pdev_stats->pdev_id =
+	     wmi_handle->ops->convert_pdev_id_target_to_host(wmi_handle,
+							     ev_param->pdev_id);
 
 	data = param_buf->data;