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

Commit f9dbfb6a authored by Matadeen Mishra's avatar Matadeen Mishra Committed by Andre Eisenbach
Browse files

Handling Authentication Failure From the lower layer

Use case: DUT unable to do connect with all devices in
Multipairing case.

Steps:
1. pair with HS
2. disconnect HS.
3. reconnect HS from DUT.

Failure: Authentication failure occurred due to LMP
transaction collision DUT not deleting link key which
lead to unable to connect to device.

Root Cause: Not posting the Authentication failure
event to application layer, while removing the link-key.

Fix: Post the Authentication failure event to application
and removing the link-key.

Test: code compilation.

Change-Id: I079d8ce89c1fea66f0624127514cec8405bfdd3d
parent 828ff867
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4054,7 +4054,7 @@ void btm_sec_auth_complete (uint16_t handle, uint8_t status)
    if (btm_cb.api.p_auth_complete_callback)
    {
        /* report the suthentication status */
        if (old_state != BTM_PAIR_STATE_IDLE)
        if ((old_state != BTM_PAIR_STATE_IDLE) || (status != HCI_SUCCESS))
            (*btm_cb.api.p_auth_complete_callback) (p_dev_rec->bd_addr,
                                                    p_dev_rec->dev_class,
                                                    p_dev_rec->sec_bd_name, status);