summaryrefslogtreecommitdiffstats
path: root/apphandler.cpp
diff options
context:
space:
mode:
authorNan Li <william.bjlinan@hotmail.com>2016-08-29 00:11:10 +0800
committerPatrick Williams <patrick@stwcx.xyz>2016-09-09 20:54:57 +0000
commit70aa8d9677b13eb97e71bc758a09e14e37053565 (patch)
treee42b5465c43bb01fd44ee0c840a89558d694a41f /apphandler.cpp
parent37af73315c3e1ff504db466b10e6269cc56dcc6c (diff)
downloadphosphor-host-ipmid-70aa8d9677b13eb97e71bc758a09e14e37053565.tar.gz
phosphor-host-ipmid-70aa8d9677b13eb97e71bc758a09e14e37053565.zip
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>
Diffstat (limited to 'apphandler.cpp')
-rw-r--r--apphandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/apphandler.cpp b/apphandler.cpp
index 8da85e4..7b64c76 100644
--- a/apphandler.cpp
+++ b/apphandler.cpp
@@ -556,7 +556,7 @@ ipmi_ret_t ipmi_app_wildcard_handler(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
printf("Handling 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 = strlen("THIS IS WILDCARD");
OpenPOWER on IntegriCloud