-
Notifications
You must be signed in to change notification settings - Fork 8.2k
net: wifi_mgmt: add hostap DPP support #73707
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
net: wifi_mgmt: add hostap DPP support #73707
Conversation
0868ec2 to
d23d957
Compare
|
Complicance check fail because of unknown kconfig CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP Pls help review regardless of this CI error so that this PR can go in parallel. |
f05c55b to
ffd20ce
Compare
|
This PR seems to be related to this hostap PR zephyrproject-rtos/hostap#10 |
|
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
|
The hostap PRs are now merged, next steps:
|
include/zephyr/net/wifi_mgmt.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
modules/hostap/src/supp_api.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use strncpy() variant when copying. This way we can be sure that we will not overwrite dpp_cmd_buf. There are external tools that will complain the use of these unsafe functions so we could avoid future issues for these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated as comments
c3729df to
83ce631
Compare
83ce631 to
ccf2457
Compare
5ee7834 to
0228257
Compare
include/zephyr/net/wifi_mgmt.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DPP in comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
@fengming-ye Rebase needed |
This is very confusing if you create a new PR, please just use this one and just force push new commit versions on top of this PR. |
|
For this PR, just rebase your branch to latest main, and force push. Github complains now about some conflict which hopefully is resolved by a rebase. |
e8bdebb
d3cc6bd to
e8bdebb
Compare
rebased, thanks. |
e8bdebb to
bee39fb
Compare
|
CI fail because of unrelated error |
|
The CI issue is already fixed by #76580. Please rebase against latest main and force push a new version. |
bee39fb to
9b6ebca
Compare
rebased and add NXP copyright since we are adding new features to wifi mgmt. |
jukkar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just minor comment about the doxygen comments
include/zephyr/net/wifi_mgmt.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these comments referring to? I mean the individual fields are already commented below so these four lines seems unnecessary.
include/zephyr/net/wifi_mgmt.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use proper English here as this data is used to generate the documentation, so start with capital letter here "Operation enum"
include/zephyr/net/wifi_mgmt.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a bit weird, could you rewrite it.
subsys/net/l2/wifi/wifi_shell.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you place the shell changes to a separate commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated as above requests
9b6ebca to
b12a310
Compare
Add wifi l2 mgmt dpp handlers. Add wifi subcommand dpp to call l2 mgmt dpp handlers. DPP l2 handlers will parse params to hostap wpa_cli format args and send wpa_cli commands to hostap. Signed-off-by: Fengming Ye <[email protected]>
DPP shell command handler will parse user args to params in enum and send l2 mgmt DPP requests. Signed-off-by: Fengming Ye <[email protected]>
b12a310 to
2ac4125
Compare
Add wifi l2 mgmt dpp handlers. Add wifi subcommand dpp to call l2 mgmt dpp handlers. DPP shell commands body is the same as wpa_cli commands but with different prefix "wifi dpp". eg. "wifi dpp dpp_auth_init peer=1 role=enrollee" DPP shell command handler will parse user args to params in enum and send l2 mgmt dpp requests. DPP l2 handlers will parse params to hostap wpa_cli format args and send wpa_cli commands to hostap. From list zephyrproject-rtos/zephyr#73707 Signed-off-by: Fengming Ye <[email protected]>
Add wifi l2 mgmt dpp handlers. Add wifi subcommand dpp to call l2 mgmt dpp handlers. DPP shell commands body is the same as wpa_cli commands but with different prefix "wifi dpp". eg. "wifi dpp dpp_auth_init peer=1 role=enrollee" DPP shell command handler will parse user args to params in enum and send l2 mgmt dpp requests. DPP l2 handlers will parse params to hostap wpa_cli format args and send wpa_cli commands to hostap. From list zephyrproject-rtos/zephyr#73707 Signed-off-by: Fengming Ye <[email protected]>
Add wifi l2 mgmt dpp handlers. Add wifi subcommand dpp to call l2 mgmt dpp handlers. DPP shell commands body is the same as wpa_cli commands but with different prefix "wifi dpp". eg. "wifi dpp dpp_auth_init peer=1 role=enrollee" DPP shell command handler will parse user args to params in enum and send l2 mgmt dpp requests. DPP l2 handlers will parse params to hostap wpa_cli format args and send wpa_cli commands to hostap. From list zephyrproject-rtos/zephyr#73707 Signed-off-by: Fengming Ye <[email protected]>
Add wifi l2 mgmt dpp handlers.
Add wifi subcommand dpp to call l2 mgmt dpp handlers.
DPP shell commands body is the same as wpa_cli commands but with different prefix "wifi dpp". eg.
"wifi dpp dpp_auth_init peer=1 role=enrollee"
DPP shell command handler will parse user args to params in enum and send l2 mgmt dpp requests.
DPP l2 handlers will parse params to hostap wpa_cli format args and send wpa_cli commands to hostap.