diff options
author | Evan Chu <evanchu@broadcom.com> | 2012-10-15 16:39:47 -0400 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-10-16 10:27:33 -0700 |
commit | a15b24e9e405b65b7523d8c80173b1c0d71e093e (patch) | |
tree | ee0d74436f689a310ea88bcd7b688bed656e4a9c /nci | |
parent | a949c74321b17f8ef1c93692064969f60815c7e4 (diff) | |
download | packages_apps_nfc-a15b24e9e405b65b7523d8c80173b1c0d71e093e.zip packages_apps_nfc-a15b24e9e405b65b7523d8c80173b1c0d71e093e.tar.gz packages_apps_nfc-a15b24e9e405b65b7523d8c80173b1c0d71e093e.tar.bz2 |
Check for invalid handle before configuring secure element.
If handle is invalid, don't adjust secure element's listening
parameter. This prevents a warning message from stack.
Use LLCP_MAX_MIU to prevent a warning message from stack.
Bug: 7357666
Change-Id: I79af30f7d3db1d597b46d8cf43991c9157359e10
Diffstat (limited to 'nci')
-rw-r--r-- | nci/jni/PeerToPeer.cpp | 2 | ||||
-rwxr-xr-x | nci/jni/SecureElement.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/nci/jni/PeerToPeer.cpp b/nci/jni/PeerToPeer.cpp index 13b5a60..7994e2a 100644 --- a/nci/jni/PeerToPeer.cpp +++ b/nci/jni/PeerToPeer.cpp @@ -1590,7 +1590,7 @@ bool P2pServer::registerWithStack() - Data link connection timeout (LLCP_DATA_LINK_CONNECTION_TOUT) - Delay timeout to send first PDU as initiator (LLCP_DELAY_TIME_TO_SEND_FIRST_PDU) ************************/ - stat = NFA_P2pSetLLCPConfig (LLCP_MIU, + stat = NFA_P2pSetLLCPConfig (LLCP_MAX_MIU, LLCP_OPT_VALUE, LLCP_WAITING_TIME, LLCP_LTO_VALUE, diff --git a/nci/jni/SecureElement.cpp b/nci/jni/SecureElement.cpp index f6b2721..6c52030 100755 --- a/nci/jni/SecureElement.cpp +++ b/nci/jni/SecureElement.cpp @@ -2129,6 +2129,7 @@ bool SecureElement::routeToDefault () tNFA_STATUS nfaStat = NFA_STATUS_FAILED; bool retval = false; + ALOGD ("%s: enter", fn); if (! mIsInit) { ALOGE ("%s: not init", fn); @@ -2141,6 +2142,7 @@ bool SecureElement::routeToDefault () return true; } + if (mActiveEeHandle != NFA_HANDLE_INVALID) { ALOGD ("%s: stop UICC listen; EE h=0x%X", fn, mActiveEeHandle); SyncEventGuard guard (mUiccListenEvent); @@ -2153,6 +2155,8 @@ bool SecureElement::routeToDefault () else ALOGE ("%s: fail to stop UICC listen", fn); } + else + retval = true; adjustRoutes (DefaultRoute); |