diff options
author | Caleb Tennis <caleb@gentoo.org> | 2004-02-04 13:26:35 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2004-02-04 13:26:35 +0000 |
commit | c3b32e32a3f24cee35eb979f4e64c74635e4335a (patch) | |
tree | 0497481c800e48c75cef2f7e7afe67377881b18e /kde-base/kdenetwork/files | |
parent | Cleaned out old ebuilds. Updated copyright year. (diff) | |
download | gentoo-2-c3b32e32a3f24cee35eb979f4e64c74635e4335a.tar.gz gentoo-2-c3b32e32a3f24cee35eb979f4e64c74635e4335a.tar.bz2 gentoo-2-c3b32e32a3f24cee35eb979f4e64c74635e4335a.zip |
Add a wifi detection patch
Diffstat (limited to 'kde-base/kdenetwork/files')
-rw-r--r-- | kde-base/kdenetwork/files/linuxwirelesswidget.cpp.diff | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/kde-base/kdenetwork/files/linuxwirelesswidget.cpp.diff b/kde-base/kdenetwork/files/linuxwirelesswidget.cpp.diff new file mode 100644 index 000000000000..fcb5dd044c69 --- /dev/null +++ b/kde-base/kdenetwork/files/linuxwirelesswidget.cpp.diff @@ -0,0 +1,23 @@ +--- wifi/kwireless/linuxwirelesswidget.cpp 2003/05/07 07:59:05 1.5 ++++ wifi/kwireless/linuxwirelesswidget.cpp 2004/01/30 15:12:57 1.5.2.1 +@@ -12,6 +12,7 @@ + #include <kdebug.h> + #include <klocale.h> + #include "linuxwirelesswidget.h" ++#include "config.h" + + extern "C" { + #include <iwlib.h> +@@ -124,7 +125,11 @@ void LinuxWireLessWidget::poll() + } + + // get the device statistics: +- if(iw_get_stats(socketFD, device_c_str, &(info.stats)) >= 0) ++#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; + bool isAbs; // true if values are relative tp a peak value, |