summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-07-14 16:06:52 -0700
committerNick Pelly <npelly@google.com>2011-07-14 16:13:52 -0700
commit8e65f6b557dd972062785645cc9464c666a14030 (patch)
tree9054b14d274976fcfe09309ececef60d67440996 /src
parent193b1502af0b28062b22af42ff3dd02f3bb21053 (diff)
downloadexternal_libnfc-nxp-8e65f6b557dd972062785645cc9464c666a14030.zip
external_libnfc-nxp-8e65f6b557dd972062785645cc9464c666a14030.tar.gz
external_libnfc-nxp-8e65f6b557dd972062785645cc9464c666a14030.tar.bz2
Revert "Patch to decrease the maximum packet size for NFC firmware download"
This reverts commit 294b456a3692cd69f45713bc8e9700132a0e5aec. @#$% the pn544. This patch to execute FW download mode with 64 byte frames has some kind of side-affect. It causes the pn544 to send > NFC I2C Received buffer: 0xB2 0x83 0x53 0xC9 0x6B every 2 seconds. We do not yet know what this command means, it is undocumented. This side affect appear permanent - even after reverting to a 512 byte FW download, the NFC controller continues to send these messages. Reverting ASAP to minimize damage. Change-Id: I139a4a76c045f580df9760dc11d1c6df7b317a50
Diffstat (limited to 'src')
-rwxr-xr-xsrc/phDnldNfc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/phDnldNfc.c b/src/phDnldNfc.c
index 96f48dd..904e3d4 100755
--- a/src/phDnldNfc.c
+++ b/src/phDnldNfc.c
@@ -96,8 +96,8 @@ extern char phOsalNfc_DbgTraceBuffer[];
#define PHDNLD_ADDR_SIZE 0x03U
#define PHDNLD_DATA_LEN_SIZE 0x02U
#define PHDNLD_MIN_PACKET 0x03U /* Minimum Packet Size is 3*/
-#define PHDNLD_MAX_PACKET 0x40U /* Max Total Packet Size is 64 bytes */
-#define PHDNLD_DATA_SIZE 0x38U /* Max Data Size is 56 bytes */
+#define PHDNLD_MAX_PACKET 0x0200U /* Max Total Packet Size is 512 */
+#define PHDNLD_DATA_SIZE 0x01F8U /* Max Data Size is 504 */
#define FW_MAX_SECTION 0x15U /* Max Number of Sections */
@@ -352,7 +352,7 @@ typedef struct phDnldNfc_sData
union param
{
phDnldNfc_sParam_t data_param;
- uint8_t response_data[PHDNLD_MAX_PACKET<<1];
+ uint8_t response_data[PHDNLD_MAX_PACKET];
uint8_t config_verify_param;
}param_info;
}phDnldNfc_sData_t;