linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: solsTiCe d'Hiver <solstice.dhiver@gmail.com>,
	Dan Williams <dcbw@redhat.com>
Cc: Steve deRosier <derosier@gmail.com>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: second wifi card enforce CN reg dom
Date: Thu, 12 Apr 2018 21:25:26 +0200	[thread overview]
Message-ID: <5ACFB2A6.5050009@broadcom.com> (raw)
In-Reply-To: <CAE4vF2fvumVELT5rScptjVC4JOqw5cqEu7yLrYZ64ci=5R6ZRQ@mail.gmail.com>

It seems you are already pissed off, but could you please reply inline 
instead of top posting. Its a drag to scroll up and down.

On 4/12/2018 7:05 PM, solsTiCe d'Hiver wrote:
> Hi.
>
> I thought I made myself clear.
> I leave in France. My system(s) is/are set up to use FR as default
> regulatory domain.
>
> But when I plug in that tp-link card, I am restricted to use CN
> regulatory domain. Why am I the only one to see this as a problem ?

unlikely you are the only one.

> I know that one can only have one regdom defined on the system. I have
> set it up myself. So why is it changed behind my back by some card or
> whatever ?

so:
	Alfa = rt2800usb = FR
 > country FR: DFS-ETSI
 > (2402 - 2482 @ 40), (N/A, 20), (N/A)
 > (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
 > (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
 > (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
 > (57000 - 66000 @ 2160), (N/A, 40), (N/A)
	TP-Link = ath9k_htc = CN
 >country CN: DFS-FCC
 > (2402 - 2482 @ 40), (N/A, 20), (N/A)
 > (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
 > (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
 > (5735 - 5835 @ 80), (N/A, 30), (N/A)
 > (57240 - 59400 @ 2160), (N/A, 28), (N/A)
 > (59400 - 63720 @ 2160), (N/A, 44), (N/A)
 > (63720 - 65880 @ 2160), (N/A, 28), (N/A)

The FR setting may or may not be your doing. You seem to indicate having 
done 'iw reg set FR'. So as to why it changed behind your back is 
because that card indicates it is certified to work in CN regulatory 
domain and your system is configure to work in FR domain. So the 
regulatory code in the kernel has to take action and as Steve explains 
it creates an intersection domain named '98'.

 > country 98: DFS-UNSET
 > (2402 - 2482 @ 40), (N/A, 20), (N/A)
 > (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
 > (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
 > (57240 - 59400 @ 2160), (N/A, 28), (N/A)
 > (59400 - 63720 @ 2160), (N/A, 40), (N/A)
 > (63720 - 65880 @ 2160), (N/A, 28), (N/A)

So it is not as you say that your Alfa device now operates in CN domain, 
but in the 98 domain. As you can see it creates rules different from FR 
and CN picking the lowest power of the two.

> Like I said, I am left with the option, to disable crda, or to use 2
> systems, one for each card !

So yeah, plugging multiple cards in a system limits your options, but 
you still have channels to operate in unless you are otherwise 
restricted by AP(s) used.

Regards,
Arend

  parent reply	other threads:[~2018-04-12 19:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10 19:57 second wifi card enforce CN reg dom solsTiCe d'Hiver
2018-04-12  7:00 ` solsTiCe d'Hiver
2018-04-12  7:48   ` Arend van Spriel
     [not found]     ` <CAE4vF2ftgMPhKEUHr2rPaobM9Dtuc-B9rtbF5tWavvrwUXA7Ag@mail.gmail.com>
2018-04-12 10:51       ` Arend van Spriel
2018-04-12 15:18         ` Steve deRosier
2018-04-12 15:52           ` Dan Williams
2018-04-12 17:05             ` solsTiCe d'Hiver
2018-04-12 17:11               ` Ben Greear
2018-04-12 17:25                 ` solsTiCe d'Hiver
2018-04-12 17:40                   ` Ben Greear
2018-04-12 18:30                   ` Steve deRosier
2018-04-12 19:25               ` Arend van Spriel [this message]
2018-04-12 19:01             ` Arend van Spriel

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=5ACFB2A6.5050009@broadcom.com \
    --to=arend.vanspriel@broadcom.com \
    --cc=dcbw@redhat.com \
    --cc=derosier@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=solstice.dhiver@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).