summaryrefslogtreecommitdiff
path: root/src/phHal4Nfc_P2P.c
diff options
context:
space:
mode:
authorSylvain Fonteneau <sylvain.fonteneau@trusted-logic.com>2010-11-03 11:11:22 -0500
committerNick Pelly <npelly@google.com>2010-11-03 13:04:52 -0500
commitb5419c7dd2b703f796dc10480a5a73c907f41e14 (patch)
tree43f39b54f29c5efae41769b5bb0d67e2cdf194da /src/phHal4Nfc_P2P.c
parentee2202f7fabc87e3d2749a90e1be4b12ea960dce (diff)
downloadlibnfc-nxp-b5419c7dd2b703f796dc10480a5a73c907f41e14.tar.gz
Fixed HAL context issue.
When disconnecting while an internal transceive was ongoing, the HAL context was corrupted. This has been fixed by adding a dedicated context for the disconnect operation. Change-Id: I279474f29164b3ab7d40cdd0e9b8f71f842774b0
Diffstat (limited to 'src/phHal4Nfc_P2P.c')
-rw-r--r--src/phHal4Nfc_P2P.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phHal4Nfc_P2P.c b/src/phHal4Nfc_P2P.c
index 2397812..47a64de 100644
--- a/src/phHal4Nfc_P2P.c
+++ b/src/phHal4Nfc_P2P.c
@@ -368,7 +368,7 @@ void phHal4Nfc_SendCompleteHandler(phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt,void *pInfo)
Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb;
Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb = NULL;
(*pUpperDisconnectCb)(
- Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt,
+ Hal4Ctxt->sUpperLayerInfo.psUpperLayerDisconnectCtxt,
Hal4Ctxt->sTgtConnectInfo.psConnectedDevice,
SendStatus
);/*Notify disconnect failed to upper layer*/