From 6806a9dd81fb641330df59db8cf2d18eca3e4297 Mon Sep 17 00:00:00 2001 From: Sunil Ravi Date: Thu, 30 May 2024 03:46:24 +0000 Subject: [PATCH] Revert^2 "Change ifname to interface handle in set_scan_mode api" This reverts commit 3a4e5591c0d77abdd0d7e732d735ec352265dbd7. Reason for revert: Fix for build failure identified Change-Id: I1f7784f67b575103bb5a6f3ce77fb9551f1f1471 --- wifi/aidl/default/wifi_legacy_hal.cpp | 2 +- wifi/legacy_headers/include/hardware_legacy/wifi_hal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wifi/aidl/default/wifi_legacy_hal.cpp b/wifi/aidl/default/wifi_legacy_hal.cpp index cf86120032..bd92a20f8d 100644 --- a/wifi/aidl/default/wifi_legacy_hal.cpp +++ b/wifi/aidl/default/wifi_legacy_hal.cpp @@ -2012,7 +2012,7 @@ wifi_error WifiLegacyHal::twtClearStats(const std::string& iface_name, uint8_t c } wifi_error WifiLegacyHal::setScanMode(const std::string& iface_name, bool enable) { - return global_func_table_.wifi_set_scan_mode(iface_name.c_str(), enable); + return global_func_table_.wifi_set_scan_mode(getIfaceHandle(iface_name), enable); } wifi_error WifiLegacyHal::setDtimConfig(const std::string& iface_name, uint32_t multiplier) { diff --git a/wifi/legacy_headers/include/hardware_legacy/wifi_hal.h b/wifi/legacy_headers/include/hardware_legacy/wifi_hal.h index e770777aae..42629133f3 100644 --- a/wifi/legacy_headers/include/hardware_legacy/wifi_hal.h +++ b/wifi/legacy_headers/include/hardware_legacy/wifi_hal.h @@ -1386,7 +1386,7 @@ typedef struct { * @param enable true if current is scan only mode * @return Synchronous wifi_error */ - wifi_error (*wifi_set_scan_mode)(const char * ifname, bool enable); + wifi_error (*wifi_set_scan_mode)(wifi_interface_handle iface, bool enable); wifi_error (*wifi_nan_pairing_end)(transaction_id id, wifi_interface_handle iface,