#119541·zephyr

Incase of WPA3 secure connection Wrong password receives as authentication failure

Author: kalpeshsthoratCreated Sep 18, 2026Updated Sep 18, 2026
Labelsarea: Wi-Fi

Describe the bug

  1. Set security type to WPA3 in mobile hotspot / router
  2. Try to connect to the same router with wrong password with WPA3 secure set from the device
  3. Incase of WPA2 this error is received as wrong password however in case of WPA3 it is getting received as authentication failure
  4. Expectation : Behavior as same as WPA2

Regression

  • This is a regression.

Steps to reproduce

  1. Set security type to WPA3 in mobile hotspot / router
  2. Try to connect to the same router with wrong password

Relevant log output

bash
[    946.603] <dbg> wpa_supp: wpa_printf_impl: Calling wpa_cli: disconnect, argc: 1
[    946.603] <dbg> wpa_supp: wpa_printf_impl: argv[0]: disconnect
[    946.603] <dbg> wpa_supp: wpa_printf_impl: ml: Control interface command 'DISCONNECT'
[    946.603] <dbg> wpa_supp: wpa_printf_impl: ml: Cancelling scan request
[    946.603] <dbg> wpa_supp: wpa_printf_impl: ml: No ongoing scan/p2p-scan found to abort
[    946.603] <dbg> wpa_supp: wpa_printf_impl: ml: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=de:75:14:c3:fb:73 reason=3 (DEAUTH_LEAVING) state=SCANNING
[    946.603] <dbg> wpa_supp: wpa_printf_impl: ml: State: SCANNING -> DISCONNECTED
Connection request failed (Authentication rejected/5)
[    946.624] <inf> os_wifi: Wifi connection failed, (Status: 5, Raw Status Code: 1, Raw Reason Code: 0)

Impact

False info is getting provided to application layer, better to provide accurate info

Environment

rw610 board android mobile hotspot with wpa3 enabled

Additional Context

I have recently merged this patch in my wifi repo, and issue is reproducible with this https://github.com/zephyrproject-rtos/zephyr/pull/116783#issue-5192337662

Source: zephyrproject-rtos/zephyr