summaryrefslogtreecommitdiffstats
path: root/src/phHciNfc_Felica.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/phHciNfc_Felica.c')
-rw-r--r--src/phHciNfc_Felica.c6
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);