summaryrefslogtreecommitdiffstats
path: root/src/phFriNfc_LlcpTransport_Connection.c
diff options
context:
space:
mode:
authorJeff Hamilton <jham@android.com>2010-11-01 15:01:42 -0500
committerJeff Hamilton <jham@android.com>2010-11-02 09:41:02 -0500
commite1c9fcfb918da43ab24f95c9341da3b6bf3b1250 (patch)
tree519e769073e83664c870ce667ddda5bfb6a3e81c /src/phFriNfc_LlcpTransport_Connection.c
parent60e93acea2364ec4109a7cf9bac6e0e45b9912e5 (diff)
downloadexternal_libnfc-nxp-e1c9fcfb918da43ab24f95c9341da3b6bf3b1250.zip
external_libnfc-nxp-e1c9fcfb918da43ab24f95c9341da3b6bf3b1250.tar.gz
external_libnfc-nxp-e1c9fcfb918da43ab24f95c9341da3b6bf3b1250.tar.bz2
Fix the parameters to phFriNfc_Llcp_EncodeMIUX.
Change-Id: Ia0426198d0edd325edcc2bb5a3c6d7d623e28a9f
Diffstat (limited to 'src/phFriNfc_LlcpTransport_Connection.c')
-rw-r--r--src/phFriNfc_LlcpTransport_Connection.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/phFriNfc_LlcpTransport_Connection.c b/src/phFriNfc_LlcpTransport_Connection.c
index 2db1192..7475b42 100644
--- a/src/phFriNfc_LlcpTransport_Connection.c
+++ b/src/phFriNfc_LlcpTransport_Connection.c
@@ -1973,7 +1973,7 @@ NFCSTATUS phFriNfc_LlcpTransport_ConnectionOriented_Accept(phFriNfc_LlcpTranspor
NFCSTATUS status = NFCSTATUS_SUCCESS;
uint32_t offset = 0;
- uint16_t miux;
+ uint8_t miux[2];
uint8_t i;
/* Store the options in the socket */
@@ -2023,15 +2023,15 @@ NFCSTATUS phFriNfc_LlcpTransport_ConnectionOriented_Accept(phFriNfc_LlcpTranspor
if(pLlcpSocket->localMIUX != PHFRINFC_LLCP_MIUX_DEFAULT)
{
/* Encode MIUX value */
- phFriNfc_Llcp_EncodeMIUX(&pLlcpSocket->localMIUX,
- &miux);
+ phFriNfc_Llcp_EncodeMIUX(pLlcpSocket->localMIUX,
+ miux);
/* Encode MIUX in TLV format */
status = phFriNfc_Llcp_EncodeTLV(&pLlcpSocket->sSocketSendBuffer,
&offset,
PHFRINFC_LLCP_TLV_TYPE_MIUX,
PHFRINFC_LLCP_TLV_LENGTH_MIUX,
- (uint8_t*)&miux);
+ miux);
if(status != NFCSTATUS_SUCCESS)
{
/* Call the CB */
@@ -2178,7 +2178,7 @@ NFCSTATUS phFriNfc_LlcpTransport_ConnectionOriented_Connect( phFriNfc_LlcpTransp
NFCSTATUS status = NFCSTATUS_SUCCESS;
uint32_t offset = 0;
- uint16_t miux = 0;
+ uint8_t miux[2];
/* Test if a nSap is present */
if(nSap != PHFRINFC_LLCP_SAP_DEFAULT)
@@ -2205,15 +2205,15 @@ NFCSTATUS phFriNfc_LlcpTransport_ConnectionOriented_Connect( phFriNfc_LlcpTransp
if(pLlcpSocket->localMIUX != PHFRINFC_LLCP_MIUX_DEFAULT)
{
/* Encode MIUX value */
- phFriNfc_Llcp_EncodeMIUX(&pLlcpSocket->localMIUX,
- &miux);
+ phFriNfc_Llcp_EncodeMIUX(pLlcpSocket->localMIUX,
+ miux);
/* Encode MIUX in TLV format */
status = phFriNfc_Llcp_EncodeTLV(&pLlcpSocket->sSocketSendBuffer,
&offset,
PHFRINFC_LLCP_TLV_TYPE_MIUX,
PHFRINFC_LLCP_TLV_LENGTH_MIUX,
- (uint8_t*)&miux);
+ miux);
if(status != NFCSTATUS_SUCCESS)
{
return status = PHNFCSTVAL(CID_FRI_NFC_LLCP_TRANSPORT, NFCSTATUS_FAILED);