diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-06-17 15:46:37 -0700 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2019-06-24 23:18:10 +0000 |
commit | bc996a358719e24d2ab1108167cfc9f019d3fec9 (patch) | |
tree | 2ee3c92b0a610b06332864522f29c836a656ba46 /chassishandler.hpp | |
parent | 2c7db1d3594b388c0b857560e7217bbc154f84bf (diff) | |
download | phosphor-host-ipmid-bc996a358719e24d2ab1108167cfc9f019d3fec9.tar.gz phosphor-host-ipmid-bc996a358719e24d2ab1108167cfc9f019d3fec9.zip |
Fix power restore policy input parameter check
This changes the power restore policy command to return invalid
parameter for any unsupported policy option (greater than 0x03).
Tested:
ipmitool raw 0 6 0
07
ipmitool chassis status
Power Restore Policy : always-off
ipmitool raw 0 6 1
07
ipmitool chassis status
Power Restore Policy : previous
ipmitool raw 0 6 2
07
ipmitool chassis status
Power Restore Policy : always-on
ipmitool raw 0 6 3
07
ipmitool chassis status
Power Restore Policy : always-on
ipmitool raw 0 6 4
Unable to send RAW command (channel=0x0 netfn=0x0 lun=0x0 cmd=0x6 rsp=0xcc): Invalid data field in request
Change-Id: Ie78e00753f6dfd8b7bccce38c239a8103b6cc3fd
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'chassishandler.hpp')
-rw-r--r-- | chassishandler.hpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/chassishandler.hpp b/chassishandler.hpp index 6cffe58..dcaf06c 100644 --- a/chassishandler.hpp +++ b/chassishandler.hpp @@ -14,8 +14,6 @@ enum ipmi_netfn_chassis_cmds IPMI_CMD_CHASSIS_CONTROL = 0x02, IPMI_CMD_CHASSIS_IDENTIFY = 0x04, IPMI_CMD_SET_CHASSIS_CAP = 0x05, - // Set Power Restore Policy - IPMI_CMD_SET_RESTORE_POLICY = 0x06, // Get capability bits IPMI_CMD_SET_SYS_BOOT_OPTIONS = 0x08, IPMI_CMD_GET_SYS_BOOT_OPTIONS = 0x09, |