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

Commit 2781b367 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "wifi - Add wlan driver/fw version when device boot up"

parents f3fd4966 f5eca294
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1152,6 +1152,16 @@ WifiStatus WifiChip::handleChipConfiguration(
        // This probably is not a critical failure?
        LOG(ERROR) << "Failed to register radio mode change callback";
    }
    // Extract and save the version information into property.
    std::pair<WifiStatus, IWifiChip::ChipDebugInfo> version_info;
    version_info = WifiChip::requestChipDebugInfoInternal();
    if (WifiStatusCode::SUCCESS == version_info.first.code) {
        property_set("vendor.wlan.firmware.version",
                     version_info.second.firmwareDescription.c_str());
        property_set("vendor.wlan.driver.version",
                     version_info.second.driverDescription.c_str());
    }

    return createWifiStatus(WifiStatusCode::SUCCESS);
}