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