-
Notifications
You must be signed in to change notification settings - Fork 716
net: Cherry pick net_mgmt API changes #2990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rlubos
merged 10 commits into
nrfconnect:main
from
rlubos:ncs/cherry-pick-net-mgmt-api-changes
Aug 5, 2025
Merged
net: Cherry pick net_mgmt API changes #2990
rlubos
merged 10 commits into
nrfconnect:main
from
rlubos:ncs/cherry-pick-net-mgmt-api-changes
Aug 5, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jun 26, 2025
jukkar
approved these changes
Jun 26, 2025
bf5df2a to
7cd7c29
Compare
|
7cd7c29 to
cfaa41b
Compare
This reverts commit d87f317. Signed-off-by: Robert Lubos <[email protected]>
This reverts commit 691b66e. Signed-off-by: Robert Lubos <[email protected]>
Instead of using 32 bit enum values for event numbers, convert the code to use 64 bit long bit fields. This means that the user API is changed to use 64 bit event values instead of 32 bit event values. Signed-off-by: Jukka Rissanen <[email protected]> (cherry picked from commit 5a9a39c) Signed-off-by: Robert Lubos <[email protected]>
…t_mgmt sockets We cannot use the network management event number directly as a socket option value because the management value is uint64_t and that cannot be mapped directly to 32 bit integer. So have an intermediate socket option that is mapped to actual network management request number in getsockopt() and setsockopt(). Signed-off-by: Jukka Rissanen <[email protected]> (cherry picked from commit 2ed2232) Signed-off-by: Robert Lubos <[email protected]>
…I 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 <[email protected]> (cherry picked from commit 6b0597f) Signed-off-by: Robert Lubos <[email protected]>
As per API overview documentation, a braking API change must increment major version number. https://docs.zephyrproject.org/latest/develop/api/overview.html#api-overview Signed-off-by: Jukka Rissanen <[email protected]> (cherry picked from commit b1a8655) Signed-off-by: Robert Lubos <[email protected]>
This has been missed in net_mgmt rework in commit 5a9a39c. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 3e70425)
net_event.h header makes use of macros defined in net_mgmt.h, therefore it should include that header. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit ae7d7a8)
Support to configure BSS max idle period at runtime. Signed-off-by: Ajay Parida <[email protected]> (cherry picked from commit c70b350) Signed-off-by: Robert Lubos <[email protected]>
cfaa41b to
e48a563
Compare
30s is too aggressive for most APs, and hostapd also uses 5mins as the default value. Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit 59ff126) Signed-off-by: Robert Lubos <[email protected]>
e48a563 to
172a278
Compare
krish2718
approved these changes
Aug 5, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



There was an API breaking change in net_mgmt upstream, cherry-pick the change to align NCS codebase and catch any potential breakages early.