mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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
Merged-In: Ie4da0a0037e7411e7908401f021b48246ea227bd
(cherry picked from commit 94950dc20d)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user