Change WPA security type for hidden AP 46/247746/1
authorhyunuk.tak <hyunuk.tak@samsung.com>
Tue, 27 Oct 2020 07:01:43 +0000 (16:01 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 16 Nov 2020 05:25:51 +0000 (14:25 +0900)
Change-Id: Idbcfcbc45483c3e262bb96890090d1de1b6cc443

src/wifi_internal.c

index 871f1e34986b344c47dc27a2bfe02ea5aeef05a0..ddc70dd6342c13d0f4f17627885814c61977a54f 100755 (executable)
@@ -2032,6 +2032,10 @@ int _wifi_get_hidden_aps(wifi_manager_h wifi, const char *essid,
                return WIFI_MANAGER_ERROR_NONE; //LCOV_EXCL_LINE
        }
 
+       if (sec_type == WIFI_MANAGER_SECURITY_TYPE_WPA2_PSK ||
+               sec_type == WIFI_MANAGER_SECURITY_TYPE_WPA_FT_PSK)
+               sec_type = WIFI_MANAGER_SECURITY_TYPE_WPA_PSK;
+
        for (list = wifi_handle->profile_iterator; list; list = list->next) {
                net_profile_info_s *prof_info = (net_profile_info_s *)list->data;
                switch (prof_info->security_info.sec_mode) {