X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmh_main_ug.c;h=bc48a7ec30aae8710b42dc056cece90ce0bb251c;hb=ac1650f54297391ee9dc5ab831f425123b63e909;hp=02f0206cb53e43a5e4c99caea140f15e3d3f7ad5;hpb=38b6e82ca5ea06bd78a5f814e630b2c2826e30c0;p=apps%2Fnative%2Fug-mobile-ap.git diff --git a/src/mh_main_ug.c b/src/mh_main_ug.c index 02f0206..bc48a7e 100755 --- a/src/mh_main_ug.c +++ b/src/mh_main_ug.c @@ -56,11 +56,6 @@ static void __set_callbacks(tethering_h handle, void *user_data) if (ret != TETHERING_ERROR_NONE) ERR("tethering_set_enabled_cb [0x%X]\n", ret); - ret = tethering_set_enabled_cb(handle, TETHERING_TYPE_RESERVED, - _enabled_cb, user_data); - if (ret != TETHERING_ERROR_NONE) - ERR("tethering_set_enabled_cb [0x%X]\n", ret); - ret = tethering_wifi_set_passphrase_changed_cb(handle, _passphrase_changed_cb, user_data); if (ret != TETHERING_ERROR_NONE) @@ -81,11 +76,6 @@ static void __set_callbacks(tethering_h handle, void *user_data) if (ret != TETHERING_ERROR_NONE) ERR("tethering_set_disabled_cb [0x%X]\n", ret); - ret = tethering_set_disabled_cb(handle, TETHERING_TYPE_RESERVED, - _disabled_cb, user_data); - if (ret != TETHERING_ERROR_NONE) - ERR("tethering_set_disabled_cb [0x%X]\n", ret); - ret = tethering_set_connection_state_changed_cb(handle, TETHERING_TYPE_ALL, _connection_changed_cb, user_data); @@ -125,10 +115,6 @@ static void __unset_callbacks(tethering_h handle) if (ret != TETHERING_ERROR_NONE) ERR("tethering_unset_connection_state_changed_cb[0x%X]\n", ret); - ret = tethering_unset_disabled_cb(handle, TETHERING_TYPE_RESERVED); - if (ret != TETHERING_ERROR_NONE) - ERR("tethering_unset_disabled_cb [0x%X]\n", ret); - ret = tethering_unset_disabled_cb(handle, TETHERING_TYPE_ALL); if (ret != TETHERING_ERROR_NONE) ERR("tethering_unset_disabled_cb [0x%X]\n", ret); @@ -145,10 +131,6 @@ static void __unset_callbacks(tethering_h handle) if (ret != TETHERING_ERROR_NONE) ERR("tethering_wifi_unset_passphrase_changed_cb [0x%X]\n", ret); - ret = tethering_unset_enabled_cb(handle, TETHERING_TYPE_RESERVED); - if (ret != TETHERING_ERROR_NONE) - ERR("tethering_unset_enabled [0x%X]\n", ret); - ret = tethering_unset_enabled_cb(handle, TETHERING_TYPE_ALL); if (ret != TETHERING_ERROR_NONE) ERR("tethering_unset_enabled [0x%X]\n", ret); @@ -283,12 +265,6 @@ static void on_start(ui_gadget_h ug, app_control_h app_control, void *priv) } } - if (tethering_is_enabled(NULL, TETHERING_TYPE_RESERVED) == true) { - DBG("MobileAP is turned on\n"); - _prepare_popup(MH_POPUP_WIFI_AP_OFF, STR_WIFI_AP_CONTROLLED_ANOTHER_APP); - _create_popup(ad); - } - app_control_get_extra_data(app_control, "viewtype", &viewtype); if (viewtype != NULL) {