summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSylvain Fonteneau <sylvain.fonteneau@trusted-logic.com>2010-10-25 20:28:53 +0200
committerNick Pelly <npelly@google.com>2010-10-26 11:18:52 -0700
commit4c03147f9df22103145e67ce1d7faece051e0bfb (patch)
treeb24b3549cee09b26e45071428ec427809c762472 /inc
parent28c491132f4f6bb38199e7f6e4121c3e71afe1f3 (diff)
downloadexternal_libnfc-nxp-4c03147f9df22103145e67ce1d7faece051e0bfb.zip
external_libnfc-nxp-4c03147f9df22103145e67ce1d7faece051e0bfb.tar.gz
external_libnfc-nxp-4c03147f9df22103145e67ce1d7faece051e0bfb.tar.bz2
Disable P2P target 106 kbit/s mode.
NFC_IP mode controls the P2P modes that the PN544 operates in. This change turns off 106kb/s passive (P2P target mode). The reason for this change is that enabling P2P target at 106 kb/s can interfere with card emulation. Some 106kb/s card readers will enumerate the pn544 as two distinct targets if we have 106kb/s card emulation and 106kb/s P2P target, and they will then refuse to talk to us. So this is basically for legacy support of 106kb/s card emulation. NXP advise that it is a common change to disable 106kb/s P2P target. We still enable 212kb/s and 424kb/s P2P target. Secondly, we need to choose a different session ID to force the pn544 to apply this new configuration (instead of just loading the previous from EEPROM). Change-Id: I2847c04bb028b857223439dc1f9f6252162913c4 Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'inc')
-rw-r--r--inc/phNfcConfig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/phNfcConfig.h b/inc/phNfcConfig.h
index fd7b8a8..9f6d51f 100644
--- a/inc/phNfcConfig.h
+++ b/inc/phNfcConfig.h
@@ -141,7 +141,7 @@
/**< Default Session ID for Initialisation */
#ifndef DEFAULT_SESSION
-#define DEFAULT_SESSION "NXP-NFCx"
+#define DEFAULT_SESSION "NXP-NFC1"
#endif
@@ -323,7 +323,7 @@
/**< Macro to Enable the Peer to Peer Feature */
#define ENABLE_P2P
-#define DEFAULT_NFCIP_MODE_SUPPORT 0x0FU
+#define DEFAULT_NFCIP_MODE_SUPPORT 0x0EU
/**< Macro to Enable the ISO14443-B Feature */