summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-02-09 14:33:13 +0900
committerJinWang An <jinwang.an@samsung.com>2021-02-09 14:33:13 +0900
commitd3e65381880b098b701ebbd42753e85c5a75bdd4 (patch)
tree299fea5b0bc800137441bcfba8c40560d3227da0
parentbfdbbfbbad5f59d86e335ae65b26813ca45e833c (diff)
downloadwatch-setting-d3e65381880b098b701ebbd42753e85c5a75bdd4.tar.gz
watch-setting-d3e65381880b098b701ebbd42753e85c5a75bdd4.tar.bz2
watch-setting-d3e65381880b098b701ebbd42753e85c5a75bdd4.zip
Fix to call wifi API after wifi initializationsubmit/tizen/20210209.055904accepted/tizen/unified/20210210.052217
Change-Id: I354746bc414b568906463c41ebe4d45068551872 Signed-off-by: JinWang An <jinwang.an@samsung.com>
-rw-r--r--src/setting-connection.c11
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)