Add skeleton for WiFi scanning tool
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Mar 2009 21:07:45 +0000 (14:07 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Mar 2009 21:07:45 +0000 (14:07 -0700)
.gitignore
Makefile.am
tools/Makefile.am
tools/wifi-scan.c [new file with mode: 0644]

index bdea2a8..6aa6a4e 100644 (file)
@@ -37,6 +37,7 @@ scripts/connman
 scripts/udhcpc-script
 scripts/dhclient-script
 client/cm
+tools/wifi-scan
 doc/*.bak
 doc/*.stamp
 doc/connman.*
index a949a55..b4c0917 100644 (file)
@@ -18,7 +18,8 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
                                --enable-novatel \
                                --enable-huawei \
                                --enable-hso \
-                               --enable-client
+                               --enable-client \
+                               --enable-tools
 
 DISTCLEANFILES = $(pkgconfig_DATA)
 
index 0274292..af219ac 100644 (file)
@@ -1,2 +1,10 @@
 
+if TOOLS
+noinst_PROGRAMS = wifi-scan
+
+wifi_scan_LDADD = @GLIB_LIBS@ @NETLINK_LIBS@
+endif
+
+AM_CFLAGS = @NETLINK_CFLAGS@ @GLIB_CFLAGS@
+
 MAINTAINERCLEANFILES = Makefile.in
diff --git a/tools/wifi-scan.c b/tools/wifi-scan.c
new file mode 100644 (file)
index 0000000..6f110c1
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ *
+ *  Connection Manager
+ *
+ *  Copyright (C) 2007-2009  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
+
+int main(int argc, char *argv[])
+{
+       return 0;
+}