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

Commit 59559857 authored by Sunil Ravi's avatar Sunil Ravi
Browse files

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: I4cc4c22444f0796c280220534d43c4ae8cae0899
parent 1c2cb434
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