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

Commit 4651e2c6 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Re-log stack/smp/smp_act::smp_link_encrypted

Bug: 188074901
Tag: #refactor
Test: gd/cert/run

Change-Id: I908e83dc8155142db2fef3dc961883789529f681
parent 01815a03
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2024,9 +2024,10 @@ void smp_set_local_oob_random_commitment(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
void smp_link_encrypted(const RawAddress& bda, uint8_t encr_enable) {
  tSMP_CB* p_cb = &smp_cb;

  SMP_TRACE_DEBUG("%s: encr_enable=%d", __func__, encr_enable);

  if (smp_cb.pairing_bda == bda) {
    LOG_DEBUG("SMP encryption enable:%hhu device:%s", encr_enable,
              PRIVATE_ADDRESS(bda));

    /* encryption completed with STK, remember the key size now, could be
     * overwritten when key exchange happens                                 */
    if (p_cb->loc_enc_size != 0 && encr_enable) {
@@ -2040,6 +2041,10 @@ void smp_link_encrypted(const RawAddress& bda, uint8_t encr_enable) {
    };

    smp_sm_event(&smp_cb, SMP_ENCRYPTED_EVT, &smp_int_data);
  } else {
    LOG_WARN(
        "SMP state machine busy so skipping encryption enable:%hhu device:%s",
        encr_enable, PRIVATE_ADDRESS(bda));
  }
}