Rename toggleWifiFramework in the Hostapd am: ff914778ef am: bec9c969af am: ad2bd3d243

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24772977

Change-Id: Ia0bdba896a535b74cad394ea50f43426fbe7082a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Gabriel Biren 2023-09-15 20:57:14 +00:00 committed by Automerger Merge Worker
commit 615ebc2a61

View file

@ -63,7 +63,7 @@ void waitForSupplicantState(bool enable) {
LOG(ERROR) << "Unable to " << (enable ? "start" : "stop") << " supplicant";
}
void toggleWifiFramework(bool enable) {
void toggleWifiFrameworkAndScan(bool enable) {
if (enable) {
std::system("svc wifi enable");
std::system("cmd wifi set-scan-always-available enabled");
@ -89,7 +89,7 @@ std::shared_ptr<IHostapd> getHostapd(const std::string& hostapd_instance_name) {
* any other clients to the HALs during testing.
*/
void disableHalsAndFramework() {
toggleWifiFramework(false);
toggleWifiFrameworkAndScan(false);
stopHostapd();
stopVendorHal();
@ -110,7 +110,7 @@ void stopHostapdAndVendorHal() {
}
void startWifiFramework() {
toggleWifiFramework(true);
toggleWifiFrameworkAndScan(true);
}
std::string setupApIfaceAndGetName(bool isBridged) {