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

Commit f2747e04 authored by Kumar Anand's avatar Kumar Anand
Browse files

wifi: thermal hal api

Use global handle instead of interface handle as thermal
mitigation is not interface specific.

Bug: 112471991
Test: atest FrameworksWifiTests
Change-Id: Ia8aadec7794bd2dbd5954ec0225caa349b31070c
parent 77883fe5
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -824,11 +824,10 @@ wifi_error WifiLegacyHal::setLatencyMode(const std::string& iface_name,
                                                    mode);
}

wifi_error WifiLegacyHal::setThermalMitigationMode(
    const std::string& iface_name, wifi_thermal_mode mode,
wifi_error WifiLegacyHal::setThermalMitigationMode(wifi_thermal_mode mode,
                                                   uint32_t completion_window) {
    return global_func_table_.wifi_set_thermal_mitigation_mode(
        getIfaceHandle(iface_name), mode, completion_window);
        global_handle_, mode, completion_window);
}

std::pair<wifi_error, uint32_t> WifiLegacyHal::getLoggerSupportedFeatureSet(
+1 −2
Original line number Diff line number Diff line
@@ -259,8 +259,7 @@ class WifiLegacyHal {
    virtual wifi_error resetTxPowerScenario(const std::string& iface_name);
    wifi_error setLatencyMode(const std::string& iface_name,
                              wifi_latency_mode mode);
    wifi_error setThermalMitigationMode(const std::string& iface_name,
                                        wifi_thermal_mode mode,
    wifi_error setThermalMitigationMode(wifi_thermal_mode mode,
                                        uint32_t completion_window);
    // Logger/debug functions.
    std::pair<wifi_error, uint32_t> getLoggerSupportedFeatureSet(