From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: Dan Williams <dcbw@redhat.com>
Cc: Dan Williams <dcbw@redhat.com>,
linux-wireless@vger.kernel.org,
"John W. Linville" <linville@tuxdriver.com>
Subject: Re: [PATCH] libertas: convert RSSI to a direct command
Date: Wed, 19 Mar 2008 16:14:16 +0100 [thread overview]
Message-ID: <200803191614.16402.hs4233@mail.mn-solutions.de> (raw)
In-Reply-To: <1205937089.26119.20.camel@localhost.localdomain>
> We do need a qual.level for adhoc though.
Hmm, I don't have really knowledge about ADHOC. If it is only
> We should be reporting 100% signal strength there or something.
then the code for this would probably be something like
if ((priv->mode == IW_MODE_ADHOC) && priv->adhoccreate
&& !lbs_ssid_cmp(priv->curbssparams.ssid,
priv->curbssparams.ssid_len,
bss->ssid, bss->ssid_len)) {
iwe.u.qual.level = 100;
}
If you think about something different or more complex, it would
be cool if you could help me a bit more :-)
> Second, we really should be reporting the noise for scan
> results, _not_ the default noise value. We certainly can get
> the noise results averaged from past beacons, providing those
> beacons are recent. That was probably the intent of the
> beacon averaging stuff. I might have been a bit too hasty in
> suggesting its removal.
We don't have a noise value for scan results. There is only an
RSSI field in the scan result.
Yes, the GET_RSSI command would give us the noise of received
baecon. *BUT* only for the beacons from the current associated
access point. This has two problems:
* we might not be associated to an AP
* the noise level reported from an associated AP at channel 1
might be very wrong to report the noise level of a scanned AP on
channel 13.
Using averaged noise is useless for other reasons:
* in the case of a moving station the driver doesn't know if the
old data that is used for the average is from the same location
or if the device moved
* the age of the averaged data has not been taken into account.
* and here again driver ignored the fact that noise can be
different on different channels.
So if we don't (1) have noise value for scanning, (2) can't
really average it and (3) you don't to report a default value,
then we can simply turn of the reporting of the noise:
- iwe.u.qual.updated = IW_QUAL_ALL_UPDATED;
+ iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED |
+ IW_QUAL_LEVEL_UPDATED;
"iwlist eth1 scan" then no longer reports the noise.
next prev parent reply other threads:[~2008-03-19 19:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 12:42 [PATCH] libertas: convert RSSI to a direct command Holger Schurig
2008-03-19 14:31 ` Dan Williams
2008-03-19 15:14 ` Holger Schurig [this message]
2008-03-19 15:27 ` Dan Williams
2008-03-19 15:44 ` Holger Schurig
2008-03-26 9:21 ` Holger Schurig
2008-03-19 16:36 ` Holger Schurig
2008-03-19 16:40 ` [PATCH, take 2] " Holger Schurig
2008-03-19 16:52 ` Holger Schurig
-- strict thread matches above, loose matches on Subject: below --
2008-03-13 9:59 [PATCH] " Holger Schurig
2008-03-13 14:50 ` 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=200803191614.16402.hs4233@mail.mn-solutions.de \
--to=hs4233@mail.mn-solutions.de \
--cc=dcbw@redhat.com \
--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.