Modified to handle WPA3/WPA2 mixed mode as WPA3-SAE 20/258020/1 submit/tizen/20210512.013459 submit/tizen/20210513.084419
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 7 May 2021 13:39:18 +0000 (22:39 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 7 May 2021 13:39:58 +0000 (22:39 +0900)
Change-Id: Ib9d5240a4673f08f65dd13db3eb59bbb1b4da80d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
gsupplicant/supplicant.c

index 0f01e95..c727c07 100755 (executable)
@@ -3116,6 +3116,10 @@ static void bss_compute_security(struct g_supplicant_bss *bss)
 
        if (bss->ieee8021x)
                bss->security = G_SUPPLICANT_SECURITY_IEEE8021X;
+#if defined TIZEN_EXT
+       else if (bss->sae)
+               bss->security = G_SUPPLICANT_SECURITY_SAE;
+#endif
        else if (bss->psk)
                bss->security = G_SUPPLICANT_SECURITY_PSK;
 #if defined TIZEN_EXT
@@ -3123,8 +3127,6 @@ static void bss_compute_security(struct g_supplicant_bss *bss)
                bss->security = G_SUPPLICANT_SECURITY_FT_PSK;
        else if (bss->ft_ieee8021x == TRUE)
                bss->security = G_SUPPLICANT_SECURITY_IEEE8021X;
-       else if (bss->sae)
-               bss->security = G_SUPPLICANT_SECURITY_SAE;
        else if (bss->owe || bss->owe_transition_mode)
                bss->security = G_SUPPLICANT_SECURITY_OWE;
        else if (bss->dpp)