Modify respond of un-supported IPMI command
A number of callbacks are registered for 'WILDCARD' types, which
currently do nothing except respond with CC_OK(00h). Change complete
codes to CC_INVALID(C1h).
Resolves openbmc/openbmc#469.
Change-Id: I91ea5ee1a23284a4159ff1c1867342e89c6fa444
Signed-off-by: Nan Li <william.bjlinan@hotmail.com>
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 9379b0d..01dd41a 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -21,7 +21,7 @@
{
printf("Handling STORAGE WILDCARD Netfn:[0x%X], Cmd:[0x%X]\n",netfn, cmd);
// Status code.
- ipmi_ret_t rc = IPMI_CC_OK;
+ ipmi_ret_t rc = IPMI_CC_INVALID;
*data_len = 0;
return rc;
}