platform: Support PLDM_CPER_EVENT in encode_platform_event_message_req()
DSP0248 v1.3.0 add CPEREvent for PLDM Event Types as Table 11 and add
it in `encode_platform_event_message_req` func.
Change-Id: I94e73938694ce8367489244b75c7e8e0a6d1d8ee
Signed-off-by: John Chung <john.chung@arm.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/src/dsp/platform.c b/src/dsp/platform.c
index 4ecad13..755707a 100644
--- a/src/dsp/platform.c
+++ b/src/dsp/platform.c
@@ -1236,7 +1236,7 @@
return PLDM_ERROR_INVALID_LENGTH;
}
- if (event_class > PLDM_HEARTBEAT_TIMER_ELAPSED_EVENT &&
+ if (event_class > PLDM_CPER_EVENT &&
!(event_class >= 0xf0 && event_class <= 0xfe)) {
return PLDM_ERROR_INVALID_DATA;
}