summaryrefslogtreecommitdiffstats
path: root/src/phFriNfc_LlcpUtils.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_LlcpUtils.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_LlcpUtils.c')
-rw-r--r--src/phFriNfc_LlcpUtils.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/phFriNfc_LlcpUtils.c b/src/phFriNfc_LlcpUtils.c
index 3927552..872fd51 100644
--- a/src/phFriNfc_LlcpUtils.c
+++ b/src/phFriNfc_LlcpUtils.c
@@ -127,20 +127,14 @@ NFCSTATUS phFriNfc_Llcp_EncodeTLV( phNfc_sData_t *psValueBuffer,
}
/* TODO: comment function EncodeMIUX */
-void phFriNfc_Llcp_EncodeMIUX(uint16_t* pMiux,
- uint16_t* pMiuxEncoded)
+void phFriNfc_Llcp_EncodeMIUX(uint16_t miux,
+ uint8_t* pMiuxEncoded)
{
- uint16_t miux = *pMiux;
- uint8_t encodeBuffer[2];
-
/* MASK */
miux = miux & PHFRINFC_LLCP_TLV_MIUX_MASK;
- encodeBuffer[0] = miux >> 8;
- encodeBuffer[1] = (uint8_t)miux;
-
- /* Set the new value of MIUX */
- *pMiuxEncoded =(encodeBuffer[0]) + (encodeBuffer[1] *16*16);
+ pMiuxEncoded[0] = miux >> 8;
+ pMiuxEncoded[1] = miux & 0xff;
}
/* TODO: comment function EncodeRW */