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

Commit ddc963e8 authored by Chris Manton's avatar Chris Manton
Browse files

Remove unused var tBTM_SEC_DEV_REC::link_key_changed

set-once-to-default-read-never

Towards readable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink
Change-Id: Ife93f8028096744171ae79f2d8608c87e352eff0
parent 35b3ec37
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3643,8 +3643,6 @@ void btm_sec_connected(const RawAddress& bda, uint16_t handle, uint8_t status,
    p_dev_rec->sec_flags |= (BTM_SEC_16_DIGIT_PIN_AUTHED << bit_shift);
  }

  p_dev_rec->link_key_changed = false;

  /* After connection is established we perform security if we do not know */
  /* the name, or if we are originator because some procedure can have */
  /* been scheduled while connection was down */
+0 −1
Original line number Diff line number Diff line
@@ -298,7 +298,6 @@ typedef struct {
  bool link_key_not_sent; /* link key notification has not been sent waiting for
                             name */
  uint8_t link_key_type;  /* Type of key used in pairing   */
  bool link_key_changed;  /* Changed link key during current connection */

#define BTM_MAX_PRE_SM4_LKEY_TYPE \
  BTM_LKEY_TYPE_REMOTE_UNIT /* the link key type used by legacy pairing */