Fix for NFC on/off issue in RF proximity FIX: rf_filed_event_timeout timer is stopped on NFC disable. ISSUE: This timer is getting expired at nfc deinit and causing NFA_Disable api to stuck.
diff --git a/src/nfc/nfc/nfc_task.c b/src/nfc/nfc/nfc_task.c
index beb9b08..e445bc8 100644
--- a/src/nfc/nfc/nfc_task.c
+++ b/src/nfc/nfc/nfc_task.c
@@ -360,6 +360,12 @@
void nfc_task_shutdown_nfcc(void) {
NFC_HDR* p_msg;
+#if (NXP_EXTNS == TRUE)
+ if(nfcFL.eseFL._ESE_DUAL_MODE_PRIO_SCHEME == nfcFL.eseFL._ESE_WIRED_MODE_RESUME) {
+ nfc_stop_timer(&nfc_cb.rf_filed_event_timeout_timer);
+ }
+#endif
+
/* Free any messages still in the mbox */
while ((p_msg = (NFC_HDR*)GKI_read_mbox(NFC_MBOX_ID)) != NULL) {
GKI_freebuf(p_msg);