First of all, thanks for taking the time to help, I appreciate it.
Of course I will try to clarify.
Versions
Im using the zephyr on its current main, which would be version "4.1.99".
The NXP hal used on this version has the hash
9dc7449014a7380355612453b31be479cb3a6833
commit: "HEAD is now at 9dc74490 hal_nxp: Include LP Flexcomm driver using the right Kconfig"
Sample
Here i use sample "samples/net/wifi/apsta_mode". It can be found here:
zephyr/samples/net/wifi/apsta_mode at main · zephyrproject-rtos/zephyr · GitHub
I had to modify it slightly by adding the kconfig "CONFIG_WIFI_NXP". I also updated the example to use my wifi network. I disabled the AP mode as I do not need it.
The example works well with a "standard" home wifi using only password and WPA2-psk security. I can also see on my access point that the RW612 is successfully connected.
However, when I try to connect to an enterprise network with user and password using EAP-PEAP-MSCHAPV2 security, the connection fails. The nxp simply doesn't event try to connect. I also see on the access point that no one has tried to connect. I have configured the connect call as follows:
sta_config.ssid = (const uint8_t *)WIFI_SSID;
sta_config.ssid_length = strlen(WIFI_SSID);
sta_config.eap_identity = WIFI_USERNAME;
sta_config.eap_id_length = strlen(WIFI_USERNAME);
sta_config.eap_password = WIFI_PASSWORD;
sta_config.eap_passwd_length = strlen(WIFI_PASSWORD);
sta_config.security = WIFI_SECURITY_TYPE_WPA_AUTO_PERSONAL;
sta_config.channel = WIFI_CHANNEL_ANY;
sta_config.band = WIFI_FREQ_BAND_2_4_GHZ;
LOG_INF("Connecting to SSID: %s\n", sta_config.ssid);
int ret = net_mgmt(NET_REQUEST_WIFI_CONNECT, sta_iface, &sta_config,
sizeof(struct wifi_connect_req_params));
After debbuging i arrived here in the NXP zephyr driver.
zephyr/drivers/wifi/nxp/nxp_wifi_drv.c at main · zephyrproject-rtos/zephyr · GitHub
It seems that the supported security here is limited to:
- No security.
- WPA2-PSK security.
- WPA2-PSK-SHA256 security.
- WPA3-SAE security.
- WPA3-SAE security with hash-to-element.
- WPA3-SAE security with both hunting-and-pecking loop and hash-to-element enabled.
- WPA/WPA2/WPA3 PSK security.
Full list of types in zephyr is here:
Zephyr API Documentation: Wi-Fi Management
Am i using the wrong wifi driver?
Is there maybe a NXP wifi driver branch in development i can check out?
Is the problem just zephyr-NXP related would it be possible to do with the NXP SDK?