From: Dan Williams <dcbw@redhat.com>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: John Linville <linville@tuxdriver.com>,
Johannes Berg <johannes@sipsolutions.net>,
wireless <linux-wireless@vger.kernel.org>
Subject: Re: Signal quality strange since commit 708c57cf1709fb95
Date: Sat, 21 Feb 2009 13:44:27 -0500 [thread overview]
Message-ID: <1235241867.3284.44.camel@localhost> (raw)
In-Reply-To: <49A01922.1090106@lwfinger.net>
On Sat, 2009-02-21 at 09:09 -0600, Larry Finger wrote:
> I admit that I didn't follow the discussion of reporting signal quality very
> closely; however since commit 708c57cf1709fb95, all of my wireless devices (b43,
> p54usb, rtl8187) are reporting link quality as XX/70 rather than XX/100. I doubt
> that this was an intended consequence of that patch. If the SIOCGIWRANGE ioctl
> is now more correct, what changes are needed in the drivers to restore the old
> behavior? Having written the qual calculation for 2 drivers, I understand the
> uselessness of this number, but I also know the uproar such a change will cause
> in the user community.
Intended. It doesn't matter what the /X number is; it's simply the
upper bound of what the # before the / will be. Quality is in the range
of [0 ... max_qual.qual]. You should be able to divide quality /
max_qual.qual and get a reasonable number to use for pretty UI display.
Many drivers used to use something other than 100 for max quality, and
many still do:
airo.c: range->max_qual.qual = airo_get_max_quality(&cap_rid);
hostap/hostap_ioctl.c: range->max_qual.qual = 70; /* what is correct max? This was not
hostap/hostap_ioctl.c: range->max_qual.qual = 92; /* 0 .. 92 */
netwave_cs.c: range->max_qual.qual = 255;
orinoco/wext.c: range->max_qual.qual = 0x8b - 0x2f;
wavelan.c: range->max_qual.qual = MMR_SGNL_QUAL;
wavelan_cs.c: range->max_qual.qual = MMR_SGNL_QUAL;
zd1201.c: range->max_qual.qual = 128;
Dan
next prev parent reply other threads:[~2009-02-21 18:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-21 15:09 Signal quality strange since commit 708c57cf1709fb95 Larry Finger
2009-02-21 18:44 ` Dan Williams [this message]
2009-02-21 20:04 ` Larry Finger
2009-02-22 6:39 ` Kalle Valo
2009-02-22 15:30 ` Dan Williams
2009-02-24 2:10 ` Johannes Berg
2009-02-24 4:18 ` Larry Finger
2009-02-24 5:16 ` Johannes Berg
2009-02-24 7:07 ` Larry Finger
2009-02-24 7:13 ` Johannes Berg
2009-02-27 17:45 ` Johannes Berg
2009-02-27 21:24 ` Larry Finger
2009-02-27 21:48 ` Johannes Berg
2009-02-22 15:32 ` Dan Williams
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=1235241867.3284.44.camel@localhost \
--to=dcbw@redhat.com \
--cc=Larry.Finger@lwfinger.net \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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.