diff options
author | Daniel Tomas <dtomas.nxp@gmail.com> | 2011-06-30 07:55:11 +0200 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-07-19 22:13:15 -0700 |
commit | 7aedb9c2ae08b424c58628261befa97bdf0052e1 (patch) | |
tree | 838829df220f02419372b1bc495e834168d65c90 /jni | |
parent | b3d770c4ff05992f81f2d172e6d2c514443674a5 (diff) | |
download | packages_apps_nfc-7aedb9c2ae08b424c58628261befa97bdf0052e1.zip packages_apps_nfc-7aedb9c2ae08b424c58628261befa97bdf0052e1.tar.gz packages_apps_nfc-7aedb9c2ae08b424c58628261befa97bdf0052e1.tar.bz2 |
Patch to enable the Card Emulation detection mechanism
This patch permit to enable Card Emulation detection mechanism, via an EEPROM setting,
to avoid any card emulation notification when two Nexus S are in front of each other.
Change-Id: I200a2a1b3ce31863a1684cd0968cd0eec008885a
Diffstat (limited to 'jni')
-rw-r--r-- | jni/com_android_nfc_NativeNfcManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jni/com_android_nfc_NativeNfcManager.cpp b/jni/com_android_nfc_NativeNfcManager.cpp index e4544c3..cdbfa82 100644 --- a/jni/com_android_nfc_NativeNfcManager.cpp +++ b/jni/com_android_nfc_NativeNfcManager.cpp @@ -26,7 +26,7 @@ #define ERROR_BUFFER_TOO_SMALL -12 #define ERROR_INSUFFICIENT_RESOURCES -9 -#define EEDATA_SETTINGS_NUMBER 28 +#define EEDATA_SETTINGS_NUMBER 29 static phLibNfc_sConfig_t gDrvCfg; void *gHWRef; @@ -106,6 +106,9 @@ uint8_t EEDATA_Settings[EEDATA_SETTINGS_NUMBER][4] = { // Set NFCT ATQA ,{0x00, 0x98, 0x7D, 0x02} ,{0x00, 0x98, 0x7E, 0x00} + + // Enable CEA detection mechanism + ,{0x00, 0x9F, 0xC8, 0x01} }; /* Internal functions declaration */ |