From a822c8d387cea4b6d8bc51d227a8b7853cc2b617 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 28 Mar 2009 14:07:45 -0700 Subject: [PATCH 1/1] Add skeleton for WiFi scanning tool --- .gitignore | 1 + Makefile.am | 3 ++- tools/Makefile.am | 8 ++++++++ tools/wifi-scan.c | 29 +++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 tools/wifi-scan.c diff --git a/.gitignore b/.gitignore index bdea2a8..6aa6a4e 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ scripts/connman scripts/udhcpc-script scripts/dhclient-script client/cm +tools/wifi-scan doc/*.bak doc/*.stamp doc/connman.* diff --git a/Makefile.am b/Makefile.am index a949a55..b4c0917 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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) diff --git a/tools/Makefile.am b/tools/Makefile.am index 0274292..af219ac 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -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 index 0000000..6f110c1 --- /dev/null +++ b/tools/wifi-scan.c @@ -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 +#endif + +int main(int argc, char *argv[]) +{ + return 0; +} -- 1.7.9.5