WiFi Connect only to WPA2 CCMP (not TKIP)

dsiganos
Posts: 5
Joined: Sat Jun 17, 2017 9:21 pm

WiFi Connect only to WPA2 CCMP (not TKIP)

Postby dsiganos » Thu Jun 29, 2017 6:53 am

Hi,

I would like to setup the ESP32 to be in managed station mode and restrict the wifi connection to only WPA2 AP using the CCMP(AES) cipher. In other words, we do not want to connect to WPA1 and we do not want to connect to TKIP ciphers. Is this possible?

Regards,
Dimitris

Bryght-Richard
Posts: 98
Joined: Thu Feb 22, 2024 3:59 pm

Re: WiFi Connect only to WPA2 CCMP (not TKIP)

Postby Bryght-Richard » Fri Aug 01, 2025 8:40 pm

Answering for posterity's sake.

With WIFI_EVENT_STA_CONNECTED, event data is wifi_event_sta_connected_t, with wifi_auth_mode_t authmode member will tell the security mechanism of access point on connection.

When doing a scan, scan result wifi_ap_record_t has wifi_auth_mode_t authmode to tell the security mechanism of scanned access point.

You can also set a limit using wifi_sta_config_t's wifi_scan_threshold_t threshold's wifi_auth_mode_t authmode. It says this applies to 'fast scan', but not entirely sure what that means. It seems to prevent connection with anything lower than the specified auth strength.

I don't know about CCMP vs TKIP adjustment.

Who is online

Users browsing this forum: Baidu [Spider], YisouSpider and 4 guests