Rename toggleWifiFramework in the Hostapd

AIDL test utils in order to avoid having
an ambigous function call.

aosp/2728874 adds a method of the same
name, which is causing pre-submit issues.

Bug: 297820612
Test: atest VtsHalHostapdTargetTest
Change-Id: Ie4da0a0037e7411e7908401f021b48246ea227bd
This commit is contained in:
Gabriel Biren
2023-09-14 23:41:45 +00:00
parent 89d6d5e8fd
commit 94950dc20d

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