diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-03-25 14:04:35 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-03-25 14:04:35 +0100 |
commit | 001e24d0172afe9b8601256795b2728d4a7278fb (patch) | |
tree | 39a6cf17e4747a443011b1c2c8cab019e82315e6 /plugins | |
parent | af9cf6a2b91284ef320b6bb1e0186067ec0370f1 (diff) | |
download | connman-001e24d0172afe9b8601256795b2728d4a7278fb.tar.gz connman-001e24d0172afe9b8601256795b2728d4a7278fb.tar.bz2 connman-001e24d0172afe9b8601256795b2728d4a7278fb.zip |
Trigger supplicant connection when joining hidden networks
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wifi.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 7c30f071..07fd9283 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -137,6 +137,7 @@ static int wifi_join(struct connman_device *device, struct connman_network *network) { const char *ssid; + int err; DBG("device %p", device); @@ -144,7 +145,15 @@ static int wifi_join(struct connman_device *device, DBG("SSID %s", ssid); - return -EIO; + err = supplicant_connect(network); + if (err < 0) + return err; + + connman_network_ref(network); + + connman_device_add_network(device, network); + + return 0; } static struct connman_device_driver wifi_driver = { |