diff options
author | Sunil Ravi <sunilravi@google.com> | 2022-01-24 18:04:04 -0800 |
---|---|---|
committer | Sunil Ravi <sunilravi@google.com> | 2022-01-25 11:44:15 -0800 |
commit | 8ec08d0216fdd3d07aafcd1906d0b03d4155e77e (patch) | |
tree | f7d99577acdc1ca1c28c0ca901fd8094175bb9b6 | |
parent | 60d787cd159a27ecc63bb5a1846faf63e4c45475 (diff) | |
download | libhardware_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.h | 10 |
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 |