Add a vintf fragment xml file for hostapd
This commit adds a vintf fragment xml file for hostpad to replace
the definitions in different device xml files.
Bug: 145780363
Test: builds and wifi softap works
Change-Id: I262470ca5046f4a4b2afe4f9cc567c181aef2cf2
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index e9035e5..f5e9f66 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -1115,6 +1115,7 @@
LOCAL_MODULE_TAGS := optional
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
+LOCAL_VINTF_FRAGMENTS := android.hardware.wifi.hostapd.xml
ifdef CONFIG_DRIVER_CUSTOM
LOCAL_STATIC_LIBRARIES := libCustomWifi
endif
diff --git a/hostapd/android.hardware.wifi.hostapd.xml b/hostapd/android.hardware.wifi.hostapd.xml
new file mode 100644
index 0000000..4dc1701
--- /dev/null
+++ b/hostapd/android.hardware.wifi.hostapd.xml
@@ -0,0 +1,11 @@
+<manifest version="1.0" type="device">
+ <hal format="hidl">
+ <name>android.hardware.wifi.hostapd</name>
+ <transport>hwbinder</transport>
+ <version>1.2</version>
+ <interface>
+ <name>IHostapd</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+</manifest>