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

Wifi authmode irregularities #8420

Closed
bill88t opened this issue Sep 21, 2023 · 5 comments
Closed

Wifi authmode irregularities #8420

bill88t opened this issue Sep 21, 2023 · 5 comments
Labels
bug espressif applies to multiple Espressif chips
Milestone

Comments

@bill88t
Copy link

bill88t commented Sep 21, 2023

CircuitPython version

Latest master, current commit e39fbf1b26b4fd3b66313e51ccc3db0eba7bd58a
Discovered on s3 while testing idf5, also exhibited on regular esp32.

Code/REPL

import wifi
a = wifi.radio.start_scanning_networks()
for i in a:
    print(i.ssid)
    print(i.authmode)
a = wifi.radio.stop_scanning_networks()

Behavior

Something is wrong with authmodes, and it's consistent.

main:

WIND_2.4G_422DEA
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
COSMOTE-478503
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
Rock4CPlus
[wifi.AuthMode.WPA, wifi.AuthMode.PSK]
KeyFalse
[wifi.AuthMode.OPEN]
Forthnet-5DbGR_EXT
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
VODAFONE_WIFI_108-07306
[wifi.AuthMode.WPA, wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
COSMOTE-cg29sh
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
WIND_2.4G_650701
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
Feline34
[wifi.AuthMode.WPA, wifi.AuthMode.WPA2, wifi.AuthMode.PSK]

8.2.6:

Rock4CPlus
[wifi.AuthMode.WPA, wifi.AuthMode.PSK]
KeyFalse
[wifi.AuthMode.WPA, wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
Forthnet-5DbGR_EXT
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
Forthnet-AKzTk
[wifi.AuthMode.WPA, wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
COSMOTE-04829C
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
COSMOTE-cg29sh
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
Feline34
[wifi.AuthMode.WPA, wifi.AuthMode.WPA2, wifi.AuthMode.PSK]
WIND_2.4G_650701
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]

Description

This also prevents connections to those networks that are reported incorrectly.
Sometimes the networks are reported to not be found, and sometimes unknown failure 15.

Additional information

No response

@bill88t bill88t added the bug label Sep 21, 2023
@bill88t bill88t changed the title Wifi authmodes irregularities Wifi authmode irregularities Sep 21, 2023
@tannewt tannewt added the espressif applies to multiple Espressif chips label Sep 21, 2023
@tannewt
Copy link
Member

tannewt commented Sep 21, 2023

Is the 8.2.6 output correct?

@tannewt tannewt added this to the Long term milestone Sep 21, 2023
@bill88t
Copy link
Author

bill88t commented Nov 2, 2023

Is the 8.2.6 output correct?

From a small amount of testing yes. I did not test 8.x in many places.
The number and authmodes of nearby networks affects it.

This is an upstream bug, I filed a bug.
espressif/esp-idf#12517

@bill88t
Copy link
Author

bill88t commented Nov 6, 2023

This bug has been confirmed in:

  • CiruitPython
  • Arduino beta esp plugin 3.0.0-alpha2
  • ESP-IDF wifi example scan

On all esp32 chip variants.
If we are to ship idf5, we need to disable all authmode checks. esp does no authmode checks in circuitpython code huh? Then idf is maybe at fault again?

@bill88t
Copy link
Author

bill88t commented Jan 31, 2024

This issue has been fixed upstream with espressif/esp-idf@615d928.
Did confirm with C6 and idf/examples.

Once we upgrade esp-idf in CP, this will be fixed.
Do note however, some more authmode changes have been made since last update.

@bill88t
Copy link
Author

bill88t commented Apr 14, 2024

This has been fixed. Closing.

@bill88t bill88t closed this as completed Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug espressif applies to multiple Espressif chips
Projects
None yet
Development

No branches or pull requests

2 participants