summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Ravi <sunilravi@google.com>2022-01-24 18:04:04 -0800
committerSunil Ravi <sunilravi@google.com>2022-01-25 11:44:15 -0800
commit8ec08d0216fdd3d07aafcd1906d0b03d4155e77e (patch)
treef7d99577acdc1ca1c28c0ca901fd8094175bb9b6
parent60d787cd159a27ecc63bb5a1846faf63e4c45475 (diff)
downloadlibhardware_legacy-8ec08d0216fdd3d07aafcd1906d0b03d4155e77e.tar.gz
Wifi: API to set the indoor state of device
If set, it indicates that the device is operating in an indoor environment. When driver receives this indication, it can safely enable WFD GO operation on indoor channels. Bug: 207671411 Test: Manual basic wifi tests Change-Id: I970dd54f538ee85d76d702b1ce36432bad901602
-rw-r--r--include/hardware_legacy/wifi_hal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h
index 6b8f5f6..4b4a525 100644
--- a/include/hardware_legacy/wifi_hal.h
+++ b/include/hardware_legacy/wifi_hal.h
@@ -909,6 +909,16 @@ typedef struct {
* Trigger wifi subsystem restart to reload firmware
*/
wifi_error (*wifi_trigger_subsystem_restart)(wifi_handle handle);
+
+ /**
+ * Invoked to set that the device is operating in an indoor environment.
+ * @param handle global wifi_handle
+ * @param isIndoor: true if the device is operating in an indoor
+ * environment, false otherwise.
+ * @return Synchronous wifi_error
+ */
+ wifi_error (*wifi_set_indoor_state)(wifi_handle handle, bool isIndoor);
+
/*
* when adding new functions make sure to add stubs in
* hal_tool.cpp::init_wifi_stub_hal_func_table