summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunil Jogi <sunil.jogi@nxp.com>2012-01-30 11:15:18 -0800
committerMartijn Coenen <maco@google.com>2012-01-30 12:53:21 -0800
commit00485a32cdb11d9773d9800aa374f16560a9d41e (patch)
tree0ff8c992a6e3ba3df81f12bf0d3b9e73f9b9d18a
parent2ee71571ead17d435e9d9e8be300edd5d45333b7 (diff)
downloadexternal_libnfc-nxp-00485a32cdb11d9773d9800aa374f16560a9d41e.zip
external_libnfc-nxp-00485a32cdb11d9773d9800aa374f16560a9d41e.tar.gz
external_libnfc-nxp-00485a32cdb11d9773d9800aa374f16560a9d41e.tar.bz2
Fixed rejected receive request in LLCP
If phLibNfc_Llcp_Recv() is called in the callback of a previous phLibNfc_Llcp_Recv(), it could be rejected due to the bSocketRecvPending flag which was not properly reset. Change-Id: I6c41469480b50bb7adc9a721ec96f715e5d56a60
-rw-r--r--src/phFriNfc_LlcpTransport_Connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phFriNfc_LlcpTransport_Connection.c b/src/phFriNfc_LlcpTransport_Connection.c
index c3b92f3..346558c 100644
--- a/src/phFriNfc_LlcpTransport_Connection.c
+++ b/src/phFriNfc_LlcpTransport_Connection.c
@@ -1026,7 +1026,7 @@ static void Handle_Receive_IFrame(phFriNfc_LlcpTransport_t *psTransport,
if(psLocalLlcpSocket->bSocketRecvPending == TRUE && (psLocalLlcpSocket->indexRwWrite == psLocalLlcpSocket->indexRwRead))
{
/* Reset Flag */
- psTransport->pSocketTable[psTransport->socketIndex].bSocketRecvPending = FALSE;
+ psLocalLlcpSocket->bSocketRecvPending = FALSE;
/* Save I_FRAME into the Receive Buffer */
memcpy(psLocalLlcpSocket->sSocketRecvBuffer->buffer,psData->buffer,psData->length);