summaryrefslogtreecommitdiff
path: root/lib/hpm2.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-05-08 22:59:02 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-05-08 22:59:02 +0200
commit342ebce798fe98ede64939a49bbc3770d8214649 (patch)
treeb55927f05ec0d294ababcb2b4519b7e1a628d5f8 /lib/hpm2.c
parent97d6a2e491c6ed08473beb2c4bac47c5cbc1201a (diff)
Imported Upstream version 1.8.17upstream/1.8.17
Diffstat (limited to 'lib/hpm2.c')
-rw-r--r--lib/hpm2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/hpm2.c b/lib/hpm2.c
index 6420629..52e5366 100644
--- a/lib/hpm2.c
+++ b/lib/hpm2.c
@@ -36,6 +36,12 @@
#include <ipmitool/log.h>
#include <ipmitool/bswap.h>
+/* From src/plugins/ipmi_intf.c: */
+void
+ipmi_intf_set_max_request_data_size(struct ipmi_intf * intf, uint16_t size);
+void
+ipmi_intf_set_max_response_data_size(struct ipmi_intf * intf, uint16_t size);
+
#if HAVE_PRAGMA_PACK
# pragma pack(push, 1)
#endif
@@ -128,7 +134,7 @@ int hpm2_get_capabilities(struct ipmi_intf * intf,
#endif
/* check HPM.2 revision */
- if (caps->hpm2_revision_id != HPM2_REVISION) {
+ if (caps->hpm2_revision_id == 0) {
lprintf(LOG_NOTICE, "Bad HPM.2 revision, rev=%d",
caps->hpm2_revision_id);
return -1;