summaryrefslogtreecommitdiff
path: root/lib/hpm2.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 12:21:52 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 12:21:52 +0100
commit096a497b36f208fb68a12c7ae7576ca0a69f919d (patch)
tree3845c9631fab6a3a6177813367ddd03f7867700b /lib/hpm2.c
parent7b5768ae6a3fee6cb80300824b9e758021b22f2e (diff)
parent55031e72e6c02b4ae63e9052bad1a4b40002ac18 (diff)
Import new upstream release 1.8.15
Diffstat (limited to 'lib/hpm2.c')
-rw-r--r--lib/hpm2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/hpm2.c b/lib/hpm2.c
index e7d6c03..6cb2f80 100644
--- a/lib/hpm2.c
+++ b/lib/hpm2.c
@@ -30,6 +30,7 @@
* EVEN IF PPS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
+#include <ipmitool/bswap.h>
#include <ipmitool/hpm2.h>
#include <ipmitool/ipmi_intf.h>
#include <ipmitool/log.h>
@@ -233,7 +234,8 @@ int hpm2_get_lan_channel_capabilities(struct ipmi_intf * intf,
}
/* check parameter revision */
- if (rsp->data[0] != HPM2_LAN_PARAMS_REV) {
+ if (rsp->data[0] !=
+ LAN_PARAM_REV(HPM2_LAN_PARAMS_REV, HPM2_LAN_PARAMS_REV)) {
lprintf(LOG_NOTICE, "Bad HPM.2 LAN parameter revision, rev=%d",
rsp->data[0]);
return -1;