Fwd: Failed to start radar detection: -22 (Invalid argument)

Jeremias Blendin jeremias at blendin.org
Thu Jan 29 11:57:22 PST 2015


Sorry, forgot to add the list

---------- Forwarded message ----------
From: Jeremias Blendin <jeremias at 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 at 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?

Thanks!

2015-01-29 6:29 GMT+01:00 Janusz Dziedzic <janusz.dziedzic at tieto.com>:
> On 28 January 2015 at 23:59, Jeremias Blendin <jeremias at blendin.org> wrote:
>> Hi,
>>
>> I am having issues to get a ath10k wifi card working and I did not
>> find any information on the -22 error code:
>>
>> HT40: control channel: 52  secondary channel: 56
>> Completing interface initialization
>> Mode: IEEE 802.11a  Channel: 52  Frequency: 5260 MHz
>> DFS 4 channels required radar detection
>> DFS all channels available, (SKIP CAC): no
>> DFS 0 chans unavailable - choose other channel: no
>> wlan1: interface state HT_SCAN->DFS
>> DFS start CAC on 5260 MHz
>> wlan1: DFS-CAC-START freq=5260 chan=52 sec_chan=1, width=1, seg0=58,
>> seg1=0, cac_time=60s
>> nl80211: Start radar detection (CAC) 5260 MHz (ht_enabled=1,
>> vht_enabled=1, bandwidth=80 MHz, cf1=5290 MHz, cf2=0 MHz)
>> nl80211: Failed to start radar detection: -22 (Invalid argument)
>> DFS start_dfs_cac() failed, -1
>> Interface initialization failed
>> wlan1: interface state DFS->DISABLED
>> wlan1: AP-DISABLED
>> ....
>>
>> System information:
>> Linux kyushu 3.16.0-29-generic #39-Ubuntu SMP Mon Dec 15 22:27:29 UTC
>> 2014 x86_64 x86_64 x86_64 GNU/Linux
>> Firmware:
>> [   15.060828] ath10k: pci irq MSI irq_mode 0 reset_mode 0
>> [   16.919940] ath10k: qca988x hw2.0 (0x4100016c, 0x043202ff) fw
>> 10.1.467.2-1 api 2 htt 2.1
>> Country:
>> iw reg get
>> country DE: DFS-UNSET
> DFS region, this is an issue. Update your regulatory database
> (CRDA/WirelessDB) or db.txt in case you are using internal regulatory
> from kernel.
> You should have country DE: DFS-ETSI
>
> BR
> Janusz
>
>> (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 @ 80), (N/A, 26), DFS
>> (57240 - 65880 @ 2160), (N/A, 40), NO-OUTDOOR
>>
>> Any ideas what could be the issue?
>>
>> Jeremias
>>
>> _______________________________________________
>> ath10k mailing list
>> ath10k at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/ath10k



More information about the ath10k mailing list