Browse Source

qcacmn: Add unified WMI support for WLM stats

The TLV WMI added support for a new WMI_SERVICE_WLM_STATS_REQUEST
service along with an associated WMI_WLM_STATS_EVENTID event, so add
support for a proxy unified WMI service and event.

Change-Id: Ic79c4b757fe2d4e806306750250e3c102745c486
CRs-Fixed: 2388911
Krunal Soni 6 years ago
parent
commit
98092294a4
2 changed files with 5 additions and 0 deletions
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 3 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -4712,6 +4712,7 @@ typedef enum {
 	wmi_pdev_ctl_failsafe_check_event_id,
 	wmi_vdev_bcn_reception_stats_event_id,
 	wmi_roam_blacklist_event_id,
+	wmi_wlm_stats_event_id,
 	wmi_events_max,
 } wmi_conv_event_id;
 
@@ -5178,6 +5179,7 @@ typedef enum {
 	wmi_service_ndi_sap_support,
 	wmi_service_nan_disable_support,
 	wmi_service_hw_db2dbm_support,
+	wmi_service_wlm_stats_support,
 	wmi_services_max,
 } wmi_conv_service_ids;
 #define WMI_SERVICE_UNAVAILABLE 0xFFFF

+ 3 - 0
wmi/src/wmi_unified_tlv.c

@@ -11619,6 +11619,7 @@ static void populate_tlv_events_id(uint32_t *event_ids)
 	event_ids[wmi_vdev_bcn_reception_stats_event_id] =
 		WMI_VDEV_BCN_RECEPTION_STATS_EVENTID;
 	event_ids[wmi_roam_blacklist_event_id] = WMI_ROAM_BLACKLIST_EVENTID;
+	event_ids[wmi_wlm_stats_event_id] = WMI_WLM_STATS_EVENTID;
 }
 
 /**
@@ -11860,6 +11861,8 @@ static void populate_tlv_service(uint32_t *wmi_service)
 			WMI_SERVICE_NAN_DISABLE_SUPPORT;
 	wmi_service[wmi_service_hw_db2dbm_support] =
 			WMI_SERVICE_HW_DB2DBM_CONVERSION_SUPPORT;
+	wmi_service[wmi_service_wlm_stats_support] =
+			WMI_SERVICE_WLM_STATS_REQUEST;
 }
 #ifndef CONFIG_MCL