Bluetooth: ISO: fix timestamped HCI ISO data packet parsing
authorPauli Virtanen <pav@iki.fi>
Mon, 20 Feb 2023 19:38:24 +0000 (19:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:10 +0000 (12:49 +0200)
commite2a90a5b153ad7d6eabae73106c2d16b27dad45f
tree6e6942e719305870d1b946e630c4bf6a938d2ab5
parente0338af405aed107cb576d786142bf65fc47d712
Bluetooth: ISO: fix timestamped HCI ISO data packet parsing

[ Upstream commit 2f10e40a948e8a2abe7f983df3959a333ca8955f ]

Use correct HCI ISO data packet header struct when the packet has
timestamp. The timestamp, when present, goes before the other fields
(Core v5.3 4E 5.4.5), so the structs are not compatible.

Fixes: ccf74f2390d6 ("Bluetooth: Add BTPROTO_ISO socket type")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/iso.c