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

Commit e2600680 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Merge "legacy: Use proper types tSECURITY_STATE" am: 83ed3da1

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1948942

Change-Id: Ib4faf97aad672a27c1058bec9d1cf8f3152cd929
parents 189fa6e2 83ed3da1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2988,7 +2988,7 @@ static void btm_sec_auth_collision(uint16_t handle) {
      /* We will restart authentication after timeout */
      if (p_dev_rec->sec_state == BTM_SEC_STATE_AUTHENTICATING ||
          p_dev_rec->sec_state == BTM_SEC_STATE_ENCRYPTING)
        p_dev_rec->sec_state = 0;
        p_dev_rec->sec_state = BTM_SEC_STATE_IDLE;

      btm_cb.p_collided_dev_rec = p_dev_rec;
      alarm_set_on_mloop(btm_cb.sec_collision_timer, BT_1SEC_TIMEOUT_MS,
+1 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ struct tBTM_SEC_DEV_REC {
  tBTM_BD_NAME sec_bd_name; /* User friendly name of the device. (may be
                               truncated to save space in dev_rec table) */

  uint8_t sec_state;          /* Operating state                    */
  tSECURITY_STATE sec_state; /* Operating state                    */
  bool is_security_state_idle() const {
    return sec_state == BTM_SEC_STATE_IDLE;
  }