From baa04e5d3a57c03eb3c4ebfd7a17f1486cdca3ad Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 25 Mar 2009 13:46:19 +0100 Subject: [PATCH] Add skeleton for WiFi network joining callback --- plugins/wifi.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/wifi.c b/plugins/wifi.c index a86b00e..7c30f07 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) -- 1.7.9.5