diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-04-10 08:22:05 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-28 17:39:35 +0000 |
commit | 8fb365850415a44c7f8eeaba154381cdb82a6493 (patch) | |
tree | c68b73a86d7ef1913bdabd620fe739380ac513e5 /driver/nfc/ctn730.h | |
parent | 5dfaf9e91b27fb91b58725ffdf96cf861a75011b (diff) | |
download | chrome-ec-8fb365850415a44c7f8eeaba154381cdb82a6493.tar.gz |
ctn730: Handle messages with no payload properly
Messages without payload are allowed in the specification though
they're currently not used in the implementation. This patch makes
ctn730 driver properly handle such messages.
BUG=b:192087974, b:190841496
BRANCH=None
TEST=make run-pchg_fuzz
Change-Id: I2d53ba3d45eb3684db7777627d392b1c8570b5ca
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2987906
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'driver/nfc/ctn730.h')
-rw-r--r-- | driver/nfc/ctn730.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/nfc/ctn730.h b/driver/nfc/ctn730.h index 7a243c0561..0195b36a6d 100644 --- a/driver/nfc/ctn730.h +++ b/driver/nfc/ctn730.h @@ -45,6 +45,8 @@ #define WLC_HOST_CTRL_RESET_REASON_UNRECOVERABLE 0x02 #define WLC_HOST_CTRL_RESET_CMD_MODE_NORMAL 0x00 #define WLC_HOST_CTRL_RESET_CMD_MODE_DOWNLOAD 0x01 +#define WLC_HOST_CTRL_RESET_EVT_MIN_SIZE \ + WLC_HOST_CTRL_RESET_EVT_DOWNLOAD_MODE_SIZE /* WLC_HOST_CTRL_DL_* constants */ #define WLC_HOST_CTRL_DL_OPEN_SESSION_CMD_SIZE 2 |