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
This commit is contained in:
Sunil Ravi 2022-01-24 18:04:04 -08:00
parent 60d787cd15
commit 8ec08d0216

View file

@ -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