NFC service is getting died during SMB activation when eSE busy over SPI interface
1) For mode set command failed with ntf STATUS_FAILED perform EE disocvery and activate all NFCEEs present
2) Report once recovery complete to JNI so that application/MW can retry
3) Provide configuration option for recovery and retry i.e. If recovery is disabled application shall retr
diff --git a/nci/SN100x/jni/NativeSecureElement.cpp b/nci/SN100x/jni/NativeSecureElement.cpp
index 9835ec3..bb5c173 100755
--- a/nci/SN100x/jni/NativeSecureElement.cpp
+++ b/nci/SN100x/jni/NativeSecureElement.cpp
@@ -82,19 +82,17 @@
{
stat = false;
LOG(INFO) << StringPrintf("%s: Mode set ntf STATUS_FAILED", __func__);
-#if 0
- SyncEventGuard guard (se.mEERecoveryComplete);
- {
- se.mEERecoveryComplete.wait();
- LOG(INFO) << StringPrintf("%s: Recovery complete", __func__);
- }
- if(se.mErrorRecovery)
- {
- stat = true;
- }
-#endif
- }
+ SyncEventGuard guard (se.mEERecoveryComplete);
+ {
+ se.mEERecoveryComplete.wait();
+ LOG(INFO) << StringPrintf("%s: Recovery complete", __func__);
+ }
+ if(se.mErrorRecovery)
+ {
+ stat = true;
+ }
+ }
if(stat == true)
{
se.mIsWiredModeOpen = true;