List Info

Thread: wext stats in dbm




wext stats in dbm
user name
2007-01-02 15:10:44
Hi,

wireless_ext 19 defines a new flag IW_QUAL_DBM for wstats --
as our
stats are measured in dbm this patch sets it.
This lets iwconfig & /proc/net/wireless display more
sensible results.

with this patch /proc/net/wireless shows

level -58 noise -95 


Cheers

Richard





Index: src/p80211/p80211wext.c
============================================================
=======
--- src/p80211/p80211wext.c	(revision 1805)
+++ src/p80211/p80211wext.c	(working copy)
 -236,7
+236,12 
 	wstats->qual.level = quality.level.data;  /* instant
signal level */
 	wstats->qual.noise = quality.noise.data;  /* instant
noise level */
 
+#if WIRELESS_EXT > 18
+	wstats->qual.updated = IW_QUAL_ALL_UPDATED |
IW_QUAL_DBM;
+#else
 	wstats->qual.updated = 7;
+#endif
+
 	wstats->discard.code = wlandev->rx.decrypt_err;
 	wstats->discard.nwid = 0;
 	wstats->discard.misc = 0;

_______________________________________________
Linux-wlan-user mailing list
Linux-wlan-userlists.linux-wlan.com
http://lists.linux-wlan.com/mailman/listinfo/linux-w
lan-user
wext stats in dbm
user name
2007-01-04 13:56:49
On Tue, Jan 02, 2007 at 03:10:44PM +0000, richard wrote:
> wireless_ext 19 defines a new flag IW_QUAL_DBM for
wstats -- as our
> stats are measured in dbm this patch sets it.
> This lets iwconfig & /proc/net/wireless display
more sensible results.

Cool, thanks for the patch!  It's applied.  

I'll be releasing 0.2.7 once I get the pending patches
sorted out.

 - Solomon
-- 
Solomon Peachy                        solomonlinux-wlan.com
AbsoluteValue Systems                 http://www.linux-wlan.com
721-D North Drive                     +1 (321) 259-0737 
(office)
Melbourne, FL 32934                   +1 (321) 259-0286 
(fax)
_______________________________________________
Linux-wlan-user mailing list
Linux-wlan-userlists.linux-wlan.com
http://lists.linux-wlan.com/mailman/listinfo/linux-w
lan-user
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )