Skip to content

Commit 3e917d3

Browse files
zhiyong-ftZhiyong Li
andauthored
Added support for WPA3, tested working on ESP32-S2 with AT firmware v3.4.0 and 4.1.0 (#515)
Co-authored-by: Zhiyong Li <[email protected]>
1 parent 57d0692 commit 3e917d3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

connectivity/drivers/wifi/COMPONENT_ESPRESSIF_ESP32/ESP32Interface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ int ESP32Interface::set_credentials(const char *ssid, const char *pass, nsapi_se
163163
case NSAPI_SECURITY_WPA:
164164
case NSAPI_SECURITY_WPA2:
165165
case NSAPI_SECURITY_WPA_WPA2:
166+
case NSAPI_SECURITY_WPA3:
167+
case NSAPI_SECURITY_WPA3_WPA2:
166168
if ((pass_len < 8) || (pass_len > 63)) {
167169
ret = NSAPI_ERROR_PARAMETER;
168170
}

connectivity/drivers/wifi/COMPONENT_ESPRESSIF_ESP32/ESP32InterfaceAP.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ int ESP32InterfaceAP::set_credentials(const char *ssid, const char *pass, nsapi_
135135
case NSAPI_SECURITY_WPA:
136136
case NSAPI_SECURITY_WPA2:
137137
case NSAPI_SECURITY_WPA_WPA2:
138+
case NSAPI_SECURITY_WPA3:
139+
case NSAPI_SECURITY_WPA3_WPA2:
138140
_own_sec = security;
139141
break;
140142
case NSAPI_SECURITY_UNKNOWN:

0 commit comments

Comments
 (0)