Quellcode durchsuchen

qcacmn: Move to common wmi event id for P2P

Since new wmi API to allow components to move to common event id, P2P
add related changes to use common wmi event id.

Change-Id: I67b9fb7cba992b06ffdfc09a1243e6f5f2c29fed
CRs-Fixed: 2025109
Wu Gao vor 8 Jahren
Ursprung
Commit
b90940cb5a
1 geänderte Dateien mit 10 neuen und 11 gelöschten Zeilen
  1. 10 11
      target_if/p2p/src/target_if_p2p.c

+ 10 - 11
target_if/p2p/src/target_if_p2p.c

@@ -170,10 +170,9 @@ QDF_STATUS target_if_p2p_register_lo_event_handler(
 		return QDF_STATUS_E_INVAL;
 	}
 
-	status = wmi_unified_register_event_handler(wmi_handle,
-		WMI_P2P_LISTEN_OFFLOAD_STOPPED_EVENTID,
-		target_p2p_lo_event_handler,
-		WMI_RX_UMAC_CTX);
+	status = wmi_unified_register_event(wmi_handle,
+			wmi_p2p_lo_stop_event_id,
+			target_p2p_lo_event_handler);
 
 	target_if_debug("wmi register lo event handle, status:%d",
 		status);
@@ -194,9 +193,9 @@ QDF_STATUS target_if_p2p_register_noa_event_handler(
 		return QDF_STATUS_E_INVAL;
 	}
 
-	status = wmi_unified_register_event_handler(wmi_handle,
-		WMI_P2P_NOA_EVENTID, target_p2p_noa_event_handler,
-		WMI_RX_UMAC_CTX);
+	status = wmi_unified_register_event(wmi_handle,
+			wmi_p2p_noa_event_id,
+			target_p2p_noa_event_handler);
 
 	target_if_debug("wmi register noa event handle, status:%d",
 		status);
@@ -217,8 +216,8 @@ QDF_STATUS target_if_p2p_unregister_lo_event_handler(
 		return QDF_STATUS_E_INVAL;
 	}
 
-	status = wmi_unified_unregister_event_handler(wmi_handle,
-		WMI_P2P_LISTEN_OFFLOAD_STOPPED_EVENTID);
+	status = wmi_unified_unregister_event(wmi_handle,
+			wmi_p2p_lo_stop_event_id);
 
 	target_if_debug("wmi unregister lo event handle, status:%d",
 		status);
@@ -239,8 +238,8 @@ QDF_STATUS target_if_p2p_unregister_noa_event_handler(
 		return QDF_STATUS_E_INVAL;
 	}
 
-	status = wmi_unified_unregister_event_handler(wmi_handle,
-		WMI_P2P_NOA_EVENTID);
+	status = wmi_unified_unregister_event(wmi_handle,
+			wmi_p2p_noa_event_id);
 
 	target_if_debug("wmi unregister noa event handle, status:%d",
 		status);