summaryrefslogtreecommitdiffstats
path: root/sensorhandler.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 /sensorhandler.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 'sensorhandler.cpp')
-rw-r--r--sensorhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index ea8099d..f906921 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -235,7 +235,7 @@ ipmi_ret_t ipmi_sen_wildcard(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)
{
- ipmi_ret_t rc = IPMI_CC_OK;
+ ipmi_ret_t rc = IPMI_CC_INVALID;
printf("IPMI S/E Wildcard Netfn:[0x%X], Cmd:[0x%X]\n",netfn,cmd);
*data_len = 0;
OpenPOWER on IntegriCloud