+24
−5
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Currently there is a race condition happening for LE only devices: If pairing is cancelled, and immediately restarted before link is disconnected, we would delete it's keys on first disconnection. This is because we miss a call to bta_dm_reset_sec_dev_pending. BTA_DM_AUTH_CMPL_EVT event is generated when Classic device finish pairing and have key for storage. BTM_LE_KEY_EVT event is generated when LE device have some key for storage. In both cases, we should make a call to bta_dm_reset_sec_dev_pending, currently we make this call only for Classic device. Test: Fast Pair would some times cause this race condition, no good steps for manual reproduction Bug: 286968340 Change-Id: I962d3bb8d5c45d9dc2c8780a4f42eb57edda7898