commit | 50274f7696779e00fd16b5e6fbbc02e36fc64352 | [log] [tgz] |
---|---|---|
author | Ye Jiao <ye.jiao@mediatek.com> | Tue Jan 17 14:53:22 2023 +0800 |
committer | Shuibing Dai <shuibing@google.com> | Thu Jan 26 21:00:32 2023 -0800 |
tree | f93a767f6074a9548d14e6e9bcc7a45a0995e4a9 | |
parent | 6947baffab9d41c5cd86c8287f3db904d62b45ba [diff] [blame] |
Move setScanMode to legacy HAL Cherry-pick from https://partner-android-review.git.corp.google.com/c/platform/hardware/interfaces/+/2369946 Implementation of setScanMode is platform-specific. It's more reasonable to move it the legacy HAL like other platform-specific APIs. Bug: 265866990 Test: manual Test Test: VTS Change-Id: I2f8ff73b764ed1b9835b8e3157f673d7d558ae02
diff --git a/wifi/aidl/default/wifi_legacy_hal.cpp b/wifi/aidl/default/wifi_legacy_hal.cpp index 0711568..43a71cc 100644 --- a/wifi/aidl/default/wifi_legacy_hal.cpp +++ b/wifi/aidl/default/wifi_legacy_hal.cpp
@@ -1766,6 +1766,10 @@ return global_func_table_.wifi_twt_clear_stats(getIfaceHandle(iface_name), configId); } +wifi_error WifiLegacyHal::setScanMode(const std::string& iface_name, bool enable) { + return global_func_table_.wifi_set_scan_mode(iface_name.c_str(), enable); +} + wifi_error WifiLegacyHal::setDtimConfig(const std::string& iface_name, uint32_t multiplier) { return global_func_table_.wifi_set_dtim_config(getIfaceHandle(iface_name), multiplier); }