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

Commit 913d5604 authored by Kumar Anand's avatar Kumar Anand
Browse files

wifi: Legacy HAL Thermal API stub

Add the stub implementation for Wifi thermal API

Bug: 140311866
Test: Manual, on device
Change-Id: I401bf7a38fa52d160ae45cd519a225c07360cd3c
parent 66135e54
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -824,6 +824,13 @@ wifi_error WifiLegacyHal::setLatencyMode(const std::string& iface_name,
                                                    mode);
                                                    mode);
}
}


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

std::pair<wifi_error, uint32_t> WifiLegacyHal::getLoggerSupportedFeatureSet(
std::pair<wifi_error, uint32_t> WifiLegacyHal::getLoggerSupportedFeatureSet(
    const std::string& iface_name) {
    const std::string& iface_name) {
    uint32_t supported_feature_flags;
    uint32_t supported_feature_flags;
+3 −0
Original line number Original line Diff line number Diff line
@@ -259,6 +259,9 @@ class WifiLegacyHal {
    virtual wifi_error resetTxPowerScenario(const std::string& iface_name);
    virtual wifi_error resetTxPowerScenario(const std::string& iface_name);
    wifi_error setLatencyMode(const std::string& iface_name,
    wifi_error setLatencyMode(const std::string& iface_name,
                              wifi_latency_mode mode);
                              wifi_latency_mode mode);
    wifi_error setThermalMitigationMode(const std::string& iface_name,
                                        wifi_thermal_mode mode,
                                        uint32_t completion_window);
    // Logger/debug functions.
    // Logger/debug functions.
    std::pair<wifi_error, uint32_t> getLoggerSupportedFeatureSet(
    std::pair<wifi_error, uint32_t> getLoggerSupportedFeatureSet(
        const std::string& iface_name);
        const std::string& iface_name);
+1 −0
Original line number Original line Diff line number Diff line
@@ -138,6 +138,7 @@ bool initHalFuncTableWithStubs(wifi_hal_fn* hal_fn) {
    populateStubFor(&hal_fn->wifi_reset_tx_power_scenario);
    populateStubFor(&hal_fn->wifi_reset_tx_power_scenario);
    populateStubFor(&hal_fn->wifi_set_radio_mode_change_handler);
    populateStubFor(&hal_fn->wifi_set_radio_mode_change_handler);
    populateStubFor(&hal_fn->wifi_set_latency_mode);
    populateStubFor(&hal_fn->wifi_set_latency_mode);
    populateStubFor(&hal_fn->wifi_set_thermal_mitigation_mode);
    return true;
    return true;
}
}
}  // namespace legacy_hal
}  // namespace legacy_hal