Fix for set/get cold redundancy configuration commands

In set, the length of input parameters should be the same as the connected PSUs;
In get, the length of the return value should be the same as the connected PSUs;

Tested:
On system with two PSUs:

ipmitool raw 0x30 0x2e 5
 05 02

ipmitool raw 0x30 0x2d 0x03 0x01 0x01 0x02
 00
ipmitool raw 0x30 0x2e 3
 03 01 01 02

ipmitool raw 0x30 0x2d 0x03 0x01 0x01 0x02 0x3
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x2d rsp=0xc7): Request data length invalid

ipmitool raw 0x30 0x2d 0x03 0x01 0x01
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x2d rsp=0xc7): Request data length invalid

Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Change-Id: I3352d7aa197af63925569ef1758132914d18eaa8
1 file changed