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 Scan WPA2-EAP Authentication reported as WIFI_AUTH_OPEN (IDFGH-9885) #11202

Closed
3 tasks done
aquaticus opened this issue Apr 15, 2023 · 10 comments
Closed
3 tasks done
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@aquaticus
Copy link

aquaticus commented Apr 15, 2023

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • 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.

IDF version.

v5.1-dev-4557-gf404fe96b1

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

Custom Board

Power Supply used.

USB

What is the expected behavior?

When using WPA2-EAP authentication method is used and router enables 802.11w Management Frame Protection, WiFi scan reports network as WIFI_AUTH_WPA2_ENTERPRISE.

After call to esp_wifi_scan_get_ap_records() wifi_auth_mode_t member of wifi_ap_record_t should be set to WIFI_AUTH_WPA2_ENTERPRISE.

What is the actual behavior?

Instead WiFi scan authomode for the network is WIFI_AUTH_OPEN.

After call to esp_wifi_scan_get_ap_records() wifi_auth_mode_t member of wifi_ap_record_t is incorrectly set to WIFI_AUTH_OPEN.

Steps to reproduce.

  1. On router set authentication method to WPA2-EAP
  2. On router set 802.11w Management Frame Protection as Required or Optional
  3. Compile and flash WiFi example scan (https://github.com/espressif/esp-idf/tree/master/examples/wifi/scan)
  4. Check the output of the sample

Debug Logs.

I (3297) scan: SSID             test
I (3297) scan: RSSI             -43
I (3297) scan: Authmode         WIFI_AUTH_OPEN
I (3307) scan: Pairwise Cipher  WIFI_CIPHER_TYPE_CCMP
I (3307) scan: Group Cipher     WIFI_CIPHER_TYPE_CCMP
I (3317) scan: Channel          13

More Information.

The issue was recreated on:

  • IDF v4.4.4
  • IDF v5.0.1
  • IDF latest master

Chips: ESP32 and ESP32-C3

NOTES:

  1. Using WPA3-EAP gives the same results
  2. When WPA2-PSK is used Authmode is reported correctly with 802.11w frame protection
  3. Other WiFi clients e.g. Linux, Windows, phones report auth mode properly for the same network
  4. Test router used: OpenWrt 22.03.3 r20028-43d71ad93e; radio chipset: Qualcomm Atheros QCA9560 802.11bgn

Output from nmcli dev wifi on Linux for the same network (proper WPA2 802.1X)

test                           Infra  13    195 Mbit/s  100     ▂▄▆█  WPA2 802.1X
@aquaticus aquaticus added the Type: Bug bugs in IDF label Apr 15, 2023
@github-actions github-actions bot changed the title WiFi Scan WPA2-EAP Authentication reported as WIFI_AUTH_OPEN WiFi Scan WPA2-EAP Authentication reported as WIFI_AUTH_OPEN (IDFGH-9885) Apr 15, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Apr 15, 2023
@jgujarathi
Copy link
Collaborator

Hi @aquaticus ,
We have tried the mentioned steps with an AP configured similarly as yours and cannot seem to reproduce the same result.
Could you please provide a sniffer capture which include the beacons of the AP you are facing the issue with?

I (3420) scan: SSID jash_wpa2_ent
I (3420) scan: RSSI -25
I (3420) scan: Authmode WIFI_AUTH_WPA2_ENTERPRISE
I (3430) scan: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP
I (3430) scan: Group Cipher WIFI_CIPHER_TYPE_CCMP
I (3440) scan: Channel 11

@aquaticus
Copy link
Author

@jgujarathi Please find attached beacon pcap dump (unzip file).
mng_frame_enabled_beacon.zip

@kapilkedawat
Copy link
Collaborator

@aquaticus thanks for the capture, this will be corrected in next software fix.

@AxelLin
Copy link
Contributor

AxelLin commented Apr 23, 2023

Just want to check if v4.3 branch is impacted by this issue?
I'm wondering if I should wait for this fix for v4.3 branch to build my application firmware.

@kapilkedawat
Copy link
Collaborator

Yes, v4.3 branch is also impacted by this. However its only a display issue and functionality won't change.

@AxelLin
Copy link
Contributor

AxelLin commented Apr 24, 2023

Yes, v4.3 branch is also impacted by this. However its only a display issue and functionality won't change.

Our configure interface does not allow user to set enterprise settings if it was recognized as WIFI_AUTH_OPEN.
So this is not just a display issue, I have to wait for your fix.

@AxelLin
Copy link
Contributor

AxelLin commented May 7, 2023

@jgujarathi @kapilkedawat Any update for the fix?

@AxelLin
Copy link
Contributor

AxelLin commented May 15, 2023

@jgujarathi @kapilkedawat

All stable branches are impacted by this issue.
I cannot workaround the issue since I think the issue is in wifi-lib.
Could you fix it ASAP?

@AxelLin
Copy link
Contributor

AxelLin commented Jun 9, 2023

@aquaticus thanks for the capture, this will be corrected in next software fix.

There are several esp32-wifi-lib and esp-idf (including esp-idf-v4.4.5) updates recently, but still cannot find this fix in any branches.

@AxelLin
Copy link
Contributor

AxelLin commented Jun 30, 2023

@igrr @Alvin1Zhang Can someone help to fix this bug? The bug is in all release branches.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Opened Issue is new labels Jul 3, 2023
espressif-bot pushed a commit to espressif/esp32-wifi-lib that referenced this issue Jul 17, 2023
…9ed1).

  1) Fix issue during split scan to allow for data tx.
  2) Fix issue when parsing wpa_ie to set correct authmode when AP
     supports both WPA_EAP and WPA_EAP_SHA256 authmode.
     Closes espressif/esp-idf#11202
  3) Fix an occasional crash during sta roam.
  4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
     configuration of the time spent between scanning consecutive
     channels for tx.
  5) Adds a obss scan timer disarm when a sta disconnects from an AP
