Remove support for Set SEL Time
Set SEL Time isn't supported, so override it to always return
0xC1.
Tested: Verified that Set SEL Time with zero or more parameters
returns 0xC1.
Change-Id: I0d27a991442745d953ae4c39d94f7d077995a647
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/src/storagecommands.cpp b/src/storagecommands.cpp
index 695e0a9..24b3005 100644
--- a/src/storagecommands.cpp
+++ b/src/storagecommands.cpp
@@ -1055,6 +1055,17 @@
return IPMI_CC_OK;
}
+ipmi_ret_t ipmiStorageSetSELTime(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
+ ipmi_request_t request,
+ ipmi_response_t response,
+ ipmi_data_len_t data_len,
+ ipmi_context_t context)
+{
+ // Set SEL Time is not supported
+ *data_len = 0;
+ return IPMI_CC_INVALID;
+}
+
void registerStorageFunctions()
{
// <Get FRU Inventory Area Info>
@@ -1098,6 +1109,12 @@
NETFUN_STORAGE,
static_cast<ipmi_cmd_t>(IPMINetfnStorageCmds::ipmiCmdClearSEL), NULL,
ipmiStorageClearSEL, PRIVILEGE_OPERATOR);
+
+ // <Set SEL Time>
+ ipmiPrintAndRegister(
+ NETFUN_STORAGE,
+ static_cast<ipmi_cmd_t>(IPMINetfnStorageCmds::ipmiCmdSetSELTime), NULL,
+ ipmiStorageSetSELTime, PRIVILEGE_OPERATOR);
}
} // namespace storage
} // namespace ipmi