diff options
author | Suhas Suresh <suhas.suresh_1@nxp.com> | 2017-10-05 15:37:36 +0530 |
---|---|---|
committer | nxpandroid <srikrishna.pramoda@nxp.com> | 2017-10-16 15:14:21 +0530 |
commit | 153daa8fd095dd8d90508e9a3c6159d1882d6c1d (patch) | |
tree | 1f9cb692c24dcf605493a6687411a0c96cbf5216 | |
parent | b7194d6863d714078d65ccd9d14dc66d28bbe926 (diff) | |
download | android_vendor_nxp_opensource_packages_apps_Nfc-153daa8fd095dd8d90508e9a3c6159d1882d6c1d.tar.gz android_vendor_nxp_opensource_packages_apps_Nfc-153daa8fd095dd8d90508e9a3c6159d1882d6c1d.tar.bz2 android_vendor_nxp_opensource_packages_apps_Nfc-153daa8fd095dd8d90508e9a3c6159d1882d6c1d.zip |
Fix for GetNumNFCEEConfigured function failure.
If dynamic dual UICC feature is not available(66T/67T) configurations
are being done for dynamic dual UICC. This causes wrong value update
for available EEs in JNI.
Fix : Send configurations only if dynamic dual UICC feature is available
-rw-r--r-- | nci/jni/NativeNxpFeature.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nci/jni/NativeNxpFeature.cpp b/nci/jni/NativeNxpFeature.cpp index 35d19ecb..a80de316 100644 --- a/nci/jni/NativeNxpFeature.cpp +++ b/nci/jni/NativeNxpFeature.cpp @@ -678,11 +678,13 @@ tNFA_STATUS GetNumNFCEEConfigured(void) uint8_t num_config_params = 0x02; uint8_t config_param_len = 0x05; uint8_t buf_offset = 0x08; + if(nfcFL.nfccFL._NFCC_DYNAMIC_DUAL_UICC) { cmd_buf[buf_offset++] = NXP_NFC_SET_CONFIG_PARAM_EXT; cmd_buf[buf_offset++] = NXP_NFC_PARAM_ID_SWP1A; cmd_buf_len += 0x02; num_config_params++; config_param_len += 0x02; +} cmd_buf[2] = config_param_len; cmd_buf[3] = num_config_params; |