summaryrefslogtreecommitdiffstats
path: root/Linux_x86
diff options
context:
space:
mode:
authorSunil Jogi <sunil.jogi@nxp.com>2012-04-10 11:37:25 -0700
committerMartijn Coenen <maco@google.com>2012-04-13 16:31:21 -0700
commit8206325bc6b3a60aed3c5cce157369ec2989437a (patch)
treed682013871a597470f037c1f1de8db82f5118f5b /Linux_x86
parentc3a87316a08d782d8b336d2d9663b47a4ec37d21 (diff)
downloadexternal_libnfc-nxp-8206325bc6b3a60aed3c5cce157369ec2989437a.zip
external_libnfc-nxp-8206325bc6b3a60aed3c5cce157369ec2989437a.tar.gz
external_libnfc-nxp-8206325bc6b3a60aed3c5cce157369ec2989437a.tar.bz2
Added recovery function when SE wired mode selected
Added a recovery function with delay when SE wired mode selected. This function will add extra delay before any abort when SE is in wired mode. This will allow SE to complete any operation and do not power off the SE immediately when wired mode transaction is on going.
Diffstat (limited to 'Linux_x86')
-rw-r--r--Linux_x86/phOsalNfc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Linux_x86/phOsalNfc.c b/Linux_x86/phOsalNfc.c
index 3f4542d..83b4e6e 100644
--- a/Linux_x86/phOsalNfc.c
+++ b/Linux_x86/phOsalNfc.c
@@ -47,6 +47,8 @@ phOsalNfc_Exception_t phOsalNfc_Exception;
char phOsalNfc_DbgTraceBuffer[MAX_PRINT_BUFSIZE];
#endif
+void phLibNfc_Mgt_Recovery();
+
/*!
* \brief Allocates memory.
* This function attempts to allocate \a size bytes on the heap and
@@ -145,6 +147,7 @@ void phOsalNfc_RaiseException(phOsalNfc_ExceptionType_t eExceptionType, uint16_t
if(eExceptionType == phOsalNfc_e_UnrecovFirmwareErr)
{
ALOGE("HCI Timeout - Exception raised");
+ phLibNfc_Mgt_Recovery();
ALOGE("Force restart of NFC Service");
abort();
}