Revert^2 "Change ifname to interface handle in set_scan_mode api"

This reverts commit 3a4e5591c0.

Reason for revert: Fix for build failure identified

Change-Id: I1f7784f67b575103bb5a6f3ce77fb9551f1f1471
This commit is contained in:
Sunil Ravi 2024-05-30 03:46:24 +00:00 committed by Android (Google) Code Review
parent 3a4e5591c0
commit 6806a9dd81
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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,