OSDN Git Service

Pairing failed after 50 attempts
authorMudumba Ananth <ananthm@broadcom.com>
Tue, 29 Jul 2014 13:19:43 +0000 (06:19 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 9 Sep 2014 18:26:11 +0000 (11:26 -0700)
commit11b41d8123241ba8e693e21c4db308bacff23f57
treeb9e28b5ba8980e52ff1e112a4cc8a602260e9263
parent5ca43226937e098a2404d61de3f991af5c6a2689
Pairing failed after 50 attempts

-> The issue was caused due to delayed message sent for
   bond_state_changed_callback in BondStateMachine and RemoteDevices
   was sending the pairing request(sspRequestcallback) intent to the Settings APP
   before even the bond state is changed.
-> Moved the SSPRequestCallback and PinRequestCallback to BondStateMachine
   to synchronize the above two callbacks using a single message
   queue in the BondStateMachine message handler.
-> Changed the pending command state to accept the SSP_REQUEST
   and PIN_REQUEST messages and send the intents.

Bug: 16560957
Change-Id: I8372bdd2e96aa09215f2f1e98d6eed4e892637e6
src/com/android/bluetooth/btservice/BondStateMachine.java
src/com/android/bluetooth/btservice/JniCallbacks.java
src/com/android/bluetooth/btservice/RemoteDevices.java