summaryrefslogtreecommitdiffstats
path: root/nxp/src
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-08-07 10:49:21 -0700
committerMartijn Coenen <maco@google.com>2012-08-07 10:49:21 -0700
commitbb65a8d87ee523c92ca1b5f57efe139bab3859fe (patch)
tree13162c1d7f882d206a29684c959ba0ba21addafb /nxp/src
parent618ed5a492c6474d3d5fd11d06febded71b0a7c2 (diff)
downloadpackages_apps_nfc-bb65a8d87ee523c92ca1b5f57efe139bab3859fe.zip
packages_apps_nfc-bb65a8d87ee523c92ca1b5f57efe139bab3859fe.tar.gz
packages_apps_nfc-bb65a8d87ee523c92ca1b5f57efe139bab3859fe.tar.bz2
Allow NfcB connects in NCI stack.
PN544 did not support this - move the code checking for that into dh implementation. Change-Id: I4def57697bc81cf599421f1ffbfa85c0db72c458
Diffstat (limited to 'nxp/src')
-rwxr-xr-xnxp/src/com/android/nfc/dhimpl/NativeNfcTag.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java b/nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java
index eddde94..45a59d2 100755
--- a/nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java
+++ b/nxp/src/com/android/nfc/dhimpl/NativeNfcTag.java
@@ -136,6 +136,10 @@ public class NativeNfcTag implements TagEndpoint {
private native int doConnect(int handle);
public synchronized int connectWithStatus(int technology) {
+ if (technology == TagTechnology.NFC_B) {
+ // Not supported by PN544
+ return -1;
+ }
if (mWatchdog != null) {
mWatchdog.pause();
}