{
int rv;
net_wifi_state_t wlan_state;
- net_profile_name_t profile_name;
- rv = net_get_wifi_state(&wlan_state, &profile_name);
+ rv = net_get_wifi_state(&wlan_state);
if (rv == NET_ERR_ACCESS_DENIED) {
CONNECTION_LOG(CONNECTION_ERROR, "Access denied");
return CONNECTION_ERROR_PERMISSION_DENIED;
{
guint id;
struct managed_idle_data *data;
+ GMainContext *context;
+ GSource *src;
if (!func)
return 0;
data->func = func;
data->user_data = user_data;
- id = g_idle_add_full(G_PRIORITY_DEFAULT_IDLE, __connection_idle_cb, data,
- __connection_idle_destroy_cb);
+ context = g_main_context_get_thread_default();
+ src = g_idle_source_new();
+ g_source_set_callback(src, __connection_idle_cb, data,
+ __connection_idle_destroy_cb);
+ id = g_source_attach(src, context);
+ g_source_unref(src);
if (!id) {
g_free(data);
return id;
if (strcmp(key, ETHERNET_FEATURE) == 0)
value = __libnet_check_feature_supported(key, CONNECTION_SUPPORTED_FEATURE_ETHERNET);
- SECURE_CONNECTION_LOG(CONNECTION_INFO, "%s feature is %s", key, (value ? "true" : "false"));
feature_supported |= value;
key = va_arg(list, const char *);
if (!key) break;