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/chassishandler.cpp b/chassishandler.cpp
index 2952725..9a5f169 100644
--- a/chassishandler.cpp
+++ b/chassishandler.cpp
@@ -491,7 +491,7 @@
{
printf("Handling CHASSIS 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;
}