From 6de57d0985577def3aabc05b3d2d645ba882fe26 Mon Sep 17 00:00:00 2001 From: Donatien Garnier Date: Thu, 14 Sep 2023 15:24:29 +0000 Subject: [PATCH] Bluetooth: Host: Document required changes for L2CAP accept() callback Add a required change in the migration guide to document the changes to the accept() callback in struct bt_l2cap_server. Signed-off-by: Donatien Garnier --- doc/releases/migration-guide-3.5.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/releases/migration-guide-3.5.rst b/doc/releases/migration-guide-3.5.rst index 220302e12034d6..017297a89677d1 100644 --- a/doc/releases/migration-guide-3.5.rst +++ b/doc/releases/migration-guide-3.5.rst @@ -139,6 +139,12 @@ Required changes }; }; +* The ``accept()`` callback's signature in :c:struct:`bt_l2cap_server` has + changed to ``int (*accept)(struct bt_conn *conn, struct bt_l2cap_server + *server, struct bt_l2cap_chan **chan)``, + adding a new ``server`` parameter pointing to the :c:struct:`bt_l2cap_server` + structure instance the callback relates to. :github:`60536` + Recommended Changes *******************