Skip to content
Snippets Groups Projects
Commit 0e9e973b authored by Anjan Chanda's avatar Anjan Chanda Committed by Jakob Olsson
Browse files

support SAE and WPA3-Transition encryption for AP-autoconfig

parent dff45b7d
No related branches found
No related tags found
No related merge requests found
Pipeline #26695 failed
...@@ -67,7 +67,11 @@ uint16_t wifi_sec_to_auth_types(enum wifi_security sec) ...@@ -67,7 +67,11 @@ uint16_t wifi_sec_to_auth_types(enum wifi_security sec)
auth_type |= WPS_AUTH_WPA2; auth_type |= WPS_AUTH_WPA2;
} }
} else if (sec >= WIFI_SECURITY_WPAPSK) { } else if (sec >= WIFI_SECURITY_WPAPSK) {
if (sec == WIFI_SECURITY_WPA2PSK) { if (sec == WIFI_SECURITY_WPA3PSK) {
auth_type = WPS_AUTH_SAE;
} else if (sec == WIFI_SECURITY_WPA3PSK_T) {
auth_type = WPS_AUTH_WPA3_T;
} else if (sec == WIFI_SECURITY_WPA2PSK) {
auth_type = WPS_AUTH_WPA2PSK; auth_type = WPS_AUTH_WPA2PSK;
} else if (sec == WIFI_SECURITY_WPAPSK) { } else if (sec == WIFI_SECURITY_WPAPSK) {
auth_type = WPS_AUTH_WPAPSK; auth_type = WPS_AUTH_WPAPSK;
......
...@@ -541,7 +541,12 @@ static int cntlr_config_get_credentials(struct controller_config *c, ...@@ -541,7 +541,12 @@ static int cntlr_config_get_credentials(struct controller_config *c,
if (tb[CRED_SEC]) { if (tb[CRED_SEC]) {
const char *sec = tb[CRED_SEC]->v.string; const char *sec = tb[CRED_SEC]->v.string;
if (!strncmp(sec, "psk-mixed", 9)) { if (!strncmp(sec, "sae-mixed", 9)) {
cred->sec |= WIFI_SECURITY_WPA3PSK;
cred->sec |= WIFI_SECURITY_WPA3PSK_T;
} else if (!strncmp(sec, "sae", 3)) {
cred->sec |= WIFI_SECURITY_WPA3PSK;
} else if (!strncmp(sec, "psk-mixed", 9)) {
cred->sec |= WIFI_SECURITY_WPAPSK; cred->sec |= WIFI_SECURITY_WPAPSK;
cred->sec |= WIFI_SECURITY_WPA2PSK; cred->sec |= WIFI_SECURITY_WPA2PSK;
} else if (!strncmp(sec, "psk2", 4)) { } else if (!strncmp(sec, "psk2", 4)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment