diff options
-rw-r--r-- | src/setting-connection.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/setting-connection.c b/src/setting-connection.c index 7a619c8..ddbc321 100644 --- a/src/setting-connection.c +++ b/src/setting-connection.c @@ -683,12 +683,13 @@ Evas_Object *_create_connection_list(void *data) ERR("ERROR NFC register changed cb %d", nfc_ret); int wifi_ret = wifi_manager_initialize(&wifi_handle); - if (wifi_ret != WIFI_MANAGER_ERROR_NONE) + if (wifi_ret == WIFI_MANAGER_ERROR_NONE) { + wifi_ret = wifi_manager_set_device_state_changed_cb(wifi_handle, wifi_status_changed_cb, ad); + if (wifi_ret != WIFI_MANAGER_ERROR_NONE) + ERR("ERROR WIFI set changed cb%d", wifi_ret); + } else { ERR("ERROR WIFI init%d", wifi_ret); - - wifi_ret = wifi_manager_set_device_state_changed_cb(wifi_handle, wifi_status_changed_cb, ad); - if (wifi_ret != WIFI_MANAGER_ERROR_NONE) - ERR("ERROR WIFI set changed cb%d", wifi_ret); + } int location_ret = location_manager_set_setting_changed_cb(LOCATIONS_METHOD_HYBRID, location_status_changed_cb, ad); if (location_ret != LOCATIONS_ERROR_NONE) |