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

Commit 2ae4ce5f authored by Zhihai Xu's avatar Zhihai Xu Committed by Android (Google) Code Review
Browse files

Merge "Duplicate pair request are generated in BLE SMP."

parents 40505e78 5120f9b9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -204,6 +204,9 @@ void SMP_SecurityGrant(BD_ADDR bd_addr, UINT8 res)
        memcmp (smp_cb.pairing_bda, bd_addr, BD_ADDR_LEN))
        return;

    /* clear the SMP_SEC_REQUEST_EVT event after get grant */
    /* avoid generate duplicate pair request */
    smp_cb.cb_evt = 0;
    smp_sm_event(&smp_cb, SMP_API_SEC_GRANT_EVT, &res);
}