From e276d3e6ba0cbf77a42fb799c7dcadef778bc8b9 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 5 May 2011 14:58:26 +0000 Subject: [PATCH] nfc_target_init: drop explicitely the field --- libnfc/nfc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libnfc/nfc.c b/libnfc/nfc.c index cc519eb..700e993 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -615,6 +615,9 @@ nfc_target_init (nfc_device_t * pnd, nfc_target_t * pnt, byte_t * pbtRx, size_t // Deactivate the CRYPTO1 cipher, it may could cause problems when still active if (!nfc_configure (pnd, NDO_ACTIVATE_CRYPTO1, false)) return false; + // Drop explicitely the field + if (!nfc_configure (pnd, NDO_ACTIVATE_FIELD, false)) + return false; HAL (target_init, pnd, pnt, pbtRx, pszRx); }