#include <connman/iface.h>
#include "net.h"
+#include "supplicant.h"
static int iface_probe(struct connman_iface *iface)
{
printf("[802.11] remove interface index %d\n", iface->index);
__net_clear(iface->index);
+
+ __supplicant_stop(iface);
}
static int iface_activate(struct connman_iface *iface)
{
printf("[802.11] activate interface index %d\n", iface->index);
+ __supplicant_start(iface);
+
connman_iface_update(iface, CONNMAN_IFACE_STATE_ACTIVE);
return 0;
{
printf("[802.11] connect interface index %d\n", iface->index);
+ __supplicant_connect(iface);
+
return 0;
}
libconnman_80203_la_SOURCES = 80203.c net.h net.c
-libconnman_80211_la_SOURCES = 80211.c net.h net.c
+libconnman_80211_la_SOURCES = 80211.c net.h net.c \
+ supplicant.h supplicant.c
libconnman_dhclient_la_SOURCES = dhclient.c net.h net.c
libconnman_dhclient_la_LIBADD = @GDBUS_LIBS@
--- /dev/null
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2007 Intel Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <stdio.h>
+
+#include "supplicant.h"
+
+int __supplicant_start(struct connman_iface *iface)
+{
+ printf("[SUPPLICANT] start for index %d\n", iface->index);
+
+ return 0;
+}
+
+int __supplicant_stop(struct connman_iface *iface)
+{
+ printf("[SUPPLICANT] stop for index %d\n", iface->index);
+
+ return 0;
+}
+
+int __supplicant_connect(struct connman_iface *iface)
+{
+ printf("[SUPPLICANT] connect for index %d\n", iface->index);
+
+ return 0;
+}
--- /dev/null
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2007 Intel Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#include <connman/iface.h>
+
+int __supplicant_start(struct connman_iface *iface);
+int __supplicant_stop(struct connman_iface *iface);
+
+int __supplicant_connect(struct connman_iface *iface);