summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3dad6b6)
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>
Name: capi-network-wifi
Summary: Network Wi-Fi library in TIZEN C API
Name: capi-network-wifi
Summary: Network Wi-Fi library in TIZEN C API
Release: 1
Group: System/Network
License: Apache-2.0
Release: 1
Group: System/Network
License: Apache-2.0
if (ret != WIFI_ERROR_NONE) {
WIFI_LOG(WIFI_ERROR, "Fail to load configurations [%d]", ret); //LCOV_EXCL_LINE
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;
}
config_ids = config_ids->next;
}
config_ids = g_slist_nth(config_ids, 0);
g_slist_free_full(config_ids, g_free);
config_ids = g_slist_nth(config_ids, 0);
g_slist_free_full(config_ids, g_free);
+ return WIFI_ERROR_NONE;
}
EXPORT_API int wifi_config_get_name(wifi_config_h config, char **name)
}
EXPORT_API int wifi_config_get_name(wifi_config_h config, char **name)