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

Commit a21f10ff authored by Bidhya Sharma's avatar Bidhya Sharma Committed by Gerrit Code Review
Browse files

Merge "Delete keys if SMP over BR fails"

parents fd3f55b5 a800f32f
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