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 bdea2a8590c0015ba78edf788b289493165d0579..6aa6a4e7f10c034536a912fde440e9e80788ace2 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 a949a551160f042e7830acaf531f9ba92944f913..b4c0917d54fc4b7eabfbefd72d54ae9f96b0d8f2 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 02742923cc8586848787e62fbf7471b53f5d2089..af219aca93b3fb30b6cc50cbdd4a6f55aaa31b28 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;
+}