diff options
author | Sunil Jogi <sunil.jogi@nxp.com> | 2012-02-03 15:22:59 -0800 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-02-06 09:43:39 +0100 |
commit | ce7e8806d59161969589c46abbef8ed1436cea8f (patch) | |
tree | 3e1baed239d2fe736b1176c465b5833e372752c7 /src/phFriNfc_LlcpTransport_Connection.c | |
parent | 177497f518ad2bbb8fe6cab5cf55415244b86565 (diff) | |
download | external_libnfc-nxp-ce7e8806d59161969589c46abbef8ed1436cea8f.zip external_libnfc-nxp-ce7e8806d59161969589c46abbef8ed1436cea8f.tar.gz external_libnfc-nxp-ce7e8806d59161969589c46abbef8ed1436cea8f.tar.bz2 |
Fixed FRMR sending on invalid LLCP frame received
DSAP and SSAP were switched on with the other at multiple location
in the code. This patch fix those.
Change-Id: Iea8e499049a2cd4a234155a3044b875eb9c6ca7a
Diffstat (limited to 'src/phFriNfc_LlcpTransport_Connection.c')
-rw-r--r-- | src/phFriNfc_LlcpTransport_Connection.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/phFriNfc_LlcpTransport_Connection.c b/src/phFriNfc_LlcpTransport_Connection.c index 346558c..63e2ff5 100644 --- a/src/phFriNfc_LlcpTransport_Connection.c +++ b/src/phFriNfc_LlcpTransport_Connection.c @@ -491,9 +491,9 @@ static void Handle_ConnectionFrame(phFriNfc_LlcpTransport_t *psTransport, /* Incorrect TLV */ /* send FRMR */ status = phFriNfc_LlcpTransport_SendFrameReject(psTransport, - ssap, - PHFRINFC_LLCP_PTYPE_CONNECT, dsap, + PHFRINFC_LLCP_PTYPE_CONNECT, + ssap, 0x00, 0x00, 0x00, @@ -661,9 +661,9 @@ static void Handle_ConnectionCompleteFrame(phFriNfc_LlcpTransport_t *psTran /* Incorrect TLV */ /* send FRMR */ status = phFriNfc_LlcpTransport_SendFrameReject(psTransport, - ssap, - PHFRINFC_LLCP_PTYPE_CC, dsap, + PHFRINFC_LLCP_PTYPE_CC, + ssap, 0x00, 0x00, 0x00, @@ -820,9 +820,9 @@ static void Handle_DisconnetModeFrame(phFriNfc_LlcpTransport_t *psTransport { /* send FRMR */ status = phFriNfc_LlcpTransport_SendFrameReject(psTransport, - ssap, - PHFRINFC_LLCP_PTYPE_DM, dsap, + PHFRINFC_LLCP_PTYPE_DM, + ssap, 0x00, 0x00, 0x00, @@ -1000,9 +1000,9 @@ static void Handle_Receive_IFrame(phFriNfc_LlcpTransport_t *psTransport, { /* Send FRMR */ status = phFriNfc_LlcpTransport_SendFrameReject(psTransport, - ssap, - PHFRINFC_LLCP_PTYPE_I, dsap, + PHFRINFC_LLCP_PTYPE_I, + ssap, &sLlcpLocalSequence, WFlag, IFlag, @@ -1227,7 +1227,7 @@ static void Handle_ReceiveReady_Frame(phFriNfc_LlcpTransport_t *psTransport { /* Send FRMR */ status = phFriNfc_LlcpTransport_SendFrameReject(psTransport, - ssap, PHFRINFC_LLCP_PTYPE_RR, dsap, + dsap, PHFRINFC_LLCP_PTYPE_RR, ssap, &sLlcpLocalSequence, WFlag, IFlag, RFlag, SFlag, psLocalLlcpSocket->socket_VS, @@ -1342,7 +1342,7 @@ static void Handle_ReceiveNotReady_Frame(phFriNfc_LlcpTransport_t *psTransp { /* Send FRMR */ status = phFriNfc_LlcpTransport_SendFrameReject(psTransport, - ssap, PHFRINFC_LLCP_PTYPE_RNR, dsap, + dsap, PHFRINFC_LLCP_PTYPE_RNR, ssap, &sLlcpLocalSequence, bWFlag, bIFlag, bRFlag, bSFlag, psLocalLlcpSocket->socket_VS, |