Merge "Wifi: API to set the indoor state of device"

This commit is contained in:
Sunil Ravi
2022-01-26 02:56:43 +00:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 0 deletions

View File

@@ -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();

View File

@@ -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();

View File

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