]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: hci_event: fix MTU for BN == 0 in CIS Established
authorPauli Virtanen <pav@iki.fi>
Sat, 9 Aug 2025 08:36:20 +0000 (11:36 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 15 Aug 2025 13:44:49 +0000 (09:44 -0400)
commit0b3725dbf61b51e7c663834811b3691157ae17d6
tree4076b6a9420e6219900606ed41a91d91fde77a6d
parent4d19cd228bbe8ff84a63fe7b11bc756b4b4370c7
Bluetooth: hci_event: fix MTU for BN == 0 in CIS Established

BN == 0x00 in CIS Established means no isochronous data for the
corresponding direction (Core v6.1 pp. 2394). In this case SDU MTU
should be 0.

However, the specification does not say the Max_PDU_C_To_P or P_To_C are
then zero.  Intel AX210 in Framed CIS mode sets nonzero Max_PDU for
direction with zero BN.  This causes failure later when we try to LE
Setup ISO Data Path for disabled direction, which is disallowed (Core
v6.1 pp. 2750).

Fix by setting SDU MTU to 0 if BN == 0.

Fixes: 2be22f1941d5f ("Bluetooth: hci_event: Fix parsing of CIS Established Event")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_event.c