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

Skip to content
Commit 5db08f20 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Jakub Pawłowski
Browse files

Reset sec_dev_pending on Pairing retry for LE devices

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
parent 10dd3913
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment