summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPurushottam Kushwaha <quic_pkushwah@quicinc.com>2019-12-18 15:12:15 +0530
committerSunil Ravi <sunilravi@google.com>2020-02-03 22:49:10 -0800
commitd619c41ebd67a7d01138161c468652ec9fe619ad (patch)
tree38684e0d75e349c19ba268d6b0b1b73f3cffdce9
parent536d0779dc502fe80a89c828abb2ea72f304da9e (diff)
downloadlibhardware_legacy-d619c41ebd67a7d01138161c468652ec9fe619ad.tar.gz
wifi-hal: Add support for interface create/delete.
This adds new API to create/delete additional interface through wifi vendor hal. Bug: 146539882 Bug: 121156971 Test: Basic wifi sanity test. Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com> Change-Id: I8d2e4c51a1feedba65c88435cd10f2a8f6541e1b
-rw-r--r--include/hardware_legacy/wifi_hal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h
index 94487d0..6d87802 100644
--- a/include/hardware_legacy/wifi_hal.h
+++ b/include/hardware_legacy/wifi_hal.h
@@ -65,6 +65,14 @@ typedef enum {
WIFI_MITIGATION_EMERGENCY = 5,
} wifi_thermal_mode;
+/* List of interface types supported */
+typedef enum {
+ WIFI_INTERFACE_TYPE_STA = 0,
+ WIFI_INTERFACE_TYPE_AP = 1,
+ WIFI_INTERFACE_TYPE_P2P = 2,
+ WIFI_INTERFACE_TYPE_NAN = 3,
+} wifi_interface_type;
+
/*
* enum wlan_mac_band - Band information corresponding to the WLAN MAC.
*/
@@ -526,6 +534,10 @@ typedef struct {
wifi_thermal_mode mode,
u32 completion_window);
+ wifi_error (*wifi_virtual_interface_create)(wifi_handle handle, const char* ifname,
+ wifi_interface_type iface_type);
+ wifi_error (*wifi_virtual_interface_delete)(wifi_handle handle, const char* ifname);
+
} wifi_hal_fn;
wifi_error init_wifi_vendor_hal_func_table(wifi_hal_fn *fn);
#ifdef __cplusplus