You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
Hey everyone, I'm unsure where else I should ask this question so here we are. I have also posted this question on the esp-idf-svc repo since I am using rust, though this shouldn't be a Rust related issue: esp-rs/esp-idf-svc#530
My router1 supports WPA2-PSK and WPA3-PSK and I normally have it running in WPA3-PSK only mode. When attempting to connect to my network in WPA3 Personal mode, I experience an auth issue. When allowing hybrid WPA2/WPA3 on my router and attempting to connect with WPA2 Personal it works.
Doing research online leads me to believe that the ESP32-S3 2 should be able to handle WPA3. I'm a bit confused as to why. ChatGPT leads me to believe it may have something to do with WPA3-SAE?
I would also like to note, that unless I explicitly set WPA2 as the preferred connection method in my software that it will not connect - meaning if I don't provide a preference or do preference WPA3 then it wont work at all.
Code
use esp_idf_svc::{
eventloop::EspSystemEventLoop,
hal::modem::WifiModemPeripheral,
nvs::EspDefaultNvsPartition,
wifi::{AuthMethod,BlockingWifi,ClientConfiguration,Configuration,EspWifi},};constWIFI_SSID:&str = env!("WIFI_SSID");constWIFI_PASSWORD:&str = env!("WIFI_PASSWORD");constWIFI_AUTH_METHOD:&str = env!("WIFI_AUTH_METHOD");pubstructWifi<'a>{wifi:BlockingWifi<EspWifi<'a>>,}impl<'a>Wifi<'a>{pubfninit<M>(modem:M,sys_loop:EspSystemEventLoop,nvs:EspDefaultNvsPartition,) -> anyhow::Result<Self>whereM:WifiModemPeripheral + 'a,{letmut wifi =
BlockingWifi::wrap(EspWifi::new(modem, sys_loop.clone(),Some(nvs))?, sys_loop)?;let auth_method = matchWIFI_AUTH_METHOD{"WPA2_PSK" => AuthMethod::WPA2Personal,"WPA3_PSK" => AuthMethod::WPA3Personal,
_ => returnErr(anyhow::anyhow!("Invalid WIFI_AUTH_METHOD")),};let wifi_configuration = Configuration::Client(ClientConfiguration{ssid:WIFI_SSID.try_into().map_err(|_| anyhow::anyhow!("Invalid SSID Format"))?,bssid:None,
auth_method,// This is commented out if I want to simulate having no preferencepassword:WIFI_PASSWORD.try_into().map_err(|_| anyhow::anyhow!("Invalid Password Format"))?,channel:None,
..Default::default()});
wifi.set_configuration(&wifi_configuration)?;Ok(Self{ wifi })}pubfnis_up(&mutself) -> anyhow::Result<bool>{self.wifi.is_up().map_err(|_| anyhow::anyhow!("Error checking WiFi status"))}pubfnconnect(&mutself,retries:usize) -> anyhow::Result<()>{
log::info!("Config:\n{:#?}",self.wifi.get_configuration()?);for attempt in0..retries {if !self.wifi.is_connected().map_err(|_| anyhow::anyhow!("Error checking WiFi status"))?
{self.wifi.start()?;matchself.wifi.connect(){Ok(_) => {
log::info!("Connected to WiFi!");self.wifi.wait_netif_up()?;returnOk(());}Err(e) => {
log::error!("Failed to connect to WiFi: {:#?}", e);if e.code() == esp_idf_svc::sys::ESP_ERR_TIMEOUT{
log::error!("Failed to connect to WiFi: {}", e);}else{returnErr(e.into());}}}}}Err(anyhow::anyhow!("Failed to connect to WiFi"))}pubfndisconnect(&mutself) -> anyhow::Result<()>{self.wifi.disconnect()?;Ok(())}}
Answers checklist.
General issue report
Hey everyone, I'm unsure where else I should ask this question so here we are. I have also posted this question on the esp-idf-svc repo since I am using rust, though this shouldn't be a Rust related issue: esp-rs/esp-idf-svc#530
My router1 supports WPA2-PSK and WPA3-PSK and I normally have it running in WPA3-PSK only mode. When attempting to connect to my network in WPA3 Personal mode, I experience an auth issue. When allowing hybrid WPA2/WPA3 on my router and attempting to connect with WPA2 Personal it works.
Doing research online leads me to believe that the ESP32-S3 2 should be able to handle WPA3. I'm a bit confused as to why. ChatGPT leads me to believe it may have something to do with WPA3-SAE?
I would also like to note, that unless I explicitly set WPA2 as the preferred connection method in my software that it will not connect - meaning if I don't provide a preference or do preference WPA3 then it wont work at all.
Code
Security Options
WPA3-PSK Only Router Mode Logs
https://pastebin.com/sdpCQxt5
WPA2-PSK/WPA3-PSK Router Mode with Preferred WPA2 Personal Logs
https://pastebin.com/XnUvFHQp
Footnotes
Telstra Smart Modem 3 ↩
ESP32-S3-WROOM-1U-N8R8 Development Board ↩
The text was updated successfully, but these errors were encountered: