Rename toggleWifiFramework in the Hostapd am: ff914778ef am: bec9c969af

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

Change-Id: Ia11d4c429b3a5de9adcbf40174c51e1b62dd2781
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Gabriel Biren
2023-09-15 19:59:27 +00:00
committed by Automerger Merge Worker

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