From: Larry Finger <Larry.Finger@lwfinger.net>
To: jt@hpl.hp.com
Cc: Dan Williams <dcbw@redhat.com>,
John Linville <linville@tuxdriver.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH] bcm43xx-softmac: Further improvement in wireless statistics
Date: Fri, 14 Jul 2006 12:09:50 -0500 [thread overview]
Message-ID: <44B7CFDE.8050305@lwfinger.net> (raw)
In-Reply-To: <20060714162517.GA21960@bougret.hpl.hp.com>
Jean,
Jean Tourrilhes wrote:
>
> I must admit that the original definition was too clever (or
> too ambiguous, or too original, take your pick). range->max_qual.level
> is always supposed to have a meaningfull value. People that did not
> understand that original definition just put 0 there, as it was the
> easiest way to output dBm.
> If you want more details, check the comment in the function
> iw_print_stats() in iwlib.c.
> As I say, range->max_qual.level is always supposed to have
> something useful, so :
>
> if(IW_QUAL_DBM == 0)
> rssi level in the range [0 ; range->max_qual.level]
> if(IW_QUAL_DBM == 1)
> (rssi level - 256) in the range [range->max_qual.level - 256 ; 0]
Thank you for your explanation and the reference to the comment from wireless_tools. I think it is
safe to say that we all have learned a lot. As you say, 8-bit arithmetic is tricky.
> I think WE-19 is old enough (most distro seems to use 2.6.16)
> that we don't have to bother about earlier version going forward.
I'm going to rely on that, set IW_QUAL_DBM, and choose the max_qual at 152, which corresponds to a
floor-value of -104 dBm. The KDE applet display is a little strange as it displays -65 dBm at
approximately 2/3 height, rather than the 1/3 value that I would expect. So far, I have not found
the source for that applet and cannot verify the calculation. In any case, the display is acceptable
even if not what I would expect. At least, the values in /proc/net/wireless are correct.
Thanks again,
Larry
prev parent reply other threads:[~2006-07-14 17:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 16:04 [PATCH] bcm43xx-softmac: Further improvement in wireless statistics Larry Finger
2006-07-11 19:32 ` Dan Williams
2006-07-12 4:03 ` Larry Finger
2006-07-14 3:37 ` Dan Williams
2006-07-14 4:32 ` Larry Finger
2006-07-14 16:25 ` Jean Tourrilhes
2006-07-14 17:09 ` Larry Finger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B7CFDE.8050305@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=dcbw@redhat.com \
--cc=jt@hpl.hp.com \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.