Skip to content

Commit aee381e

Browse files
committed
[nrf fromlist] Bluetooth: L2CAP: Migration guide and release notes for 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 <[email protected]>
1 parent c1b8f33 commit aee381e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

doc/releases/migration-guide-4.0.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,18 @@ Bluetooth Classic
243243
Bluetooth Host
244244
==============
245245

246+
:c:func:`bt_l2cap_ecred_chan_reconfigure`
247+
-----------------------------------------
248+
249+
:c:func:`bt_l2cap_ecred_chan_reconfigure` now expects the ``mps`` parameter
250+
explicitly. To upgrade without change in behavior, perform the following
251+
substitution:
252+
253+
.. code-block:: diff
254+
-bt_l2cap_ecred_chan_reconfigure(chan, mtu);
255+
+uint16_t mps = MIN(mtu + BT_L2CAP_SDU_HDR_SIZE, BT_L2CAP_RX_MTU);
256+
+bt_l2cap_ecred_chan_reconfigure(chan, mtu, mps);
257+
246258
Bluetooth Crypto
247259
================
248260

doc/releases/release-notes-4.0.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ Bluetooth
105105
:c:func:`bt_conn_le_create` and :c:func:`bt_conn_le_create_synced` return an error if the
106106
connection pointer passed as an argument is not NULL.
107107

108+
* Added parameter ``mps`` to :c:func:`bt_l2cap_ecred_chan_reconfigure`. See migration guide for
109+
more details.
110+
108111
* HCI Drivers
109112

110113
Boards & SoC Support

0 commit comments

Comments
 (0)