mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Wifi: API to set the indoor state of device"
This commit is contained in:
@@ -1533,6 +1533,10 @@ wifi_error WifiLegacyHal::triggerSubsystemRestart() {
|
||||
return global_func_table_.wifi_trigger_subsystem_restart(global_handle_);
|
||||
}
|
||||
|
||||
wifi_error WifiLegacyHal::setIndoorState(bool isIndoor) {
|
||||
return global_func_table_.wifi_set_indoor_state(global_handle_, isIndoor);
|
||||
}
|
||||
|
||||
void WifiLegacyHal::invalidate() {
|
||||
global_handle_ = nullptr;
|
||||
iface_name_to_handle_.clear();
|
||||
|
||||
@@ -658,6 +658,8 @@ class WifiLegacyHal {
|
||||
|
||||
wifi_error triggerSubsystemRestart();
|
||||
|
||||
wifi_error setIndoorState(bool isIndoor);
|
||||
|
||||
private:
|
||||
// Retrieve interface handles for all the available interfaces.
|
||||
wifi_error retrieveIfaceHandles();
|
||||
|
||||
@@ -161,6 +161,7 @@ bool initHalFuncTableWithStubs(wifi_hal_fn* hal_fn) {
|
||||
populateStubFor(&hal_fn->wifi_set_dtim_config);
|
||||
populateStubFor(&hal_fn->wifi_get_usable_channels);
|
||||
populateStubFor(&hal_fn->wifi_trigger_subsystem_restart);
|
||||
populateStubFor(&hal_fn->wifi_set_indoor_state);
|
||||
return true;
|
||||
}
|
||||
} // namespace legacy_hal
|
||||
|
||||
Reference in New Issue
Block a user