Explorar o código

qcacmn: Add wmi wrapper function to get target pdev id from host

Add wmi wrapper function to convert host pdev id to target  pdev id.

Change-Id: I3824a7556bf0b740d069602e9ee5a572c427c49c
CRs-Fixed: 2316715
Shashikala Prabhu %!s(int64=6) %!d(string=hai) anos
pai
achega
b91325ca5f
Modificáronse 2 ficheiros con 17 adicións e 1 borrados
  1. 16 0
      wmi_unified_api.c
  2. 1 1
      wmi_unified_dfs_api.c

+ 16 - 0
wmi_unified_api.c

@@ -7539,3 +7539,19 @@ wmi_unified_send_obss_spatial_reuse_set_cmd(void *wmi_hdl,
 	return QDF_STATUS_E_FAILURE;
 }
 #endif
+
+QDF_STATUS wmi_convert_pdev_id_host_to_target(void *wmi_hdl,
+					      uint32_t host_pdev_id,
+					      uint32_t *target_pdev_id)
+{
+	wmi_unified_t wmi_handle = (wmi_unified_t)wmi_hdl;
+
+	if (wmi_handle->ops->convert_pdev_id_host_to_target) {
+		*target_pdev_id =
+			wmi_handle->ops->convert_pdev_id_host_to_target(
+					host_pdev_id);
+		return QDF_STATUS_SUCCESS;
+	}
+
+	return QDF_STATUS_E_FAILURE;
+}

+ 1 - 1
wmi_unified_dfs_api.c

@@ -71,5 +71,5 @@ QDF_STATUS wmi_extract_wlan_radar_event_info(void *wmi_hdl,
 
 	return QDF_STATUS_E_FAILURE;
 }
-#endif
 qdf_export_symbol(wmi_extract_dfs_radar_detection_event);
+#endif