Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e671da4a authored by Tapas Dey's avatar Tapas Dey
Browse files

NFC: Fix NFC firmware download issue



Due to insufficient kernel buffer size, NFC firmware
download fails during NFC initialization.

Increased kernel buffer size to support
frame size of 554 in FW download mode.

Change-Id: I1e870389da1221a01b1a785ff1e5b6b175a88117
Signed-off-by: default avatarTapas Dey <tdey@codeaurora.org>
parent cf90c05d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -62,7 +62,12 @@
#define COLD_RESET_OID			0x1E

#define MAX_NCI_PAYLOAD_LEN		(255)
#define MAX_BUFFER_SIZE			(NCI_HDR_LEN + MAX_NCI_PAYLOAD_LEN)
/*
 * From MW 11.04 buffer size increased to support
 * frame size of 554 in FW download mode
 * Frame len(2) + Frame Header(6) + DATA(512) + HASH(32) + CRC(2) + RFU(4)
 */
#define MAX_BUFFER_SIZE			(558)

// Maximum retry count for standby writes
#define MAX_RETRY_COUNT			(3)