Skip to content

Commit

Permalink
[nrf fromlist] Bluetooth: L2CAP: Migration guide and release notes fo…
Browse files Browse the repository at this point in the history
…r explicit MPS

`bt_l2cap_ecred_chan_reconfigure` now expects the `mps` parameter
explicitly. The provided migration guide gives a simple substitution
to upgrade without change in behavior.

Upstream PR #: 80883

Signed-off-by: Lang Xie <lang.xie@nordicsemi.no>
  • Loading branch information
laxiLang committed Nov 5, 2024
1 parent c1b8f33 commit aee381e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/releases/migration-guide-4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,18 @@ Bluetooth Classic
Bluetooth Host
==============

:c:func:`bt_l2cap_ecred_chan_reconfigure`
-----------------------------------------

:c:func:`bt_l2cap_ecred_chan_reconfigure` now expects the ``mps`` parameter
explicitly. To upgrade without change in behavior, perform the following
substitution:

.. code-block:: diff
-bt_l2cap_ecred_chan_reconfigure(chan, mtu);
+uint16_t mps = MIN(mtu + BT_L2CAP_SDU_HDR_SIZE, BT_L2CAP_RX_MTU);
+bt_l2cap_ecred_chan_reconfigure(chan, mtu, mps);
Bluetooth Crypto
================

Expand Down
3 changes: 3 additions & 0 deletions doc/releases/release-notes-4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ Bluetooth
:c:func:`bt_conn_le_create` and :c:func:`bt_conn_le_create_synced` return an error if the
connection pointer passed as an argument is not NULL.

* Added parameter ``mps`` to :c:func:`bt_l2cap_ecred_chan_reconfigure`. See migration guide for
more details.

* HCI Drivers

Boards & SoC Support
Expand Down

0 comments on commit aee381e

Please sign in to comment.