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

Commit f5eca294 authored by chenpaul's avatar chenpaul Committed by Paul Chen
Browse files

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

Bug: 127715974
Test: Property with wlan driver/fw version when device boot up
Change-Id: Idf1215ceb2c34502ed5eac6c8900350e511732fc
parent 16e12d10
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);
}