hal ChangeLog,1.143,1.144 configure.in,1.21,1.22

Joe Shaw joe at pdx.freedesktop.org
Wed May 26 12:54:47 PDT 2004


Update of /cvs/hal/hal
In directory pdx:/tmp/cvs-serv18904

Modified Files:
	ChangeLog configure.in 
Log Message:
2004-05-26  Joe Shaw  <joeshaw at novell.com>

	* configure.in: Add --enable-iwlib, and check for it so we can
	build the wireless functionality.

	* hald/linux/net_class_device.c: Add wireless network support.
	Adds a bunch of properties for the current state of things, as
	well as scanning for networks.
	(open_wireless_sysfs_subdir): Open the sysfs "wireless" path and
	read in a bunch of properties.
	(get_wireless_properties): Use the iwlib API to extract a bunch of
	additional properties, like the protocol, frequency, crypto key,
	ESSID, mode (ad-hoc, managed, etc), access point mac address.
	Also start scanning for other available access points.
	(read_scanning_results, parse_scanning_token, aps_to_properties):
	helper functions to read in the scanning data and expose as
	properties the list of networks (not access points!) available.
	(net_class_pre_process): Call get_wireless_properties().
	(net_class_tick): Added.  Gets wireless properties every 5 ticks.
	(net_class_handler): Call net_class_tick() instead of
	class_device_tick().

Index: ChangeLog
===================================================================
RCS file: /cvs/hal/hal/ChangeLog,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- a/ChangeLog	25 May 2004 20:09:29 -0000	1.143
+++ b/ChangeLog	26 May 2004 19:54:45 -0000	1.144
@@ -1,4 +1,26 @@
-2004-05-25  Joe Shaw <joeshaw at novell.com>
+2004-05-26  Joe Shaw  <joeshaw at novell.com>
+
+	* configure.in: Add --enable-iwlib, and check for it so we can
+	build the wireless functionality.
+
+	* hald/linux/net_class_device.c: Add wireless network support.
+	Adds a bunch of properties for the current state of things, as
+	well as scanning for networks.
+	(open_wireless_sysfs_subdir): Open the sysfs "wireless" path and
+	read in a bunch of properties.
+	(get_wireless_properties): Use the iwlib API to extract a bunch of
+	additional properties, like the protocol, frequency, crypto key,
+	ESSID, mode (ad-hoc, managed, etc), access point mac address.
+	Also start scanning for other available access points.
+	(read_scanning_results, parse_scanning_token, aps_to_properties):
+	helper functions to read in the scanning data and expose as
+	properties the list of networks (not access points!) available.
+	(net_class_pre_process): Call get_wireless_properties().
+	(net_class_tick): Added.  Gets wireless properties every 5 ticks.
+	(net_class_handler): Call net_class_tick() instead of
+	class_device_tick().
+
+2004-05-25  Joe Shaw  <joeshaw at novell.com>
 
 	* hald/Makefile.am: Add the ieee1394 class devices.
 

Index: configure.in
===================================================================
RCS file: /cvs/hal/hal/configure.in,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- a/configure.in	25 May 2004 18:11:31 -0000	1.21
+++ b/configure.in	26 May 2004 19:54:45 -0000	1.22
@@ -156,6 +156,19 @@
 AC_CHECK_HEADERS(expat.h)
 AC_CHECK_LIB(expat,XML_ParserCreate)
 
+# Look for iwlib
+AC_ARG_ENABLE(iwlib,             [  --enable-iwlib          require building with wireless extensions in iwlib],require_iwlib=$enableval,require_iwlib=no)
+
+AC_CHECK_HEADERS(iwlib.h,[AC_CHECK_LIB(iw,iw_sockets_open,PACKAGE_LIBS="$PACKAGE_LIBS -liw")])
+
+if test x$ac_cv_lib_iw_iw_sockets_open = xyes; then
+    AC_DEFINE(HAVE_IWLIB,1,[Have iwlib for wireless network support])
+else
+    if test x$require_iwlib != xno; then
+        AC_ERROR(cannot find iwlib)
+    fi
+fi
+
 dnl DBUS API is subject to changes
 AC_DEFINE_UNQUOTED(DBUS_API_SUBJECT_TO_CHANGE, ,DBUS API is subject to change)
 AC_SUBST(PACKAGE_CFLAGS)





More information about the hal-commit mailing list