diff options
author | Martijn Coenen <martijn.coenen@nxp.com> | 2010-11-02 08:53:36 -0600 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-11-02 12:13:11 -0500 |
commit | fa199fc046cb0bc698d564daaba669a180b7c6f4 (patch) | |
tree | a1ebb605046b1d1b140490fa766d91e9b6f3cfe1 /src/phHciNfc_Felica.c | |
parent | c2866714540bec65af19240e95a10d3090df0cf9 (diff) | |
download | external_libnfc-nxp-fa199fc046cb0bc698d564daaba669a180b7c6f4.zip external_libnfc-nxp-fa199fc046cb0bc698d564daaba669a180b7c6f4.tar.gz external_libnfc-nxp-fa199fc046cb0bc698d564daaba669a180b7c6f4.tar.bz2 |
Fixed ICODE and Felica presence checking.
For Felica, the wrong command was used.
For ICODE (ISO15693), there was no check implemented at all
Change-Id: I40b17feb8b9184cc3c2765cb5b32ea82ebec143b
Diffstat (limited to 'src/phHciNfc_Felica.c')
-rw-r--r-- | src/phHciNfc_Felica.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/phHciNfc_Felica.c b/src/phHciNfc_Felica.c index e631012..6c58df1 100644 --- a/src/phHciNfc_Felica.c +++ b/src/phHciNfc_Felica.c @@ -797,7 +797,7 @@ phHciNfc_Felica_Request_Mode( void *pHwRef) { NFCSTATUS status = NFCSTATUS_SUCCESS; - static uint8_t pres_chk_data[(PHHAL_FEL_ID_LEN + 2)] = {0}; + static uint8_t pres_chk_data[(PHHAL_FEL_ID_LEN + 4)] = {0}; if( (NULL == psHciContext) || (NULL == pHwRef) ) { @@ -825,7 +825,9 @@ phHciNfc_Felica_Request_Mode( &(ps_fel_info->felica_info.RemoteDevInfo.Felica_Info); pres_chk_data[i++] = sizeof(pres_chk_data); - pres_chk_data[i++] = FELICA_REQ_MODE; + pres_chk_data[i++] = 0x00; // Felica poll + pres_chk_data[i++] = 0xFF; + pres_chk_data[i++] = 0xFF; (void)memcpy((void *)&(pres_chk_data[i]), (void *)ps_rem_fel_info->IDm, PHHAL_FEL_ID_LEN); |