Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11d6365d authored by Gabriel Biren's avatar Gabriel Biren Committed by Automerger Merge Worker
Browse files

Rename toggleWifiFramework in the Hostapd am: ff914778 am: bec9c969

parents a88395ee bec9c969
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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) {