Skip to content

Commit d52258e

Browse files
committed
doc: migration: 4.2: Add information about net_mgmt API changes
Add information how the net_mgmt request handler is changed. The event number type is changed from uint32_t to uint64_t to allow the event command to be a bit mask instead of enum value. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
1 parent 05c59fe commit d52258e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/releases/migration-guide-4.2.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,14 @@ Networking
465465
need to update their response callback implementations. To retain current
466466
behavior, simply return 0 from the callback.
467467

468+
* The API signature of ``net_mgmt`` request handler :c:type:`net_mgmt_request_handler_t`
469+
has changed. The management event value is changed from ``uint32_t`` to ``uint64_t``.
470+
The change allows event number values to be bit masks instead of enum values.
471+
The layer code still stays as a enum value so one cannot directly compare the event
472+
numbers. The :c:macro:`NET_MGMT_LAYER_CODE` and :c:macro:`NET_MGMT_GET_COMMAND` should
473+
be used to get the layer code and management event command from the actual event value
474+
in the request event handler.
475+
468476
OpenThread
469477
==========
470478

0 commit comments

Comments
 (0)