diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-03-25 13:46:19 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-03-25 13:46:19 +0100 |
commit | baa04e5d3a57c03eb3c4ebfd7a17f1486cdca3ad (patch) | |
tree | 3a53ba18fc9dd2f58fe9f555cdd15ea325caf3a7 /plugins | |
parent | 934cf07c50b1129c1e2e6354b28ca4ecbf5440d9 (diff) | |
download | connman-baa04e5d3a57c03eb3c4ebfd7a17f1486cdca3ad.tar.gz connman-baa04e5d3a57c03eb3c4ebfd7a17f1486cdca3ad.tar.bz2 connman-baa04e5d3a57c03eb3c4ebfd7a17f1486cdca3ad.zip |
Add skeleton for WiFi network joining callback
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wifi.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index a86b00ee..7c30f071 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -133,6 +133,20 @@ static int wifi_scan(struct connman_device *device) return supplicant_scan(device); } +static int wifi_join(struct connman_device *device, + struct connman_network *network) +{ + const char *ssid; + + DBG("device %p", device); + + ssid = connman_network_get_string(network, "WiFi.SSID"); + + DBG("SSID %s", ssid); + + return -EIO; +} + static struct connman_device_driver wifi_driver = { .name = "wifi", .type = CONNMAN_DEVICE_TYPE_WIFI, @@ -141,6 +155,7 @@ static struct connman_device_driver wifi_driver = { .enable = wifi_enable, .disable = wifi_disable, .scan = wifi_scan, + .join = wifi_join, }; static void wifi_register(void) |