summaryrefslogtreecommitdiffstats
path: root/src/phFriNfc_LlcpTransport.c
diff options
context:
space:
mode:
authorSunil Jogi <sunil.jogi@nxp.com>2012-02-03 15:22:59 -0800
committerMartijn Coenen <maco@google.com>2012-02-06 09:43:39 +0100
commitce7e8806d59161969589c46abbef8ed1436cea8f (patch)
tree3e1baed239d2fe736b1176c465b5833e372752c7 /src/phFriNfc_LlcpTransport.c
parent177497f518ad2bbb8fe6cab5cf55415244b86565 (diff)
downloadexternal_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.c')
-rw-r--r--src/phFriNfc_LlcpTransport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phFriNfc_LlcpTransport.c b/src/phFriNfc_LlcpTransport.c
index 61284bd..870aeb4 100644
--- a/src/phFriNfc_LlcpTransport.c
+++ b/src/phFriNfc_LlcpTransport.c
@@ -868,9 +868,9 @@ NFCSTATUS phFriNfc_LlcpTransport_SendFrameReject(phFriNfc_LlcpTransport_t
status = phFriNfc_LlcpTransport_ConnectionOriented_Close(&psTransport->pSocketTable[index]);
/* Set FRMR Header */
- psTransport->sLlcpHeader.dsap = dsap;
+ psTransport->sLlcpHeader.dsap = ssap;
psTransport->sLlcpHeader.ptype = PHFRINFC_LLCP_PTYPE_FRMR;
- psTransport->sLlcpHeader.ssap = ssap;
+ psTransport->sLlcpHeader.ssap = dsap;
/* Set FRMR Information Field */
flagValue = (WFlag<<7) | (IFlag<<6) | (RFlag<<5) | (SFlag<<4) | rejectedPTYPE;