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

Commit b7787996 authored by Bidhya Sharma's avatar Bidhya Sharma Committed by Automerger Merge Worker
Browse files

Merge "Delete keys if SMP over BR fails" am: a21f10ff am: bf1bf92c

parents 7de337c2 bf1bf92c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3674,7 +3674,8 @@ static uint8_t bta_dm_ble_smp_cback(tBTM_LE_EVT event, const RawAddress& bda,
                (static_cast<uint8_t>(p_data->complt.reason))));

        if (btm_sec_is_a_bonded_dev(bda) &&
            p_data->complt.reason == SMP_CONN_TOUT) {
            p_data->complt.reason == SMP_CONN_TOUT &&
            !p_data->complt.smp_over_br) {
          // Bonded device failed to encrypt - to test this remove battery from
          // HID device right after connection, but before encryption is
          // established