-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Hostap module glue code #64500
Hostap module glue code #64500
Conversation
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. |
d2c20a0
to
5ed39e0
Compare
5ed39e0
to
4c8afa7
Compare
4c8afa7
to
bb0834a
Compare
This update adds scanning support. |
bb0834a
to
cd5ffbf
Compare
Added initial |
Hi @jukkar , I am from NXP wifi team, when will you merge these wpa-supplicant changes into Zephyr? |
We would like to get more feedback from people about the PR. But if everything looks ok (please give feedback here), I can certainly start to prepare a version that is suitable for merging. There is the related PR at zephyrproject-rtos/hostap#2 that has the hostap changes also waiting a review. So I will most probably remove the native_sim wifi testing driver from this PR as it requires still more work and I can send it separately after the wpa_supplicant is merged. |
cd5ffbf
to
47d633d
Compare
Prepared a new version fixing CI. Also removed the native_sim wifi driver as it requires more work and can be submitted separately. |
c2e7644
to
1c6d8f2
Compare
I accidentally removed the DNM label as the corresponding hostap PR needs to be merged first, so adding it back. |
@dleach02 (or someone from NXP), please take a look. |
1c6d8f2
to
7fd3e4f
Compare
|
Add new files from hostap to Zephyr build. Add wifi mgmt thread that communicates with supplicant. Signed-off-by: Chaitanya Tata <[email protected]> Signed-off-by: Jukka Rissanen <[email protected]>
New hostap version available. Signed-off-by: Jukka Rissanen <[email protected]>
There is no need to hide the wpa_supplicant interface struct so add it directly to net_wifi_mgmt_offload struct. Signed-off-by: Jukka Rissanen <[email protected]>
Changed the names of the API functions between wpa_supplicant and Zephyr upper layers. For example replaced the z_ prefix by zephyr_ as the z_ is only meant for internal kernel functions. Changed the wpa_supplicant startup so that we do not poll but wait the network interface add event which then adds the network interfaces to the supplicant. Signed-off-by: Jukka Rissanen <[email protected]>
Tweaked the code to be more readable and align to Zephyr coding style. Signed-off-by: Jukka Rissanen <[email protected]>
If the DHCPv4 is disabled, then avoid linking warning about missing DHCPv4 functions. Also include dhcpv4.h so that the DHCPv4 function prototypes are found by the zephyr supplicant driver. Signed-off-by: Jukka Rissanen <[email protected]>
Zephyr requires that the name of the variable is not the same as the struct as seen by this warning: modules/hostap/src/supp_api.c:64:WARNING: Violation to rule 5.7 (Tag name should be unique) tag: wpa_supp_api_ctrl Signed-off-by: Jukka Rissanen <[email protected]>
Zephyr compliance checker does not like macros that have control structures like goto. So change the macro to align with this rule. Also rename the macro and remove the __ prefix as it not needed. Signed-off-by: Jukka Rissanen <[email protected]>
Compliance checker does not allow compile definitions without a Kconfig option. So add dummy values for time being. These should be removed at some point and replaced with properly namespaced options. Signed-off-by: Jukka Rissanen <[email protected]>
Some crypto Kconfig options were commented out, so remove them. These will be re-introduced later when adding crypto support properly. Signed-off-by: Jukka Rissanen <[email protected]>
7fd3e4f
to
a41925b
Compare
manifest file changed as the hostap module was updated |
64423e2
into
zephyrproject-rtos:main
This provides interface glue code to hostap module in
modules/hostap
directory. Crypto support is disabled.The example native_sim based example / testing wifi driver is still WIP and is sent in a separate PR after this one is merged.