receiver: Bolt connection does not show encryption status

This commit is contained in:
Peter F. Patel-Schneider 2021-11-10 12:07:48 -05:00
parent 603fbe96e0
commit 9823e5ab8a
1 changed files with 1 additions and 1 deletions

View File

@ -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 elif n.address > 0x00: # all other protocols are supposed to be almost the same
wpid = _strhex(n.data[2:3] + n.data[1:2]) wpid = _strhex(n.data[2:3] + n.data[1:2])
link_established = not (flags & 0x40) link_established = not (flags & 0x40)
link_encrypted = bool(flags & 0x20) link_encrypted = bool(flags & 0x20) or n.address == 0x10 # Bolt protocol always encrypted
else: else:
_log.warn('%s: connection notification with unknown protocol %02X: %s', device.number, n.address, n) _log.warn('%s: connection notification with unknown protocol %02X: %s', device.number, n.address, n)
return True return True