summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-08-07 10:55:36 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-07 10:55:36 -0700
commit295c9c2521807b09882c04069343c0ad37ec42ca (patch)
treeb30e5425acee2dab41897cfeb0d7d2e6175e0d16
parent776b24809659122f681b4b6e4e959579817d02c6 (diff)
parent484d6a32e4d35e3e2e408010e12a51dfe0224632 (diff)
downloadpackages_apps_nfc-295c9c2521807b09882c04069343c0ad37ec42ca.zip
packages_apps_nfc-295c9c2521807b09882c04069343c0ad37ec42ca.tar.gz
packages_apps_nfc-295c9c2521807b09882c04069343c0ad37ec42ca.tar.bz2
am 484d6a32: am bb65a8d8: Allow NfcB connects in NCI stack.
* commit '484d6a32e4d35e3e2e408010e12a51dfe0224632': Allow NfcB connects in NCI stack.
-rwxr-xr-xnxp/src/com/android/nfc/dhimpl/NativeNfcTag.java4
-rwxr-xr-xsrc/com/android/nfc/NfcService.java4
2 files changed, 4 insertions, 4 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();
}
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java
index c42bdc0..ab294ea 100755
--- a/src/com/android/nfc/NfcService.java
+++ b/src/com/android/nfc/NfcService.java
@@ -860,10 +860,6 @@ public class NfcService extends Application implements DeviceHostListener {
return ErrorCodes.ERROR_DISCONNECT;
}
- if (technology == TagTechnology.NFC_B) {
- return ErrorCodes.ERROR_NOT_SUPPORTED;
- }
-
// Note that on most tags, all technologies are behind a single
// handle. This means that the connect at the lower levels
// will do nothing, as the tag is already connected to that handle.