zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.01k stars 6.16k forks source link

net: wifi: connection to WPA2 Enterprise/RADIUS network #54213

Open RomainPelletant opened 1 year ago

RomainPelletant commented 1 year ago

Is your enhancement proposal related to a problem? Please describe. Based on wifi_mgmt, we are able to connect to WPA2 and WPA3 personnal AP. Our need is to provide a basic support for WPA2 Enterprise :

Describe the solution you'd like

  1. Add new entry for enum wifi_security_type : WIFI_SECURITY_TYPE_IEEE8021X and another entry for Authentification type (TLS/PEAP/TTLS)
  2. Or add new entries for enum wifi_security_type :
  1. Re-use SAE password and add identify as data members into wifi_connect_req_params structure : `struct wifi_connect_req_params { const uint8_t ssid; uint8_t ssid_length; / Max 32 */

    uint8_t psk; uint8_t psk_length; / Min 8 - Max 64 */

    uint8_t sae_password; / Optional with fallback to psk / uint8_t sae_password_length; / No length restrictions */

    uint8_t *identity; /* Only for IEEE8021X networks */
    uint8_t identify_length; /* No length restrictions */

    uint8_t band; uint8_t channel; enum wifi_security_type security; enum wifi_mfp_options mfp; int timeout; / SYS_FOREVER_MS for no timeout / };`

Describe alternatives you've considered No alternative. I tried to based the proposal upon wpa_supplicant API : https://wiki.archlinux.org/title/wpa_supplicant#802.1x/radius

Additional context ESP32 seems to support WPA2 Enterprise https://docs.espressif.com/projects/esp-at/en/latest/esp32/AT_Command_Set/Wi-Fi_AT_Commands.html#cmd-jeap

zephyrbot commented 4 months ago

Hi @jukkar,

This issue, marked as an Enhancement, was opened a while ago and did not get any traction. It was just assigned to you based on the labels. If you don't consider yourself the right person to address this issue, please re-assing it to the right person.

Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason.

@RomainPelletant you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you.

Thanks!

matt-wood-ct commented 1 month ago

I'm confused why this hasn't got any traction? Surely enterprise Wi-Fi is a must have feature no?

jukkar commented 1 month ago

The hostap / wpa_supplicant support for zephyr is slowly maturing. Currently the enterprise support is not fully there but there is work being done for it. I do not know the timeline for finalizing it.