Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 839b1e2e authored by Sunil Ravi's avatar Sunil Ravi Committed by Android (Google) Code Review
Browse files

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

parents e6db2b63 59559857
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();
+2 −0
Original line number Diff line number Diff line
@@ -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();
+1 −0
Original line number Diff line number Diff line
@@ -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