Skip to content
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: Security improvements #74847

Merged

Conversation

MaochenWang1
Copy link
Contributor

@MaochenWang1 MaochenWang1 commented Jun 24, 2024

hostap: Support getting Wi-Fi connection parameters recently used
hostap: Support flushing PMKSA cache entries
hostap: add WPA2 EAP_TLS support

Implements #54213 partially (only EAP-TLS).

modules/hostap/src/supp_api.c Show resolved Hide resolved
modules/hostap/src/supp_api.h Show resolved Hide resolved
include/zephyr/net/wifi_mgmt.h Outdated Show resolved Hide resolved
modules/hostap/src/supp_api.h Outdated Show resolved Hide resolved
@krish2718 krish2718 changed the title zephyr hostap related change hostap: Security improvements Jun 24, 2024
@MaochenWang1 MaochenWang1 force-pushed the main_zephyr_10 branch 4 times, most recently from 9308ab4 to 953c39e Compare July 24, 2024 09:40
@MaochenWang1
Copy link
Contributor Author

Hi @krish2718 @jukkar @rlubos please review again, thanks

modules/hostap/src/supp_api.c Outdated Show resolved Hide resolved
include/zephyr/net/wifi.h Outdated Show resolved Hide resolved
include/zephyr/net/wifi_mgmt.h Outdated Show resolved Hide resolved
modules/hostap/src/supp_api.h Outdated Show resolved Hide resolved
include/zephyr/net/wifi.h Show resolved Hide resolved
subsys/net/l2/wifi/wifi_shell.c Show resolved Hide resolved
@MaochenWang1
Copy link
Contributor Author

Hi @krish2718 @jukkar @rlubos please review again

@MaochenWang1 MaochenWang1 force-pushed the main_zephyr_10 branch 4 times, most recently from 10cc4b1 to 81b13ef Compare July 29, 2024 10:55
@MaochenWang1 MaochenWang1 force-pushed the main_zephyr_10 branch 2 times, most recently from de335e3 to 036555d Compare July 30, 2024 06:58
doc/connectivity/networking/api/wifi.rst Outdated Show resolved Hide resolved
doc/connectivity/networking/api/wifi.rst Outdated Show resolved Hide resolved
doc/connectivity/networking/api/wifi.rst Outdated Show resolved Hide resolved
doc/connectivity/networking/api/wifi.rst Outdated Show resolved Hide resolved
@MaochenWang1 MaochenWang1 force-pushed the main_zephyr_10 branch 2 times, most recently from 05b167b to 50026cb Compare July 30, 2024 08:27
doc/connectivity/networking/api/wifi.rst Outdated Show resolved Hide resolved
doc/connectivity/networking/api/wifi.rst Outdated Show resolved Hide resolved
include/zephyr/net/wifi.h Outdated Show resolved Hide resolved
subsys/net/l2/wifi/wifi_shell.c Show resolved Hide resolved
@MaochenWang1 MaochenWang1 force-pushed the main_zephyr_10 branch 2 times, most recently from d01e31b to 0ee0f5e Compare August 19, 2024 08:08
krish2718
krish2718 previously approved these changes Aug 19, 2024
@MaochenWang1
Copy link
Contributor Author

Hi @jukkar please review, thanks

MaochenWang1 and others added 6 commits August 20, 2024 11:18
Support saving and getting Wi-Fi connection parameters recently used.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
Support flushing PMKSA cache entries in the reconnection
failed case of WPA3 SAE.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
Keep WIFI_SECURITY_TYPE_EAP, and define WIFI_SECURITY_TYPE_EAP_TLS
same value as WIFI_SECURITY_TYPE_EAP to make it backwards
compatible. Ready to support more EAP type in the comming PR.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
Add basic WPA2 EAP-TLS support.
Also, add test infrasturcture esp. the certification handling,
non-certificate credentials are take as runtime input and certificated
are build time input for testing.

A real application can set certificates at runtime too.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
For Enterprise crypto MbedTLS needs more heap either separate pool or
libc heap, based on experiments 55000 was arrived for a successful
WPA2-EAP-TLS association.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
For Wi-Fi Enterprise testing these configurations are necessary.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
@MaochenWang1
Copy link
Contributor Author

Hi @jukkar please review, this PR has pending too long, and faces conflicts several times

Copy link
Member

@jukkar jukkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for patience, LGTM.

@henrikbrixandersen henrikbrixandersen merged commit 58b6bd6 into zephyrproject-rtos:main Aug 20, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants