Modify to load configurations 12/90912/2 accepted/tizen/3.0/common/20161114.105354 accepted/tizen/3.0/ivi/20161011.070353 accepted/tizen/3.0/mobile/20161015.034437 accepted/tizen/3.0/tv/20161016.010107 accepted/tizen/3.0/wearable/20161015.084507 accepted/tizen/common/20161005.165329 accepted/tizen/common/20161006.153620 accepted/tizen/ivi/20161005.231946 accepted/tizen/ivi/20161006.080218 accepted/tizen/mobile/20161005.231903 accepted/tizen/mobile/20161006.080116 accepted/tizen/tv/20161005.231915 accepted/tizen/tv/20161006.080144 accepted/tizen/wearable/20161005.231934 accepted/tizen/wearable/20161006.080200 submit/tizen/20161005.051812 submit/tizen/20161006.010203 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000008 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006
authorhyunuktak <hyunuk.tak@samsung.com>
Wed, 5 Oct 2016 02:30:56 +0000 (11:30 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Wed, 5 Oct 2016 04:37:38 +0000 (13:37 +0900)
When there is configuration ID without settings file,
it is not error, just no profile.

Change-Id: Id2767c5d436ddef95d1f65697ca9814c715fc7e1
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/capi-network-wifi.spec
src/net_wifi_config.c

index 9005f0e..6dac075 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-wifi
 Summary:       Network Wi-Fi library in TIZEN C API
-Version:       1.0.81
+Version:       1.0.82
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index d25e499..20c80c4 100755 (executable)
@@ -302,28 +302,27 @@ EXPORT_API int wifi_config_foreach_configuration(wifi_config_list_cb callback, v
 
                if (ret != WIFI_ERROR_NONE) {
                        WIFI_LOG(WIFI_ERROR, "Fail to load configurations [%d]", ret); //LCOV_EXCL_LINE
-                       return ret; //LCOV_EXCL_LINE
-               }
+               } else {
+                       h->address_family = WIFI_ADDRESS_FAMILY_IPV4;
+                       h->is_saved = TRUE;
+                       rv = callback((wifi_config_h)h, user_data);
+                       g_free(h->name);
+                       g_free(h->proxy_address);
+                       if (h->eap_config) {
+                               g_free(h->eap_config->ca_cert);
+                               g_free(h->eap_config->client_cert);
+                               g_free(h->eap_config->private_key);
+                               g_free(h->eap_config->anonymous_identity);
+                               g_free(h->eap_config->identity);
+                               g_free(h->eap_config->subject_match);
+                               g_free(h->eap_config);
+                       }
+                       g_free(h);
+                       h = NULL;
 
-               h->address_family = WIFI_ADDRESS_FAMILY_IPV4;
-               h->is_saved = TRUE;
-               rv = callback((wifi_config_h)h, user_data);
-               g_free(h->name);
-               g_free(h->proxy_address);
-               if (h->eap_config) {
-                       g_free(h->eap_config->ca_cert);
-                       g_free(h->eap_config->client_cert);
-                       g_free(h->eap_config->private_key);
-                       g_free(h->eap_config->anonymous_identity);
-                       g_free(h->eap_config->identity);
-                       g_free(h->eap_config->subject_match);
-                       g_free(h->eap_config);
+                       if (rv == false)
+                               break;
                }
-               g_free(h);
-               h = NULL;
-
-               if (rv == false)
-                       break;
 
                config_ids = config_ids->next;
        }
@@ -331,7 +330,7 @@ EXPORT_API int wifi_config_foreach_configuration(wifi_config_list_cb callback, v
        config_ids = g_slist_nth(config_ids, 0);
        g_slist_free_full(config_ids, g_free);
 
-       return ret;
+       return WIFI_ERROR_NONE;
 }
 
 EXPORT_API int wifi_config_get_name(wifi_config_h config, char **name)