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

Commit bf1bf92c 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

parents 6e0c112e a21f10ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3681,7 +3681,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