summaryrefslogtreecommitdiffstats
path: root/src/phHal4Nfc_Reader.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_Reader.c
parentee2202f7fabc87e3d2749a90e1be4b12ea960dce (diff)
downloadexternal_libnfc-nxp-b5419c7dd2b703f796dc10480a5a73c907f41e14.zip
external_libnfc-nxp-b5419c7dd2b703f796dc10480a5a73c907f41e14.tar.gz
external_libnfc-nxp-b5419c7dd2b703f796dc10480a5a73c907f41e14.tar.bz2
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_Reader.c')
-rw-r--r--src/phHal4Nfc_Reader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phHal4Nfc_Reader.c b/src/phHal4Nfc_Reader.c
index 70f9461..e7a32f4 100644
--- a/src/phHal4Nfc_Reader.c
+++ b/src/phHal4Nfc_Reader.c
@@ -783,7 +783,7 @@ NFCSTATUS phHal4Nfc_Disconnect(
else
{
/*Register upper layer context*/
- Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = pContext;
+ Hal4Ctxt->sUpperLayerInfo.psUpperLayerDisconnectCtxt = pContext;
/*Register upper layer callback*/
Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb = pDscntCallback;
/*Register Release Type*/
@@ -1179,7 +1179,7 @@ void phHal4Nfc_DisconnectComplete(
{
PHDBG_INFO("Hal4:Calling Upper layer disconnect callback");
(*pUpperDisconnectCb)(
- Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt,
+ Hal4Ctxt->sUpperLayerInfo.psUpperLayerDisconnectCtxt,
psConnectedDevice,
ConnectStatus
);