summaryrefslogtreecommitdiff
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
parentec8032f1a91926792c014c862fd78026c2bf7f8f (diff)
downloadlibnfc-nxp-1c7419cf7fd8913852433a02a0f16da8912fae6f.tar.gz
Fix from the Bangalore team for long APDUs
Change-Id: Id251fcd72bcc91a3fd85ac26c15fd609ce9f5e4e
-rw-r--r--src/phHal4Nfc_Reader.c2
-rw-r--r--src/phHciNfc_RFReader.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/phHal4Nfc_Reader.c b/src/phHal4Nfc_Reader.c
index e7a32f4..d74e5e9 100644
--- a/src/phHal4Nfc_Reader.c
+++ b/src/phHal4Nfc_Reader.c
@@ -639,7 +639,7 @@ NFCSTATUS phHal4Nfc_Transceive(
Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.addr
= psTransceiveInfo->addr;
Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
- = (uint8_t)psTransceiveInfo->sSendData.length;
+ = (uint16_t)psTransceiveInfo->sSendData.length;
Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
= psTransceiveInfo->sSendData.buffer;
Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData
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: