]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
Bluetooth: L2CAP: Fix regressions caused by reusing ident
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 17 Mar 2026 15:54:01 +0000 (11:54 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 19 Mar 2026 18:44:25 +0000 (14:44 -0400)
commit761fb8ec8778f0caf2bba5a41e3cff1ea86974f3
treec637735494a965e1143dcc75cd36c487d4a6b631
parentb6552e0503973daf6f23bd6ed9273ef131ee364f
Bluetooth: L2CAP: Fix regressions caused by reusing ident

This attempt to fix regressions caused by reusing ident which apparently
is not handled well on certain stacks causing the stack to not respond to
requests, so instead of simple returning the first unallocated id this
stores the last used tx_ident and then attempt to use the next until all
available ids are exausted and then cycle starting over to 1.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=221120
Link: https://bugzilla.kernel.org/show_bug.cgi?id=221177
Fixes: 6c3ea155e5ee ("Bluetooth: L2CAP: Fix not tracking outstanding TX ident")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Christian Eggers <ceggers@arri.de>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c