Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions pldmtool/pldm_fw_update_cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,28 @@ class GetFwParams : public CommandInterface
"No host OS environment restriction for update mode";
}

if (fwParams.capabilities_during_update.bits.bit8)
{
capabilitiesDuringUpdate["Firmware device downgrade restrictions"] =
"Firmware Device supports downgrade restrictions, and each component image will report whether a downgrade to an older component image can occur.";
}
else
{
capabilitiesDuringUpdate["Firmware device downgrade restrictions"] =
"Firmware Device does not have downgrade restrictions which may prevent a component image from being downgraded.";
}

if (fwParams.capabilities_during_update.bits.bit9)
{
capabilitiesDuringUpdate["Security revision number update request support"] =
"Firmware Device may have components with a security revision number capability.";
}
else
{
capabilitiesDuringUpdate["Security revision number update request support"] =
"Firmware Device does not support control of component's security revision number update.";
}

ordered_json data;
data["CapabilitiesDuringUpdate"] = capabilitiesDuringUpdate;
data["ComponentCount"] = static_cast<uint16_t>(fwParams.comp_count);
Expand Down