Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f416629 authored by Srinu Jella's avatar Srinu Jella Committed by Andre Eisenbach
Browse files

Handle pairing timeout during remote name request

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
parent 8cc6fe4e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)