oemcommands: fan control profile correction
Corrected default fan control profile for get fan control configuration
Tested:
Validate using below raw command.
Command: ipmitool raw 0x30 0x8a 0x00
Response: 80 00 04 00 00 00 00
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: I240626160a1fd71c3907fe5db9335b0d19b8248d
diff --git a/src/oemcommands.cpp b/src/oemcommands.cpp
index f7d1c6d..02c2883 100644
--- a/src/oemcommands.cpp
+++ b/src/oemcommands.cpp
@@ -1598,7 +1598,13 @@
flags |= 1 << 2;
}
- return ipmi::responseSuccess(0, 0, flags, 0);
+ constexpr uint8_t fanControlDefaultProfile = 0x80;
+ constexpr uint8_t fanControlProfileState = 0x00;
+ constexpr uint32_t dimmPresenceBitmap = 0x00;
+
+ return ipmi::responseSuccess(fanControlDefaultProfile,
+ fanControlProfileState, flags,
+ dimmPresenceBitmap);
}
constexpr const char* cfmLimitSettingPath =
"/xyz/openbmc_project/control/cfm_limit";