From 65c01646b8ae2438c48fe9cf8e9cfacd8ff2dadc Mon Sep 17 00:00:00 2001
From: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: Thu, 14 Sep 2023 13:48:21 +0200
Subject: [PATCH] FHs set wps_cred_add_sae

---
 src/config.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/config.c b/src/config.c
index ed27ba467..471060873 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1234,7 +1234,17 @@ int uci_apply_m2(struct agent_config *cfg, char *interface_name, char *device,
 						UCI_WLAN_IFACE,	"ifname", interface_name,
 						"wps_pushbutton", "1");
 			}
+
+			if (wifi_get_section_option(UCI_WIRELESS, UCI_WLAN_IFACE,
+							"ifname", interface_name,
+							"wps_cred_add_sae", buf,
+							sizeof(buf))) {
+				uci_set_wireless_interface_option(UCI_WIRELESS,
+						UCI_WLAN_IFACE, "ifname", interface_name,
+						"wps_cred_add_sae", "1");
+			}
 		}
+
 	}
 
 	uci_set_wireless_interface_option(UCI_WIRELESS, UCI_WLAN_IFACE, "ifname",
-- 
GitLab