From 9823e5ab8a9ab27bf8627da85bcec3503fe295b6 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Wed, 10 Nov 2021 12:07:48 -0500 Subject: [PATCH] receiver: Bolt connection does not show encryption status --- lib/logitech_receiver/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logitech_receiver/notifications.py b/lib/logitech_receiver/notifications.py index 64961b94..688a90ed 100644 --- a/lib/logitech_receiver/notifications.py +++ b/lib/logitech_receiver/notifications.py @@ -268,7 +268,7 @@ def _process_hidpp10_notification(device, status, n): elif n.address > 0x00: # all other protocols are supposed to be almost the same wpid = _strhex(n.data[2:3] + n.data[1:2]) link_established = not (flags & 0x40) - link_encrypted = bool(flags & 0x20) + link_encrypted = bool(flags & 0x20) or n.address == 0x10 # Bolt protocol always encrypted else: _log.warn('%s: connection notification with unknown protocol %02X: %s', device.number, n.address, n) return True