All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremias Blendin <jeremias@blendin.org>
To: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Cc: "ath10k@lists.infradead.org" <ath10k@lists.infradead.org>
Subject: Re: Failed to start radar detection: -22 (Invalid argument)
Date: Sat, 7 Feb 2015 15:09:39 +0100	[thread overview]
Message-ID: <CAFZrTr6cHUrnFtRAe0m4jUZF3be4no3H2kb0MPOpazid5_Epyg@mail.gmail.com> (raw)
In-Reply-To: <CALhHN=pmaYN8dB437W0mmxkJK_iPBC9nGv+bEQh2dsWDsyMZvQ@mail.gmail.com>

Hi,

I switched to Arch LInux and added this to the configuration of my
custom kernel:

# cat config.x86_64
...
CONFIG_CFG80211_CERTIFICATION_ONUS=y
CONFIG_ATH_REG_DYNAMIC_USER_REG_HINTS=y
CONFIG_ATH_REG_DYNAMIC_USER_CERT_TESTING=y

However, I still have the same issue:
[    6.506356] cfg80211: Calling CRDA to update world regulatory domain
[    6.506399] cfg80211: World regulatory domain updated:
[    6.506403] cfg80211:  DFS Master region: unset
[    6.506405] cfg80211:   (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp), (dfs_cac_time)
[    6.506408] cfg80211:   (2402000 KHz - 2472000 KHz @ 0 KHz), (N/A,
2000 mBm), (N/A)
[    6.506411] cfg80211:   (2457000 KHz - 2482000 KHz @ 0 KHz), (N/A,
2000 mBm), (N/A)
[    6.506414] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz),
(N/A, 2000 mBm), (N/A)
[    6.506417] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz),
(N/A, 2000 mBm), (N/A)
[    6.506420] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz),
(N/A, 2000 mBm), (0 s)
[    6.506423] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz),
(N/A, 2000 mBm), (0 s)
[    6.506425] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz),
(N/A, 2000 mBm), (N/A)
[    6.506428] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000
KHz), (N/A, 0 mBm), (N/A)
[    6.506502] cfg80211: Calling CRDA for country: DE
[    6.552678] cfg80211: Regulatory domain changed to country: DE
[    6.552684] cfg80211:  DFS Master region: ETSI
[    6.552686] cfg80211:   (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp), (dfs_cac_time)
[    6.552690] cfg80211:   (2400000 KHz - 2483500 KHz @ 40000 KHz),
(N/A, 2000 mBm), (N/A)
[    6.552693] cfg80211:   (5150000 KHz - 5250000 KHz @ 80000 KHz),
(N/A, 2000 mBm), (N/A)
[    6.552696] cfg80211:   (5250000 KHz - 5350000 KHz @ 80000 KHz),
(N/A, 2000 mBm), (0 s)
[    6.552699] cfg80211:   (5470000 KHz - 5725000 KHz @ 80000 KHz),
(N/A, 2698 mBm), (0 s)
[    6.552702] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000
KHz), (N/A, 4000 mBm), (N/A)
[    6.655192] ath10k_pci 0000:04:00.0: qca988x hw2.0 (0x4100016c,
0x043202ff) fw 10.2-00082-4-2 api 3 htt 2.1
[    6.655199] ath10k_pci 0000:04:00.0: debug 0 debugfs 1 tracing 0
dfs 0 testmode 0
...
[    7.173654] ath: EEPROM regdomain: 0x0
[    7.173659] ath: EEPROM indicates default country code should be used
[    7.173661] ath: doing EEPROM country->regdmn map search
[    7.173663] ath: country maps to regdmn code: 0x3a
[    7.173665] ath: Country alpha2 being used: US
[    7.173667] ath: Regpair used: 0x3a
[    7.221483] cfg80211: Calling CRDA for country: US
[    7.224123] cfg80211: Current regulatory domain intersected:
[    7.224130] cfg80211:  DFS Master region: unset
[    7.224132] cfg80211:   (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp), (dfs_cac_time)
[    7.224136] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz),
(N/A, 2000 mBm), (N/A)
[    7.224139] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz),
(N/A, 1700 mBm), (N/A)
[    7.224142] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz),
(N/A, 2000 mBm), (0 s)
[    7.224145] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000
KHz), (N/A, 4000 mBm), (N/A)

# iw reg set DE
# iw reg get
country 98: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(5170 - 5250 @ 80), (N/A, 17), (N/A), NO-OUTDOOR
(5250 - 5330 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS
(57240 - 63720 @ 2160), (N/A, 40), (N/A), NO-OUTDOOR

# uname -a
Linux kyushu 3.18.5-1-custom #3 SMP PREEMPT Sat Feb 7 14:30:30 CET
2015 x86_64 GNU/Linux

# lspci
00:00.0 Host bridge: Intel Corporation Atom processor C2000 SoC
Transaction Router (rev 02)
00:01.0 PCI bridge: Intel Corporation Atom processor C2000 PCIe Root
Port 1 (rev 02)
00:02.0 PCI bridge: Intel Corporation Atom processor C2000 PCIe Root
Port 2 (rev 02)
00:03.0 PCI bridge: Intel Corporation Atom processor C2000 PCIe Root
Port 3 (rev 02)
00:0b.0 Co-processor: Intel Corporation Atom processor C2000 nCPM (rev 02)
00:0e.0 Host bridge: Intel Corporation Atom processor C2000 RAS (rev 02)
00:0f.0 IOMMU: Intel Corporation Atom processor C2000 RCEC (rev 02)
00:13.0 System peripheral: Intel Corporation Atom processor C2000
SMBus 2.0 (rev 02)
00:14.0 Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)
00:14.1 Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)
00:14.2 Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)
00:14.3 Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)
00:16.0 USB controller: Intel Corporation Atom processor C2000 USB
Enhanced Host Controller (rev 02)
00:17.0 SATA controller: Intel Corporation Atom processor C2000 AHCI
SATA2 Controller (rev 02)
00:18.0 SATA controller: Intel Corporation Atom processor C2000 AHCI
SATA3 Controller (rev 02)
00:1f.0 ISA bridge: Intel Corporation Atom processor C2000 PCU (rev 02)
00:1f.3 SMBus: Intel Corporation Atom processor C2000 PCU SMBus (rev 02)
01:00.0 PCI bridge: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge (rev 03)
02:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED
Graphics Family (rev 30)
03:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0
Host Controller (rev 03)
04:00.0 Network controller: Qualcomm Atheros QCA988x 802.11ac Wireless
Network Adapter

