added sae security for wpa3 13/241113/2
authorRahul Jain <rahul.jain@samsung.com>
Sat, 15 Aug 2020 09:05:24 +0000 (14:35 +0530)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 20 Aug 2021 07:24:02 +0000 (07:24 +0000)
Change-Id: I09beb829bb4dde5cee7a31d28354e22de9a52226

src/wifi-config.c

index 477463d33571a862524b45e3627e4ec5ff988ffa..acf7bf13dafa38f4161651c31ccac59fd89828e1 100755 (executable)
@@ -45,6 +45,7 @@
 #define WIFI_SECURITY_WEP              "wep"
 #define WIFI_SECURITY_WPA_PSK  "psk"
 #define WIFI_SECURITY_EAP              "ieee8021x"
+#define WIFI_SECURITY_SAE              "sae"
 
 #define WIFI_CONFIG_PREFIX      "wifi_"
 #define MAC_ADDRESS_LENGTH             12
@@ -232,6 +233,8 @@ static gboolean __get_security_type(const gchar *config_id, gchar **type)
                *type = g_strdup(WIFI_SECURITY_WPA_PSK);
        } else if (g_str_has_suffix(config_id, WIFI_SECURITY_EAP) == TRUE) {
                *type = g_strdup(WIFI_SECURITY_EAP);
+       } else if (g_str_has_suffix(config_id, WIFI_SECURITY_SAE) == TRUE) {
+               *type = g_strdup(WIFI_SECURITY_SAE);
        } else {
                *type = NULL;
                return FALSE;