Hello community, here is the log from the commit of package wavemon for openSUSE:Factory checked in at Fri Jan 9 02:07:31 CET 2009. -------- --- wavemon/wavemon.changes 2008-10-08 16:20:56.000000000 +0200 +++ /mounts/work_src_done/STABLE/wavemon/wavemon.changes 2009-01-02 18:23:38.000000000 +0100 @@ -1,0 +2,6 @@ +Fri Jan 2 18:18:15 CET 2009 - lmuelle@suse.de + +- Handle dBm values in /proc/net/wireless as displayed when IW_QUAL_DBM is set + by the driver; (bdo#426300); (bnc#463032). + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- wavemon-10_dBM_fix.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wavemon.spec ++++++ --- /var/tmp/diff_new_pack.f14824/_old 2009-01-09 02:07:18.000000000 +0100 +++ /var/tmp/diff_new_pack.f14824/_new 2009-01-09 02:07:18.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package wavemon (Version 0.4.0b) # -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ Name: wavemon BuildRequires: ncurses-devel Version: 0.4.0b -Release: 273 +Release: 274 License: GPL v2 or later Group: Productivity/Networking/Diagnostic Url: http://www.wavemage.com/projects.html @@ -33,6 +33,7 @@ Patch2: wavemon-fixes.diff Patch3: wavemon-include.diff Patch4: pointer-comparison.diff +Patch5: wavemon-10_dBM_fix.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -56,6 +57,7 @@ %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build %{?suse_update_config:%{suse_update_config -f}} @@ -87,6 +89,9 @@ %{_datadir}/man/man5/wavemonrc.5.gz %changelog +* Fri Jan 02 2009 lmuelle@suse.de +- Handle dBm values in /proc/net/wireless as displayed when IW_QUAL_DBM is set + by the driver; (bdo#426300); (bnc#463032). * Wed Oct 08 2008 lmuelle@suse.de - Fix ordered comparison of pointer with integer zero; (bnc#433389). * Thu Apr 05 2007 ssommer@suse.de @@ -98,7 +103,7 @@ - converted neededforbuild to BuildRequires * Mon Oct 31 2005 dmueller@suse.de - don't build as root -* Mon Feb 07 2005 meissner@suse.de +* Sun Feb 06 2005 meissner@suse.de - truly use rpm_opt_flags, fixed warnings and gcc4 compile problems. * Thu Apr 17 2003 lmuelle@suse.de - inital SuSE RPM ++++++ wavemon-10_dBM_fix.diff ++++++ diff -ur wavemon-0.4.0b/iw_if.c wavemon-0.4.0b-pm/iw_if.c --- wavemon-0.4.0b/iw_if.c 2007-06-16 16:19:37.937442114 +0100 +++ wavemon-0.4.0b-pm/iw_if.c 2007-06-16 16:19:25.937107329 +0100 @@ -420,7 +420,7 @@ memset(buf, 0, sizeof(buf)); strncpy(buf, lp, strcspn(lp, ". ")); sscanf(buf, "%d", &stat->signal); - stat->signal -= 0x100; + if (stat->signal > 0x80) stat->signal -= 0x100; if (random) stat->signal = rnd_signal(-102, 10); avg_signal += stat->signal / (float)slotsize; lp += strlen(buf); @@ -430,7 +430,7 @@ memset(buf, 0, sizeof(buf)); strncpy(buf, lp, strcspn(lp, ". ")); sscanf(buf, "%d", &stat->noise); - stat->noise -= 0x100; + if (stat->noise > 0x80) stat->noise -= 0x100; if (random) stat->noise = rnd_noise(-102, -30); avg_noise += stat->noise / (float)slotsize; lp += strlen(buf); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org