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

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

Rename toggleWifiFramework in the Hostapd am: ff914778

parents b668cff7 ff914778
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -63,7 +63,7 @@ void waitForSupplicantState(bool enable) {
    LOG(ERROR) << "Unable to " << (enable ? "start" : "stop") << " supplicant";
    LOG(ERROR) << "Unable to " << (enable ? "start" : "stop") << " supplicant";
}
}


void toggleWifiFramework(bool enable) {
void toggleWifiFrameworkAndScan(bool enable) {
    if (enable) {
    if (enable) {
        std::system("svc wifi enable");
        std::system("svc wifi enable");
        std::system("cmd wifi set-scan-always-available enabled");
        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.
 *       any other clients to the HALs during testing.
 */
 */
void disableHalsAndFramework() {
void disableHalsAndFramework() {
    toggleWifiFramework(false);
    toggleWifiFrameworkAndScan(false);
    stopHostapd();
    stopHostapd();
    stopVendorHal();
    stopVendorHal();


@@ -110,7 +110,7 @@ void stopHostapdAndVendorHal() {
}
}


void startWifiFramework() {
void startWifiFramework() {
    toggleWifiFramework(true);
    toggleWifiFrameworkAndScan(true);
}
}


std::string setupApIfaceAndGetName(bool isBridged) {
std::string setupApIfaceAndGetName(bool isBridged) {