From: Johannes Berg <johannes@sipsolutions.net>
To: Sergey Naumov <sknaumov@gmail.com>, linux-wireless@vger.kernel.org
Subject: Re: iw reg get since iw-4.x
Date: Wed, 17 May 2017 15:32:34 +0200 [thread overview]
Message-ID: <1495027954.2442.15.camel@sipsolutions.net> (raw)
In-Reply-To: <CAH3pVZMe4p_0eq+19mnPgjaXxPTUYeA6cUOe0K1kK4TohH6tgw@mail.gmail.com> (sfid-20170512_161148_697381_B02E8B2E)
On Fri, 2017-05-12 at 17:11 +0300, Sergey Naumov wrote:
> Hi All.
>
> I see that since iw-4.x "iw reg get" reports multiple region
> information - per-phy and global. Moreover, per-phy information could
> be marked as "self-managed".
That's also dependent on the kernel.
> Could somebody clarify when a driver uses phy-specific region and
> when
> - the global one?
It's just a driver decision, and how the firmware works.
> Looking at a list of channels from "iw phy phyX info" I can conclude
> that if "self-managed" is true, then phy-specific region is used,
> otherwise - the global one. Is it a correct assumption? If yes, then
> why phy-specific regions are reported at all for non-self-managed
> devices, and why the global region is reported for self-managed ones?
Good question, I'm not sure right now. You probably need to look at the
kernel's code (net/wireless/reg.c) to figure out the answer.
> I think it would be natural to use new "iw phy phyX reg get" command
> to report region information that is actually used, but unfortunately
> this command returns exactly the same as "iw reg get":
It's a pure alias right now, but that could be fixed by filtering in iw
I guess.
johannes
prev parent reply other threads:[~2017-05-17 13:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 14:11 iw reg get since iw-4.x Sergey Naumov
2017-05-17 13:32 ` 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=1495027954.2442.15.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=sknaumov@gmail.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 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).