From: Holger Schurig <holgerschurig@googlemail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Holger Schurig <holgerschurig@googlemail.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [RFC] cfg80211: survey report capability
Date: Tue, 10 Nov 2009 12:19:11 +0100 [thread overview]
Message-ID: <m3skcmhbkg.wl%holgerschurig@gmail.com> (raw)
In-Reply-To: <1257848249.7037.30.camel@johannes.local>
> Nit: missing newline
Done
> > +enum survey_info_flags {
> > + SURVEY_INFO_CHANNEL = 1<<0,
> > + SURVEY_INFO_NOISE = 1<<1,
>
> A response w/o a channel seems entirely useless, shouldn't we just
> require a channel?
Hey, libertas could respond just the noise and no channel. But it
could then also respond with the channel, it's there anyway.
> For mBm, an s8 won't be enough I think? -90 dBm == -9000 mBm?
Oh, sure.
> You need to construct a nested attribute here and put the values into it
> so that the callback can be invoked multiple times, once for each
> channel. OTOH, when there are many many channels that will overrun the
> message size at some point and we'll pull our hair (like we're doing now
> with the channel list in phy info) ... so I'd prefer you move this to a
> dump-style model like dump_stations has.
Okay.
Or maybe a little bit more nl80211_dump_scan.
> Right now you're retrieving a single channel but can't even control
> which one.
Idea was to retrieve as many channels as the drivers sends using the
callback.
Controlling what should be returned should be done after either
enhancing scan-trigger or writing a new survey-trigger command. So
survey-dump would be very similar to scan-dump: return as much data as
is available (and not stale).
And this could very well be only one channel. And in absence of
survey-trigger or an enhanced-scan trigger it will certainly only
report info about the current channel.
> Maybe that's useful functionality in addition to dump when you _can_
> ask for information on a specific channel, but that'd have to pass
> in the frequency from userspace.
Would this then be useful for the scan-dump command as well?
> Retrieving all data like you've implemented (though I guess you forgot
> the multiple channels case) should be a dump.
I did not forgot about the multi-channel case, I forgot about the
nesting. /me's still learning nl80211 :-)
next prev parent reply other threads:[~2009-11-10 11:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 9:48 [RFC] cfg80211: survey report capability Holger Schurig
2009-11-10 10:03 ` Holger Schurig
2009-11-10 10:17 ` Johannes Berg
2009-11-10 10:20 ` Johannes Berg
2009-11-10 11:19 ` Holger Schurig [this message]
2009-11-10 12:08 ` Johannes Berg
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=m3skcmhbkg.wl%holgerschurig@gmail.com \
--to=holgerschurig@googlemail.com \
--cc=johannes@sipsolutions.net \
--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).