From 52754758d24a9832c06d8ce55cc51e4abdae4e5f Mon Sep 17 00:00:00 2001
From: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: Thu, 24 Aug 2023 10:18:23 +0200
Subject: [PATCH] config: use none encryption if not specified in ap section

---
 src/config.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/config.c b/src/config.c
index b70c8064..4cdecc83 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1163,11 +1163,8 @@ static int cntlr_config_get_credentials(struct controller_config *c,
 		cred->mode = AP_WIFI_FBSS;
 	}
 
-	if (use_default_security) {
-		cred->sec |= BIT(WIFI_SECURITY_WPA3PSK);
-		if (!!(cred->multi_ap & 2))
-			cred->sec |= BIT(WIFI_SECURITY_WPA3PSK_T);
-	}
+	if (use_default_security)
+		cred->sec |= BIT(WIFI_SECURITY_NONE);
 
 	if (tb[CRED_D_BSTA]) {
 		struct uci_element *x;
-- 
GitLab