-
Type:
Bug
-
Resolution: Fixed
-
Priority:
High
-
MCAL
-
MCAL-27655
-
-
-
Description:
When trying to recieve 496 bytes (which should be the maximum allowed) an if-statement fails.
if (((isCtrlMsg == TRUE) && ((payload->len) < (CDD_IPC_MAX_CTRL_MSG_LEN))) || ((payload->len) < (CDD_IPC_MAX_MSG_LEN)))
if the payload is of exactly 496 bytes (which is CDD_IPC_MAX_MSG_LEN) the message will not be received. The test should look like this:
((payload->len) <= (CDD_IPC_MAX_MSG_LEN))
Resolution:
if condition check such that, the message will not be received for payload of exactly 496 bytes (which is CDD_IPC_MAX_MSG_LEN)
Root Cause:
Updated the if condition to recieve the payload of exactly 496 bytes (which is CDD_IPC_MAX_MSG_LEN)