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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:10 +0000 (12:49 +0200)
commitf770ce652b27cd28164f799c2655a1dee3ceef12
tree493511c8b8b5efe0c324c68745c4e81b6e4b1e17
parentbc7a5dde52a241324b41a44624cdd1733f7ecc99
Bluetooth: hci_core: Detect if an ACL packet is in fact an ISO packet

[ 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>
net/bluetooth/hci_core.c