Skip to content
Snippets Groups Projects
Commit 5a1cdcac authored by Anjan Chanda's avatar Anjan Chanda
Browse files

config: use sae-mixed or sae as default security for 'ap'

parent 71019e8f
No related branches found
No related tags found
No related merge requests found
Pipeline #46655 failed
...@@ -745,6 +745,7 @@ static int cntlr_config_get_credentials(struct controller_config *c, ...@@ -745,6 +745,7 @@ static int cntlr_config_get_credentials(struct controller_config *c,
}; };
struct uci_option *tb[NUM_CREDS]; struct uci_option *tb[NUM_CREDS];
struct iface_credential *cred; struct iface_credential *cred;
bool use_default_security = false;
if (c->num_bss >= 32) if (c->num_bss >= 32)
return -1; return -1;
...@@ -802,6 +803,8 @@ static int cntlr_config_get_credentials(struct controller_config *c, ...@@ -802,6 +803,8 @@ static int cntlr_config_get_credentials(struct controller_config *c,
} }
//TODO: ciphers (if any) //TODO: ciphers (if any)
} else {
use_default_security = true;
} }
if (tb[CRED_KEY]) if (tb[CRED_KEY])
...@@ -831,6 +834,12 @@ static int cntlr_config_get_credentials(struct controller_config *c, ...@@ -831,6 +834,12 @@ static int cntlr_config_get_credentials(struct controller_config *c,
cred->mode = AP_WIFI_FBSS; cred->mode = AP_WIFI_FBSS;
} }
if (use_default_security) {
cred->sec |= WIFI_SECURITY_WPA3PSK;
if (!!(cred->multi_ap & 2))
cred->sec |= WIFI_SECURITY_WPA3PSK_T;
}
if (tb[CRED_D_BSTA]) { if (tb[CRED_D_BSTA]) {
struct uci_element *x; struct uci_element *x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment