From: Johannes Berg <johannes@sipsolutions.net>
To: Dennis H Jensen <dennis.h.jensen@siemens.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC] iw: support split wiphy dump
Date: Fri, 15 Feb 2013 10:21:10 +0100 [thread overview]
Message-ID: <1360920070.15040.6.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1360918601.12484.6.camel@djensen-laptop>
On Fri, 2013-02-15 at 09:56 +0100, Dennis H Jensen wrote:
> On Thu, 2013-02-14 at 16:40 +0100, Johannes Berg wrote:
> > On Thu, 2013-02-14 at 16:34 +0100, Johannes Berg wrote:
> > > From: Johannes Berg <johannes.berg@intel.com>
> > >
> > > This adds support for the new split wiphy dump,
> > > it only uses it for "iw list", not for "info"
> > > though, so far. Using it for "info" would mean
> > > querying the kernel capability first and then
> > > using get/dump (with filter) depending on that.
> >
> > Dennis, are you up for implementing this in wpa_supplicant?
>
> Great, this will solve it. I can handle the wpa_supplicant; give me a
> couple of days to get it sorted.
FWIW, I think for wpa_s there are two possibilities:
1) simply always use NL_F_DUMP with NL80211_CMD_GET_WIPHY, and include
the filter & split attributes; this will mean on old kernels it will
retrieve information for all devices so you have to filter it
2) query the nl80211 global features first when initialising the
nl80211 sockets, and then use NL_F_DUMP with the filter only if the
feature is supported in the kernel
Both are about the same difficulty because for 2) you need the extra
feature command (once at init) while for 1) you need an extra command to
get the wiphy index for the device you care about for filtering. For 1)
that command would be NL80211_CMD_GET_INTERFACE.
> What's the procedure, do I post to both lists or just the hostap?
Just hostap is fine.
johannes
prev parent reply other threads:[~2013-02-15 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 15:29 [RFC] nl80211: allow splitting wiphy information in dumps Johannes Berg
2013-02-14 15:34 ` [RFC] iw: support split wiphy dump Johannes Berg
2013-02-14 15:40 ` Johannes Berg
2013-02-15 8:56 ` Dennis H Jensen
2013-02-15 9:21 ` Johannes Berg [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=1360920070.15040.6.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=dennis.h.jensen@siemens.com \
--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).