From 0bcc3ae08d919aa55cf09fcbdbcf027d8f7c207f Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 25 Sep 2017 17:43:32 +0900 Subject: [PATCH] Fix build warning Change-Id: Ice953e12c0feb17adc39837ff732a347d2dd87a2 Signed-off-by: Seonah Moon --- src/libnetwork.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libnetwork.c b/src/libnetwork.c index 91277c4..b0ce76c 100755 --- a/src/libnetwork.c +++ b/src/libnetwork.c @@ -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) { -- 2.7.4