From f580ffcbc39bd69968fa21952d1ad9cfbb8bfc27 Mon Sep 17 00:00:00 2001 From: Abel Lucas Date: Fri, 2 Dec 2022 19:28:01 +0000 Subject: [PATCH] device: set as Secure Connection when encrypted with AES --- bumble/device.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bumble/device.py b/bumble/device.py index 3d7f0ea3..62d56abc 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -2574,6 +2574,9 @@ class Device(CompositeEventEmitter): f'*** Connection Encryption Change: [0x{connection.handle:04X}] {connection.peer_address} as {connection.role_name}, encryption={encryption}' ) connection.encryption = encryption + if not connection.authenticated and encryption == HCI_Encryption_Change_Event.AES_CCM: + connection.authenticated = True + connection.sc = True connection.emit('connection_encryption_change') @host_event_handler