Fix build warning 04/152204/1 accepted/tizen/unified/20170927.181305 submit/tizen/20170927.040141
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 25 Sep 2017 08:43:32 +0000 (17:43 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 25 Sep 2017 08:45:32 +0000 (17:45 +0900)
Change-Id: Ice953e12c0feb17adc39837ff732a347d2dd87a2
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
src/libnetwork.c

index 91277c4..b0ce76c 100755 (executable)
@@ -1060,9 +1060,6 @@ int _wifi_libnet_get_hidden_aps(const char* essid,
        for (i = 0; i < profile_iterator.count; i++) {
                net_profile_info_t *ap = &profile_iterator.profiles[i];
                switch (ap->ProfileInfo.Wlan.security_info.sec_mode) {
-               case WLAN_SEC_MODE_NONE:
-                       type = WIFI_SECURITY_TYPE_NONE;
-                       break;
                case WLAN_SEC_MODE_WEP:
                        type = WIFI_SECURITY_TYPE_WEP;
                        break;
@@ -1071,8 +1068,13 @@ int _wifi_libnet_get_hidden_aps(const char* essid,
                        break;
                case WLAN_SEC_MODE_WPA_PSK:
                case WLAN_SEC_MODE_WPA2_PSK:
+               case WLAN_SEC_MODE_WPA_FT_PSK:
                        type = WIFI_SECURITY_TYPE_WPA_PSK;
                        break;
+               case WLAN_SEC_MODE_NONE:
+               default:
+                       type = WIFI_SECURITY_TYPE_NONE;
+                       break;
                }
                if (profile_iterator.profiles[i].ProfileInfo.Wlan.is_hidden == TRUE) {
                        if (type == sec_type) {