summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-11-29 14:00:52 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2011-11-29 14:00:52 (GMT)
commitec4029b54511a11900807b97f243dcb5c72685ec (patch)
tree0b8d452d9ace03c2231573f5cdbdbdfbc010af04 /gsupplicant
parent1bd1ce5f07f16cb0ffef2aab1dc6732ea9ca9337 (diff)
downloadconnman-ec4029b54511a11900807b97f243dcb5c72685ec.zip
connman-ec4029b54511a11900807b97f243dcb5c72685ec.tar.gz
connman-ec4029b54511a11900807b97f243dcb5c72685ec.tar.bz2
wifi: Set device powered from the interface create callback
As interface_added can potentially show up before the interface creation callback, the device powered flag can be set from the latter.
Diffstat (limited to 'gsupplicant')
-rw-r--r--gsupplicant/gsupplicant.h1
-rw-r--r--gsupplicant/supplicant.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h
index c710679..8e96e02 100644
--- a/gsupplicant/gsupplicant.h
+++ b/gsupplicant/gsupplicant.h
@@ -197,6 +197,7 @@ const void *g_supplicant_interface_get_wps_ssid(GSupplicantInterface *interface,
unsigned int *ssid_len);
GSupplicantWpsState g_supplicant_interface_get_wps_state(GSupplicantInterface *interface);
unsigned int g_supplicant_interface_get_mode(GSupplicantInterface *interface);
+dbus_bool_t g_supplicant_interface_get_ready(GSupplicantInterface *interface);
unsigned int g_supplicant_interface_get_max_scan_ssids(
GSupplicantInterface *interface);
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 1c360fb..b8e939d 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -766,6 +766,14 @@ int g_supplicant_interface_enable_selected_network(GSupplicantInterface *interfa
set_network_enabled, NULL, &enable);
}
+dbus_bool_t g_supplicant_interface_get_ready(GSupplicantInterface *interface)
+{
+ if (interface == NULL)
+ return FALSE;
+
+ return interface->ready;
+}
+
GSupplicantInterface *g_supplicant_network_get_interface(
GSupplicantNetwork *network)
{