2015-01-30 18:53 GMT+01:00 Janusz Dziedzic <janusz.dziedzic@tieto.com>:
> On 29 January 2015 at 20:57, Jeremias Blendin <jeremias@blendin.org> wrote:
>> Sorry, forgot to add the list
>>
>> ---------- Forwarded message ----------
>> From: Jeremias Blendin <jeremias@blendin.org>
>> Date: 2015-01-29 20:29 GMT+01:00
>> Subject: Re: Failed to start radar detection: -22 (Invalid argument)
>> To: Janusz Dziedzic <janusz.dziedzic@tieto.com>
>>
>>
>> Hi,
>>
>> thanks for the reply. I already use the latest regulatory db. If I set
>> the country to DE or EU, I do not get DFS-ETSI. Also it seems that the
>> driver stays with US when I use the modprobe config for cfg80211:
>> [ 2230.123217] cfg80211: Calling CRDA for country: EU
>> [ 2230.424986] ath10k_pci 0000:04:00.0: irq 87 for MSI/MSI-X
>> [ 2230.475776] ath10k: pci irq MSI irq_mode 0 reset_mode 0
>> [ 2231.454959] ath10k: qca988x hw2.0 (0x4100016c, 0x043202ff) fw
>> 10.1.467.2-1 api 2 htt 2.1
>> [ 2231.998004] ath: EEPROM regdomain: 0x0
>> [ 2231.998009] ath: EEPROM indicates default country code should be used
>> [ 2231.998012] ath: doing EEPROM country->regdmn map search
>> [ 2231.998014] ath: country maps to regdmn code: 0x3a
>> [ 2231.998016] ath: Country alpha2 being used: US
>> [ 2231.998018] ath: Regpair used: 0x3a
>> [ 2232.022444] systemd-udevd[4364]: renamed network interface wlan0 to wlan1
>> [ 2233.275022] cfg80211: Calling CRDA for country: US
>> [ 2233.278712] cfg80211: Regulatory domain changed to country: US
>> [ 2233.278718] cfg80211:  DFS Master region: unset
>> [ 2233.278720] cfg80211:   (start_freq - end_freq @ bandwidth),
>> (max_antenna_gain, max_eirp), (dfs_cac_time)
>> [ 2233.278724] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz),
>> (N/A, 3000 mBm), (N/A)
>> [ 2233.278728] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz,
>> 160000 KHz AUTO), (N/A, 1700 mBm), (N/A)
>> [ 2233.278731] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz,
>> 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
>> [ 2233.278734] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz),
>> (N/A, 3000 mBm), (N/A)
>> [ 2233.278737] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000
>> KHz), (N/A, 4000 mBm), (N/A)
>>
>> When I use iw reg set DE this happens:
>>
>> # iw reg get
>> country DE: DFS-UNSET
>> (2400 - 2483 @ 40), (N/A, 20)
>> (5150 - 5250 @ 80), (N/A, 20), NO-OUTDOOR
>> (5250 - 5350 @ 80), (N/A, 20), NO-OUTDOOR, DFS
>> (5470 - 5725 @ 160), (N/A, 26), DFS
>> (57000 - 66000 @ 2160), (N/A, 40)
>>
>> Could it be that I need to change the EEPROM?
>>
> Try this options:
> CONFIG_ATH_REG_DYNAMIC_USER_REG_HINTS=y
> CONFIG_ATH_REG_DYNAMIC_USER_CERT_TESTING=y
>
> After that iw reg set should work as expected.
> One other thing could be two cards and "strange" cfg80211
> intersection. In such case try to blacklist one card and try only with
> ath10k loaded.
>
> BR
> Janusz

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

  reply	other threads:[~2015-02-07 14:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-28 22:59 Failed to start radar detection: -22 (Invalid argument) Jeremias Blendin
2015-01-29  5:29 ` Janusz Dziedzic
     [not found]   ` <CAFZrTr6VaTo0it0pjjTeUx0JebDt6ayywr=Z9gm02-7i+WkPDg@mail.gmail.com>
2015-01-29 19:57     ` Fwd: " Jeremias Blendin
2015-01-30 17:53       ` Janusz Dziedzic
2015-02-07 14:09         ` Jeremias Blendin [this message]
2015-02-07 15:46           ` Janusz Dziedzic
2015-02-07 16:13             ` Janusz Dziedzic

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=CAFZrTr6cHUrnFtRAe0m4jUZF3be4no3H2kb0MPOpazid5_Epyg@mail.gmail.com \
    --to=jeremias@blendin.org \
    --cc=ath10k@lists.infradead.org \
    --cc=janusz.dziedzic@tieto.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.