summaryrefslogtreecommitdiffstats
path: root/src/phFriNfc_LlcpTransport_Connection.c
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-01-27 12:13:06 -0800
committerMartijn Coenen <maco@google.com>2012-01-27 12:21:54 -0800
commitd25018da04378bf0529f82ed03d9e25390216b0b (patch)
tree7bd1433e8753b04e8aa80899431de42a21b34dca /src/phFriNfc_LlcpTransport_Connection.c
parent32060a1ad89a5791039bf4a7e89db6cbc3e669d0 (diff)
downloadexternal_libnfc-nxp-d25018da04378bf0529f82ed03d9e25390216b0b.zip
external_libnfc-nxp-d25018da04378bf0529f82ed03d9e25390216b0b.tar.gz
external_libnfc-nxp-d25018da04378bf0529f82ed03d9e25390216b0b.tar.bz2
LLCP 1.1: Fix some bugs.
- Clear out send callback if send was not accepted. - Set transport busy status for RR/RNR frames. Change-Id: Idf8986f6b82995644b176247a644e36d2c879ebf
Diffstat (limited to 'src/phFriNfc_LlcpTransport_Connection.c')
-rw-r--r--src/phFriNfc_LlcpTransport_Connection.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/phFriNfc_LlcpTransport_Connection.c b/src/phFriNfc_LlcpTransport_Connection.c
index a11945f..a40c505 100644
--- a/src/phFriNfc_LlcpTransport_Connection.c
+++ b/src/phFriNfc_LlcpTransport_Connection.c
@@ -316,6 +316,9 @@ static NFCSTATUS phFriNfc_Llcp_Send_ReceiveReady_Frame(phFriNfc_LlcpTransport_So
}
else
{
+ /* Set transport to pending */
+ pLlcpSocket->psTransport->bSendPending = TRUE;
+
/* Set the header of the RR frame */
pLlcpSocket->sLlcpHeader.dsap = pLlcpSocket->socket_dSap;
pLlcpSocket->sLlcpHeader.ptype = PHFRINFC_LLCP_PTYPE_RR;
@@ -356,6 +359,9 @@ static NFCSTATUS phFriNfc_Llcp_Send_ReceiveNotReady_Frame(phFriNfc_LlcpTransport
}
else
{
+ /* Set transport to pending */
+ pLlcpSocket->psTransport->bSendPending = TRUE;
+
/* Set the header of the RNR frame */
pLlcpSocket->sLlcpHeader.dsap = pLlcpSocket->socket_dSap;
pLlcpSocket->sLlcpHeader.ptype = PHFRINFC_LLCP_PTYPE_RNR;