Bluetooth: hci_conn: Fix not restoring ISO buffer count on disconnect
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 17 Oct 2022 22:36:23 +0000 (15:36 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 2 Nov 2022 21:16:09 +0000 (14:16 -0700)
commit5638d9ea9c01c77fc11693d48cf719bc7e88f224
tree205ed2feaae4f41a0e7252e898113aa7cfdad7a2
parent7c9524d929648935bac2bbb4c20437df8f9c3f42
Bluetooth: hci_conn: Fix not restoring ISO buffer count on disconnect

When disconnecting an ISO link the controller may not generate
HCI_EV_NUM_COMP_PKTS for unacked packets which needs to be restored in
hci_conn_del otherwise the host would assume they are still in use and
would not be able to use all the buffers available.

Fixes: 26afbd826ee3 ("Bluetooth: Add initial implementation of CIS connections")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Frédéric Danis <frederic.danis@collabora.com>
net/bluetooth/hci_conn.c