From 00485a32cdb11d9773d9800aa374f16560a9d41e Mon Sep 17 00:00:00 2001 From: Sunil Jogi Date: Mon, 30 Jan 2012 11:15:18 -0800 Subject: 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 --- src/phFriNfc_LlcpTransport_Connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1