fix a few HCI types and make the bridge more robust

This commit is contained in:
Gilles Boccon-Gibod
2026-01-23 21:35:28 -08:00
parent 022323b19c
commit c901e15666
4 changed files with 31 additions and 20 deletions

View File

@@ -37,7 +37,12 @@ class HCI_Bridge:
def on_packet(self, packet):
# Convert the packet bytes to an object
hci_packet = HCI_Packet.from_bytes(packet)
try:
hci_packet = HCI_Packet.from_bytes(packet)
except Exception:
logger.warning('forwarding unparsed packet as-is')
self.hci_sink.on_packet(packet)
return
# Filter the packet
if self.packet_filter is not None: