Forráskód Böngészése

qcacmn: change wmi_event type from uint32 to WMI_EVT_ID

Current code defines wmi_event members of wmi_handle and soc as uint32
when it should be defined as WMI_EVT_ID because it should only hold
wmi events.
Fix this by changing type to WMI_EVT_ID.

Change-Id: Ifa8ab19ac7633457e1160e951026036aa9ebdb04
CRs-Fixed: 3355825
Mohammed Ahmed 2 éve
szülő
commit
07edd1636f
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      wmi/src/wmi_unified_tlv.c

+ 3 - 3
wmi/src/wmi_unified_tlv.c

@@ -20518,7 +20518,7 @@ struct wmi_ops tlv_ops =  {
 };
 
 #ifdef WLAN_FEATURE_11BE_MLO
-static void populate_tlv_events_id_mlo(uint32_t *event_ids)
+static void populate_tlv_events_id_mlo(WMI_EVT_ID *event_ids)
 {
 	event_ids[wmi_mlo_setup_complete_event_id] =
 			WMI_MLO_SETUP_COMPLETE_EVENTID;
@@ -20534,7 +20534,7 @@ static void populate_tlv_events_id_mlo(uint32_t *event_ids)
 			WMI_MLO_LINK_REMOVAL_EVENTID;
 }
 #else /* WLAN_FEATURE_11BE_MLO */
-static inline void populate_tlv_events_id_mlo(uint32_t *event_ids)
+static inline void populate_tlv_events_id_mlo(WMI_EVT_ID *event_ids)
 {
 }
 #endif /* WLAN_FEATURE_11BE_MLO */
@@ -20545,7 +20545,7 @@ static inline void populate_tlv_events_id_mlo(uint32_t *event_ids)
  *
  * Return: None
  */
-static void populate_tlv_events_id(uint32_t *event_ids)
+static void populate_tlv_events_id(WMI_EVT_ID *event_ids)
 {
 	event_ids[wmi_service_ready_event_id] = WMI_SERVICE_READY_EVENTID;
 	event_ids[wmi_ready_event_id] = WMI_READY_EVENTID;