summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Chaisson <pchaisson@broadcom.com>2012-09-07 03:57:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-07 03:57:17 -0700
commit26749e2629882623217394b5b81950a4e04403fa (patch)
tree7816cf41d593a1b74d6009beb5f1dee350e97deb
parentdbc2f8731681f6cd903160f0ddb4ebbc655c20c2 (diff)
parent2bc17929536528973571087813cb9746ea4947a6 (diff)
downloadpackages_apps_nfc-26749e2629882623217394b5b81950a4e04403fa.zip
packages_apps_nfc-26749e2629882623217394b5b81950a4e04403fa.tar.gz
packages_apps_nfc-26749e2629882623217394b5b81950a4e04403fa.tar.bz2
am 2bc17929: Use NFA_DM_DISC_DURATION_POLL from config file.
* commit '2bc17929536528973571087813cb9746ea4947a6': Use NFA_DM_DISC_DURATION_POLL from config file.
-rwxr-xr-xnci/jni/NativeNfcManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp
index 14e9cb9..ca1bb06 100755
--- a/nci/jni/NativeNfcManager.cpp
+++ b/nci/jni/NativeNfcManager.cpp
@@ -741,6 +741,10 @@ static jboolean nfcManager_doInitialize (JNIEnv* e, jobject o)
if (!GetNumValue(NAME_NFA_DM_MULTI_TECH_RESP, &num, sizeof(num)) || (num != 0))
NFA_SetMultiTechRsp(TRUE);
+ // if this value exists, set polling interval.
+ if (GetNumValue(NAME_NFA_DM_DISC_DURATION_POLL, &num, sizeof(num)))
+ NFA_SetRfDiscoveryDuration(num);
+
// Do custom NFCA startup configuration.
doStartupConfig();
goto TheEnd;