diff options
author | Martijn Coenen <maco@google.com> | 2012-08-07 13:05:31 -0700 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-08-07 18:02:45 -0700 |
commit | 8d6ea79dad7c25f592722faf47709e1b918d4c21 (patch) | |
tree | 56fad763d538efc8608d969a4a0649b4c0aa98ba /nxp | |
parent | 2d57efb70a92553623370786bfede151603d3305 (diff) | |
download | packages_apps_nfc-8d6ea79dad7c25f592722faf47709e1b918d4c21.zip packages_apps_nfc-8d6ea79dad7c25f592722faf47709e1b918d4c21.tar.gz packages_apps_nfc-8d6ea79dad7c25f592722faf47709e1b918d4c21.tar.bz2 |
Allow different default MIU / window sizes.
The new NCI stack can deal with larger MIU and
rw sizes, which give us better p2p throughput.
Change-Id: I6600f28ddafe142b64ead2df896823bb8d242fc5
Diffstat (limited to 'nxp')
-rwxr-xr-x | nxp/src/com/android/nfc/dhimpl/NativeNfcManager.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nxp/src/com/android/nfc/dhimpl/NativeNfcManager.java b/nxp/src/com/android/nfc/dhimpl/NativeNfcManager.java index 14544d2..903cafa 100755 --- a/nxp/src/com/android/nfc/dhimpl/NativeNfcManager.java +++ b/nxp/src/com/android/nfc/dhimpl/NativeNfcManager.java @@ -43,6 +43,9 @@ public class NativeNfcManager implements DeviceHost { private static final String PREF_FIRMWARE_MODTIME = "firmware_modtime"; private static final long FIRMWARE_MODTIME_DEFAULT = -1; + static final int DEFAULT_LLCP_MIU = 128; + static final int DEFAULT_LLCP_RWSIZE = 1; + //TODO: dont hardcode this private static final byte[][] EE_WIPE_APDUS = { {(byte)0x00, (byte)0xa4, (byte)0x04, (byte)0x00, (byte)0x00}, @@ -319,19 +322,32 @@ public class NativeNfcManager implements DeviceHost { doSetP2pTargetModes(modes); } + @Override public boolean getExtendedLengthApdusSupported() { // Not supported on the PN544 return false; } + @Override public boolean enablePN544Quirks() { return true; } + @Override public byte[][] getWipeApdus() { return EE_WIPE_APDUS; } + @Override + public int getDefaultLlcpMiu() { + return DEFAULT_LLCP_MIU; + } + + @Override + public int getDefaultLlcpRwSize() { + return DEFAULT_LLCP_RWSIZE; + } + private native String doDump(); @Override public String dump() { @@ -392,4 +408,5 @@ public class NativeNfcManager implements DeviceHost { private void notifySeMifareAccess(byte[] block) { mListener.onSeMifareAccess(block); } + } |