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

Commit 574c7d7d authored by Oleh Cherpak's avatar Oleh Cherpak Committed by Automerger Merge Worker
Browse files

vts: supplicant: Remove optional service registration am: 31c434b9 am: 8f10e805

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

Change-Id: I7a35fb40f8f7a11866c154c25b41c58643c511ed
parents 5dc0eb2b 8f10e805
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line
@@ -58,11 +58,14 @@ void initilializeDriverAndFirmware(const std::string& wifi_instance_name) {
    if (wifi_instance_name == "") {
        return;
    }

    if (getWifi(wifi_instance_name) != nullptr) {
        sp<IWifiChip> wifi_chip = getWifiChip(wifi_instance_name);
        ChipModeId mode_id;
        EXPECT_TRUE(configureChipToSupportIfaceType(
            wifi_chip, ::android::hardware::wifi::V1_0::IfaceType::STA, &mode_id));
    } else {
        LOG(WARNING) << __func__ << ": Vendor HAL not supported";
    }
}

// Helper function to deinitialize the driver and firmware
@@ -72,8 +75,11 @@ void deInitilializeDriverAndFirmware(const std::string& wifi_instance_name) {
    if (wifi_instance_name == "") {
        return;
    }

    if (getWifi(wifi_instance_name) != nullptr) {
        stopWifi(wifi_instance_name);
    } else {
        LOG(WARNING) << __func__ << ": Vendor HAL not supported";
    }
}

// Helper function to find any iface of the desired type exposed.