free(data);
}
+static int wifi_start(struct connman_iface *iface)
+{
+ struct iface_data *data = connman_iface_get_data(iface);
+
+ DBG("iface %p %s", iface, data->ifname);
+
+ __supplicant_start(iface);
+
+ return 0;
+}
+
+static int wifi_stop(struct connman_iface *iface)
+{
+ struct iface_data *data = connman_iface_get_data(iface);
+
+ DBG("iface %p %s", iface, data->ifname);
+
+ __supplicant_stop(iface);
+
+ return 0;
+}
+
static int wifi_scan(struct connman_iface *iface)
{
struct iface_data *data = connman_iface_get_data(iface);
DBG("iface %p %s", iface, data->ifname);
- __supplicant_start(iface);
-
if (data->network != NULL)
__supplicant_connect(iface, data->network, data->passphrase);
if (data->network != NULL)
__supplicant_disconnect(iface);
- __supplicant_stop(iface);
-
return 0;
}
.capability = "net.80211",
.probe = wifi_probe,
.remove = wifi_remove,
+ .start = wifi_start,
+ .stop = wifi_stop,
.scan = wifi_scan,
.connect = wifi_connect,
.disconnect = wifi_disconnect,