summaryrefslogtreecommitdiffstats
path: root/src/phDnldNfc.c
diff options
context:
space:
mode:
authorDaniel Tomas <dtomas.nxp@gmail.com>2011-07-12 15:39:57 -0700
committerNick Pelly <npelly@google.com>2011-07-12 16:03:22 -0700
commit294b456a3692cd69f45713bc8e9700132a0e5aec (patch)
treeda0b8059609dda8ace29be4808b8a70e73bda633 /src/phDnldNfc.c
parenta2f8fdd5067083aff0491ae24fbc954c71ada576 (diff)
downloadexternal_libnfc-nxp-294b456a3692cd69f45713bc8e9700132a0e5aec.zip
external_libnfc-nxp-294b456a3692cd69f45713bc8e9700132a0e5aec.tar.gz
external_libnfc-nxp-294b456a3692cd69f45713bc8e9700132a0e5aec.tar.bz2
Patch to decrease the maximum packet size for NFC firmware download
This patch permit to decrease the max packet size to 64 bytes from 512 bytes and to fix an issue faced in response_data buffer with the new packet size. Change-Id: Ifc5cc9910b3b1a71b88624cd04c2bada7f1a413f
Diffstat (limited to 'src/phDnldNfc.c')
-rw-r--r--src/phDnldNfc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/phDnldNfc.c b/src/phDnldNfc.c
index ba56513..54d5b87 100644
--- a/src/phDnldNfc.c
+++ b/src/phDnldNfc.c
@@ -95,8 +95,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 0x0200U /* Max Total Packet Size is 512 */
-#define PHDNLD_DATA_SIZE 0x01F8U /* Max Data Size is 504 */
+#define PHDNLD_MAX_PACKET 0x40U /* Max Total Packet Size is 64 bytes */
+#define PHDNLD_DATA_SIZE 0x38U /* Max Data Size is 56 bytes */
#define FW_MAX_SECTION 0x15U /* Max Number of Sections */
@@ -351,7 +351,7 @@ typedef struct phDnldNfc_sData
union param
{
phDnldNfc_sParam_t data_param;
- uint8_t response_data[PHDNLD_MAX_PACKET];
+ uint8_t response_data[PHDNLD_MAX_PACKET<<1];
uint8_t config_verify_param;
}param_info;
}phDnldNfc_sData_t;