]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Bluetooth: hci_core: Detect if an ACL packet is in fact an ISO packet
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 24 Feb 2023 23:43:31 +0000 (15:43 -0800)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:31 +0000 (13:33 +0200)
commitd81a9166ead3d7f7559f7abd9380169044d74abc
tree120964a3063161f63fb9488522f69cf50957abf8
parent197ea1064e88b30b738a6bcd6ae38d69f9e648f1
Bluetooth: hci_core: Detect if an ACL packet is in fact an ISO packet

BugLink: https://bugs.launchpad.net/bugs/2016877
[ Upstream commit 876e78104f23ce9267822757a63562a609b126c3 ]

Because some transports don't have a dedicated type for ISO packets
(see 14202eff214e1e941fefa0366d4c3bc4b1a0d500) they may use ACL type
when in fact they are ISO packets.

In the past this was left for the driver to detect such thing but it
creates a problem when using the likes of btproxy when used by a VM as
the host would not be aware of the connection the guest is doing it
won't be able to detect such behavior, so this make bt_recv_frame
detect when it happens as it is the common interface to all drivers
including guest VMs.

Fixes: 14202eff214e ("Bluetooth: btusb: Detect if an ACL packet is in fact an ISO packet")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/bluetooth/hci_core.c