linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: Question on regulatory settings.
Date: Thu, 22 May 2014 10:41:55 -0700	[thread overview]
Message-ID: <537E36E3.6040205@candelatech.com> (raw)
In-Reply-To: <537E2ABB.6030302@candelatech.com>

On 05/22/2014 09:50 AM, Ben Greear wrote:
> Hello!
> 
> I'm having issues where when we add several ath10k NICs to a system,
> the regulatory domain goes quite restricted..  There is an ath9k NIC
> with eeprom over-ride hack, and user-space sets regdomain to 'US'.
> 
> Later, when registering ath10k, at least one of those NICs registeres
> as 'TW'.  The ending domain looks like this:
> 
> [root@lf1011-13060017 ~]# iw reg get
> country 98: DFS-UNSET
> 	(2402 - 2472 @ 40), (N/A, 30)
> 	(5270 - 5330 @ 40), (N/A, 17), DFS
> 	(5735 - 5835 @ 80), (N/A, 30)
> 
> 
> I tried adding a hack to ath10k to zero out the ar->ath_common.regulatory.current_rd,
> but in fact it seems to be reported as zero to begin with.
> 
> I am obviously missing something.  Either my hacks to ath10k are not
> sufficient, or possibly the system is getting regulatory info from
> somewhere else?
> 
> Any ideas where else it might be getting the idea it should be in TW
> domain?  Can it get this from beacons from other systems?

Ahh, sneaky nasty code....it was being set based on the timezone
of all things!

Looks like you can override this behaviour with the command
below if you are of a mind to do so:

echo COUNTRY=US > /etc/sysconfig/regdomain


Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


  reply	other threads:[~2014-05-22 17:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-22 16:50 Question on regulatory settings Ben Greear
2014-05-22 17:41 ` Ben Greear [this message]
2014-05-22 18:30   ` John W. Linville
2014-05-22 19:14     ` Rick Farina
2014-05-22 19:22       ` John W. Linville
2014-05-22 19:46     ` Ben Greear

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=537E36E3.6040205@candelatech.com \
    --to=greearb@candelatech.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).