Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions subsys/bluetooth/host/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,12 @@ static void hci_encrypt_change(struct net_buf *buf)
return;
}

if (conn->encrypt == evt->encrypt) {
BT_WARN("No change to encryption state (encrypt 0x%02x)", evt->encrypt);
bt_conn_unref(conn);
return;
}

conn->encrypt = evt->encrypt;

#if defined(CONFIG_BT_SMP)
Expand Down
Loading