[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork
From: Piotr Szymanski <djurban () linuxpl ! org>
Date: 2004-01-30 15:03:34
Message-ID: 20040130150334.1B2BF9918 () office ! kde ! org
[Download RAW message or body]
CVS commit by djurban:
- work with libiw 27 or greater
M +21 -0 configure.in.in 1.63
M +6 -1 wifi/kwireless/linuxwirelesswidget.cpp 1.7
--- kdenetwork/configure.in.in #1.62:1.63
@@ -79,4 +79,25 @@
fi
+AC_MSG_CHECKING([if wireless tools >= 27 are installed])
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+AC_TRY_COMPILE(
+ [
+ #include <iwlib.h>
+ ],
+ [
+ // checking how many arguments does it iw_get_stats want
+ // the result is unimportant
+ struct wireless_info info;
+ char * stupid;
+ iw_get_stats(iw_sockets_open(), stupid, &(info.stats));
+
+ ], AC_MSG_RESULT(no)
+ ,
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_IW_27, 1, [Define if you have iwlib newer than 26])
+
+)
+
# check for SLP
dnl define the configure option that disables slp
--- kdenetwork/wifi/kwireless/linuxwirelesswidget.cpp #1.6:1.7
@@ -13,4 +13,5 @@
#include <klocale.h>
#include "linuxwirelesswidget.h"
+#include "config.h"
extern "C" {
@@ -129,5 +130,9 @@ void LinuxWireLessWidget::poll()
// get the device statistics:
+#if HAVE_IW_27
+ if(iw_get_stats(socketFD, device_c_str, &(info.stats), &(info.range), info.has_range)>= 0)
+#else
if(iw_get_stats(socketFD, device_c_str, &(info.stats)) >= 0)
+#endif
{
info.has_stats = 1;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic