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

Commit a3728562 authored by Jack He's avatar Jack He
Browse files

BTM: Fix a bit flip in the role change state comparison

Bug: 167151478
Test: make phone calls over Bluetooth
Tag: #stability
Change-Id: I331e2897e23816d5ead2e8bb225e27a48f8d636e
parent 12d183ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ typedef struct {
  }

  bool is_switch_role_idle() const {
    return switch_role_state_ != BTM_ACL_SWKEY_STATE_IDLE;
    return switch_role_state_ == BTM_ACL_SWKEY_STATE_IDLE;
  }
  bool is_switch_role_encryption_off() const {
    return switch_role_state_ == BTM_ACL_SWKEY_STATE_ENCRYPTION_OFF;