static void __wifi_enabled_cfm_cb(GObject *source_object, GAsyncResult *res,
gpointer user_data)
{
- DBG("+\n");
+ INFO("+\n");
_retm_if(user_data == NULL, "parameter(user_data) is NULL\n");
GError *g_error = NULL;
}
retry = 0;
+ INFO("cfm event : wifi tethering enable info : %d\n", error);
+
sigs[E_SIGNAL_WIFI_TETHER_ON].sig_id = g_dbus_connection_signal_subscribe(th->client_bus,
NULL, TETHERING_SERVICE_INTERFACE, sigs[E_SIGNAL_WIFI_TETHER_ON].name,
TETHERING_SERVICE_OBJECT_PATH, NULL, G_DBUS_SIGNAL_FLAGS_NONE,
sigs[E_SIGNAL_WIFI_TETHER_ON].cb, (gpointer)th, NULL);
if (!ecb) {
- DBG("-\n");
+ INFO("-\n");
return;
}
ecb(error, TETHERING_TYPE_WIFI, true, data);
g_variant_unref(g_var);
- DBG("-\n");
+ INFO("-\n");
}
static void __bt_enabled_cfm_cb(GObject *source_object, GAsyncResult *res,
static void __disabled_cfm_cb(GObject *source_object, GAsyncResult *res,
gpointer user_data)
{
- DBG("+\n");
+ INFO("+\n");
_retm_if(user_data == NULL, "parameter(user_data) is NULL\n");
GError *g_error = NULL;
//LCOV_EXCL_STOP
}
g_variant_get(g_var, "(uu)", &event_type, &info);
- DBG("cfm event : %d info : %d\n", event_type, info);
+ INFO("cfm event : %d info : %d\n", event_type, info);
g_variant_unref(g_var);
error = __get_error(info);
- DBG("cfm event : %d info : %d\n", event_type, error);
+ INFO("cfm event : %d info : %d\n", event_type, error);
switch (event_type) {
case MOBILE_AP_DISABLE_WIFI_TETHERING_CFM:
sigs[E_SIGNAL_WIFI_TETHER_OFF].sig_id = g_dbus_connection_signal_subscribe(th->client_bus,
ERR("Invalid event\n");
break;
}
- DBG("-\n");
+ INFO("-\n");
}
static void __get_data_usage_cb(GObject *source_object, GAsyncResult *res,
static int __prepare_wifi_settings(tethering_h tethering, _softap_settings_t *set)
{
- DBG("+\n");
+ INFO("+\n");
__tethering_h *th = (__tethering_h *)tethering;
tethering_error_e ret = TETHERING_ERROR_NONE;
g_strlcpy(set->key, passphrase, sizeof(set->key));
}
- DBG("-\n");
+
+ INFO("ssid: %s security: %d mode: %s channel: %d visibility: %s\n",
+ set->ssid, set->sec_type, set->mode, set->channel,
+ (set->visibility)?"true":"false");
+ INFO("-\n");
return TETHERING_ERROR_NONE;
}
/* data network through cellular */
vconf_get_int(VCONFKEY_NETWORK_CELLULAR_STATE, &cellular_state);
if (cellular_state == VCONFKEY_NETWORK_CELLULAR_ON) {
- ERR("Data Network can be connected later");
+ INFO("Data Network can be connected later");
return TRUE;
}
/* data network through ethernet */
vconf_get_int(VCONFKEY_NETWORK_STATUS, &dnet_state);
if (dnet_state == VCONFKEY_NETWORK_ETHERNET) {
- ERR("Data Network is connected");
+ INFO("Data Network is connected");
return TRUE;
}
#else
vconf_get_int(VCONFKEY_DNET_STATE, &dnet_state);
if (dnet_state > VCONFKEY_DNET_OFF) {
- ERR("Data Network is connected");
+ INFO("Data Network is connected");
return TRUE;
}
#endif/*TIZEN_TV_EXT*/
if (type != TETHERING_TYPE_WIFI) {
vconf_get_int(VCONFKEY_WIFI_STATE, &wifi_state);
if (wifi_state > VCONFKEY_WIFI_UNCONNECTED) {
- ERR("Wi-Fi is connected!");
+ INFO("Wi-Fi is connected!");
return TRUE;
}
}
CHECK_FEATURE_SUPPORTED(TETHERING_FEATURE);
_retvm_if(tethering == NULL, TETHERING_ERROR_INVALID_PARAMETER,
"parameter(tethering) is NULL\n");
- DBG("+\n");
+ INFO("+\n");
__tethering_h *th = NULL;
GError *error = NULL;
__connect_signals((tethering_h)th);
*tethering = (tethering_h)th;
- DBG("Tethering Handle : 0x%X\n", th);
- DBG("-\n");
+ INFO("Tethering Handle : 0x%X\n", th);
+ INFO("-\n");
return TETHERING_ERROR_NONE;
}
*/
API int tethering_destroy(tethering_h tethering)
{
- DBG("+\n");
+ INFO("+\n");
CHECK_FEATURE_SUPPORTED(TETHERING_FEATURE);
_retvm_if(tethering == NULL, TETHERING_ERROR_INVALID_PARAMETER,
"parameter(tethering) is NULL\n");
GVariant *result = NULL;
__tethering_h *th = (__tethering_h *)tethering;
- DBG("Tethering Handle : 0x%X\n", th);
+ INFO("Tethering Handle : 0x%X\n", th);
if (th->change_mac) {
result = g_dbus_proxy_call_sync(th->client_bus_proxy, "reset_mac", NULL,
memset(th, 0x00, sizeof(__tethering_h));
free(th);
- DBG("-\n");
+ INFO("-\n");
return TETHERING_ERROR_NONE;
}
*/
API int tethering_enable(tethering_h tethering, tethering_type_e type)
{
- DBG("+ type : %d\n", type);
+ INFO("+ type : %d\n", type);
CHECK_FEATURE_SUPPORTED(TETHERING_FEATURE);
if (type == TETHERING_TYPE_USB) CHECK_FEATURE_SUPPORTED(TETHERING_USB_FEATURE);
else if (type == TETHERING_TYPE_WIFI) CHECK_FEATURE_SUPPORTED(TETHERING_WIFI_FEATURE);
if (__check_precondition(type) == FALSE) {
//LCOV_EXCL_START
- DBG("-\n");
+ INFO("-\n");
return TETHERING_ERROR_OPERATION_FAILED;
//LCOV_EXCL_STOP
}
}
g_dbus_proxy_set_default_timeout(proxy, DBUS_TIMEOUT_USE_DEFAULT);
- DBG("-\n");
+ INFO("-\n");
return TETHERING_ERROR_NONE;
}
*/
API int tethering_disable(tethering_h tethering, tethering_type_e type)
{
- DBG("+ type : %d\n", type);
+ INFO("+ type : %d\n", type);
CHECK_FEATURE_SUPPORTED(TETHERING_FEATURE);
if (type == TETHERING_TYPE_USB) CHECK_FEATURE_SUPPORTED(TETHERING_USB_FEATURE);
else if (type == TETHERING_TYPE_WIFI) CHECK_FEATURE_SUPPORTED(TETHERING_WIFI_FEATURE);
DBG("-\n");
return TETHERING_ERROR_INVALID_PARAMETER;
}
- DBG("-\n");
+ INFO("-\n");
return TETHERING_ERROR_NONE;
}
*/
API bool tethering_is_enabled(tethering_h tethering, tethering_type_e type)
{
+ INFO("+ type : %d\n", type);
int is_on = 0;
int vconf_type = VCONFKEY_MOBILE_HOTSPOT_MODE_NONE;
ERR("Not supported type : %d\n", type);
break;
}
+ INFO("- enabled: %s\n",(is_on & vconf_type)? "true" : "false");
return is_on & vconf_type ? true : false;
}
*/
API int tethering_set_enabled_cb(tethering_h tethering, tethering_type_e type, tethering_enabled_cb callback, void *user_data)
{
+ INFO("+ type: %d\n", type);
CHECK_FEATURE_SUPPORTED(TETHERING_FEATURE);
if (type == TETHERING_TYPE_USB) CHECK_FEATURE_SUPPORTED(TETHERING_USB_FEATURE);
else if (type == TETHERING_TYPE_WIFI) CHECK_FEATURE_SUPPORTED(TETHERING_WIFI_FEATURE);
th->enabled_user_data[ti] = user_data;
}
+ INFO("-\n");
return TETHERING_ERROR_NONE;
}
*/
API int tethering_set_disabled_cb(tethering_h tethering, tethering_type_e type, tethering_disabled_cb callback, void *user_data)
{
+ INFO("+ type: %d\n", type);
CHECK_FEATURE_SUPPORTED(TETHERING_FEATURE);
if (type == TETHERING_TYPE_USB) CHECK_FEATURE_SUPPORTED(TETHERING_USB_FEATURE);
else if (type == TETHERING_TYPE_WIFI) CHECK_FEATURE_SUPPORTED(TETHERING_WIFI_FEATURE);
th->disabled_cb[ti] = callback;
th->disabled_user_data[ti] = user_data;
}
-
+ INFO("-\n");
return TETHERING_ERROR_NONE;
}
*/
API int tethering_set_connection_state_changed_cb(tethering_h tethering, tethering_type_e type, tethering_connection_state_changed_cb callback, void *user_data)
{
+ INFO("+ type: %d\n", type);
CHECK_FEATURE_SUPPORTED(TETHERING_FEATURE);
if (type == TETHERING_TYPE_USB) CHECK_FEATURE_SUPPORTED(TETHERING_USB_FEATURE);
else if (type == TETHERING_TYPE_WIFI) CHECK_FEATURE_SUPPORTED(TETHERING_WIFI_FEATURE);
th->changed_cb[ti] = callback;
th->changed_user_data[ti] = user_data;
}
-
+ INFO("-\n");
return TETHERING_ERROR_NONE;
}