espressif-bot pushed a commit that referenced this issue Jul 19, 2023
1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
   supports both WPA_EAP and WPA_EAP_SHA256 authmode.
   Closes #11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
   configuration of the time spent between scanning consecutive
   channels for tx.
5) Adds a obss scan timer disarm when a sta disconnects from an AP
espressif-bot pushed a commit to espressif/esp32-wifi-lib that referenced this issue Jul 19, 2023
…7176)

1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
supports both WPA_EAP and WPA_EAP_SHA256 authmode.
Closes espressif/esp-idf#11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
configuration of the time spent between scanning consecutive
channels for tx.
5) Adds a obss scan timer disarm when a sta disconnects from an AP
espressif-bot pushed a commit that referenced this issue Jul 20, 2023
1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
supports both WPA_EAP and WPA_EAP_SHA256 authmode.
Closes #11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
configuration of the time spent between scanning consecutive
channels for tx.
5) Adds a obss scan timer disarm when a sta disconnects from an AP
espressif-bot pushed a commit to espressif/esp32-wifi-lib that referenced this issue Jul 20, 2023
…6045)

1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
supports both WPA_EAP and WPA_EAP_SHA256 authmode.
Closes espressif/esp-idf#11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
configuration of the time spent between scanning consecutive
channels for tx.
5) Adds a obss scan timer disarm when a sta disconnects from an AP
espressif-bot pushed a commit that referenced this issue Jul 22, 2023
1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
   supports both WPA_EAP and WPA_EAP_SHA256 authmode.
   Closes #11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
   configuration of the time spent between scanning consecutive
   channels for tx.
espressif-bot pushed a commit that referenced this issue Aug 3, 2023
1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
supports both WPA_EAP and WPA_EAP_SHA256 authmode.
Closes #11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
configuration of the time spent between scanning consecutive
channels for tx.
5) Adds a obss scan timer disarm when a sta disconnects from an AP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

5 participants