Bluetooth: Add vendor-specific packet classification for ISO data
authorYing Hsu <yinghsu@chromium.org>
Wed, 29 May 2024 08:00:00 +0000 (08:00 +0000)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 01:34:32 +0000 (21:34 -0400)
commitf25b7fd36cc3a850e006aed686f5bbecd200de1b
tree5fca456d8faadd2bb70f620889d975bf785d2742
parentd4cc4ee48167b4c25abf49ead19412c29a1ad9f4
Bluetooth: Add vendor-specific packet classification for ISO data

When HCI raw sockets are opened, the Bluetooth kernel module doesn't
track CIS/BIS connections. User-space applications have to identify
ISO data by maintaining connection information and look up the mapping
for each ACL data packet received. Besides, btsnoop log captured in
kernel couldn't tell ISO data from ACL data in this case.

To avoid additional lookups, this patch introduces vendor-specific
packet classification for Intel BT controllers to distinguish
ISO data packets from ACL data packets.

Signed-off-by: Ying Hsu <yinghsu@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel.c
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c