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>
This commit is contained in:
committed by
Luiz Augusto von Dentz
parent
d4cc4ee481
commit
f25b7fd36c
@@ -649,6 +649,7 @@ struct hci_dev {
|
||||
int (*get_codec_config_data)(struct hci_dev *hdev, __u8 type,
|
||||
struct bt_codec *codec, __u8 *vnd_len,
|
||||
__u8 **vnd_data);
|
||||
u8 (*classify_pkt_type)(struct hci_dev *hdev, struct sk_buff *skb);
|
||||
};
|
||||
|
||||
#define HCI_PHY_HANDLE(handle) (handle & 0xff)
|
||||
|
||||
Reference in New Issue
Block a user