summaryrefslogtreecommitdiffstats
path: root/src/phHciNfc_RFReader.c
diff options
context:
space:
mode:
authorJan Brands <jan.r.brands@nxp.com>2010-11-27 17:16:31 +0100
committerNick Pelly <npelly@google.com>2010-12-05 13:14:24 -0800
commit1c7419cf7fd8913852433a02a0f16da8912fae6f (patch)
treec26f8aafc5214436107228daa7bfa73d4e2d3412 /src/phHciNfc_RFReader.c
parentec8032f1a91926792c014c862fd78026c2bf7f8f (diff)
downloadexternal_libnfc-nxp-1c7419cf7fd8913852433a02a0f16da8912fae6f.zip
external_libnfc-nxp-1c7419cf7fd8913852433a02a0f16da8912fae6f.tar.gz
external_libnfc-nxp-1c7419cf7fd8913852433a02a0f16da8912fae6f.tar.bz2
Fix from the Bangalore team for long APDUs
Change-Id: Id251fcd72bcc91a3fd85ac26c15fd609ce9f5e4e
Diffstat (limited to 'src/phHciNfc_RFReader.c')
-rw-r--r--src/phHciNfc_RFReader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/phHciNfc_RFReader.c b/src/phHciNfc_RFReader.c
index 816c48d..6f53f74 100644
--- a/src/phHciNfc_RFReader.c
+++ b/src/phHciNfc_RFReader.c
@@ -2253,7 +2253,7 @@ phHciNfc_ReaderMgmt_Release(
phHciNfc_Append_HCPFrame((uint8_t *)hcp_message->payload,
i, p_pipe_info->param_info,
p_pipe_info->param_length);
- length =(uint8_t)(length + i + p_pipe_info->param_length);
+ length =(uint16_t)(length + i + p_pipe_info->param_length);
break;
}
default:
@@ -2299,7 +2299,7 @@ phHciNfc_ReaderMgmt_Release(
phHciNfc_HCP_Message_t *hcp_message = NULL;
phHciNfc_Pipe_Info_t *p_pipe_info = NULL;
uint8_t i = 0;
- uint8_t length=0;
+ uint16_t length=0;
NFCSTATUS status = NFCSTATUS_SUCCESS;
if( (NULL == psHciContext)
@@ -2332,7 +2332,7 @@ phHciNfc_ReaderMgmt_Release(
phHciNfc_Append_HCPFrame((uint8_t *)hcp_message->payload,
i, p_pipe_info->param_info,
p_pipe_info->param_length);
- length =(uint8_t)(length + i + p_pipe_info->param_length);
+ length =(uint16_t)(length + i + p_pipe_info->param_length);
break;
}
case NXP_WR_PRESCHECK:
@@ -2358,7 +2358,7 @@ phHciNfc_ReaderMgmt_Release(
phHciNfc_Append_HCPFrame((uint8_t *)hcp_message->payload,
i, p_pipe_info->param_info,
p_pipe_info->param_length);
- length =(uint8_t)(length + i + p_pipe_info->param_length);
+ length =(uint16_t)(length + i + p_pipe_info->param_length);
break;
}
default: