OSDN Git Service

Handle pairing timeout during remote name request
authorSrinu Jella <sjella@codeaurora.org>
Wed, 8 Oct 2014 11:06:43 +0000 (16:36 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 28 May 2015 19:06:43 +0000 (12:06 -0700)
If a remote name request is in progress and a pairing timeout is
triggered, the host needs to post the bond failure to the UI and
needs to reset the pairing cb state, otherwise the UI will be stuck
in pairing mode and scanning won't work until Bluetooth is cycled
OFF->ON.

Change-Id: I76d9a83b1db7236db51617da998b5857b0de39f0

stack/btm/btm_sec.c

index db2d300..0b5efc9 100644 (file)
@@ -5054,6 +5054,7 @@ static void btm_sec_pairing_timeout (TIMER_LIST_ENT *p_tle)
             break;
 
         case BTM_PAIR_STATE_WAIT_AUTH_COMPLETE:
+        case BTM_PAIR_STATE_GET_REM_NAME:
             /* We need to notify the UI that timeout has happened while waiting for authentication*/
             btm_sec_change_pairing_state (BTM_PAIR_STATE_IDLE);
             if (btm_cb.api.p_auth_complete_callback)