receiver: Bolt connection does not show encryption status
This commit is contained in:
parent
603fbe96e0
commit
9823e5ab8a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue