Skip to content

Commit ee4f7de

Browse files
committed
doc: migration-guide-4.2: Add note about Bluetooth HCI changes
Mention the changes that have happened to the Bluetooth HCI driver interface regarding packet type encoding. Signed-off-by: Johan Hedberg <[email protected]>
1 parent 69d93c9 commit ee4f7de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/releases/migration-guide-4.2.rst

+8
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,14 @@ Stepper
227227
Bluetooth
228228
*********
229229

230+
* The buffer types passing through the HCI driver interface are now indicated as H:4 encoded prefix
231+
bytes as part of the buffer payload itself. The bt_buf_set_type() and bt_buf_get_type() functions
232+
are still usable, except that the latter can only be called once per buffer.
233+
234+
* As part of the HCI buffer encoding change, since packet type values are no longer independent
235+
bits, the callback used by :c:func:`bt_buf_rx_freed_cb_set` has been changed to take a bitmask
236+
that's constructed using bitwise or of ``BIT(type)``` values.
237+
230238
Bluetooth Audio
231239
===============
232240

0 commit comments

Comments
 (0)