From: Felix Fietkau <nbd@openwrt.org>
To: Daniel Drake <dsd@laptop.org>
Cc: linux-wireless@vger.kernel.org
Subject: Re: cfg80211 dump_survey - what is it supposed to measure?
Date: Wed, 07 Mar 2012 12:07:07 +0100 [thread overview]
Message-ID: <4F57415B.9070103@openwrt.org> (raw)
In-Reply-To: <CAMLZHHSgOf9JcEBLxhgkFuM3SEvJUbH=VkDB3pyzPy61HO+mWg@mail.gmail.com>
On 2012-03-05 10:59 PM, Daniel Drake wrote:
> Hi,
>
> I'm working on a bug in libertas. It looks like NetworkManager (or
> something related) is calling dump_survey, before a connection has
> been established.
>
> libertas does:
>
> survey->channel = ieee80211_get_channel(wiphy,
> ieee80211_channel_to_frequency(priv->channel,
> IEEE80211_BAND_2GHZ));
>
> ret = lbs_get_rssi(priv, &signal, &noise);
> if (ret == 0) {
> survey->filled = SURVEY_INFO_NOISE_DBM;
> survey->noise = noise;
> }
>
> return ret;
>
> lbs_get_rssi() only works when the card is associated. It then returns
> the signal/noise of the last received beacon from the AP. If the card
> is not associated (as is true here), lbs_get_rssi returns error 1,
> which is then returned to cfg80211, and this looks to cause userspace
> to retry the survey request in a seemingly infinite loop.
>
> I'm wondering if dump_survey is intended to return the RSSI of a
> specific network in the way that libertas does it, or if it is
> supposed to look more generally at the interference on a channel?
>
> In other words, given that libertas hardware doesn't seem to offer
> functionality to measure the overall signal level on a channel, I'm
> wondering if the correct solution here is to drop the dump_survey
> handler altogether.
cfg80211 survey is supposed to show the noise value for the current
channel, and - if possible - for other channels as well.
The noise level is not specific to a particular network - I don't think
the libertas hw is measuring it while it's receiving packets. It's
usually measured while there is no transmission on the channel, so aside
from the return code issue the code is probably correct.
- Felix
next prev parent reply other threads:[~2012-03-07 11:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-05 21:59 cfg80211 dump_survey - what is it supposed to measure? Daniel Drake
2012-03-07 11:07 ` Felix Fietkau [this message]
2012-03-07 14:47 ` Daniel Drake
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=4F57415B.9070103@openwrt.org \
--to=nbd@openwrt.org \
--cc=dsd@laptop.org \
--cc=linux-wireless@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).