How to configure hostapd + ath10k CT on DFS channel ?

Ben Greear greearb at candelatech.com
Fri Sep 30 07:39:06 PDT 2016


On 09/30/2016 05:05 AM, Jean-Luc Kalmus wrote:
> I tested ath10k and ath10k-ct on my environment with the exact same configurations of hostapd (both options - .11d and .11h are enabled).
> In case of the standard ath10k, I could establish a connection between two nodes on a DFS channel (52). The DFS state changed to “available” in "iw list"
> On the other hand, I couldn’t connect the nodes with the ath10k-ct. The DFS state was displayed as “usable”.
>
> #Note: to test both drivers I built a LEDE firmware using the following options:
> ath10k:
> <*> ath10k-firmware-qca988x.............. ath10k firmware for QCA988x devices
>   <*> kmod-ath10k...................... Atheros 802.11ac wireless cards support
>
> ath10k-ct:
> <*> ath10k-firmware-qca988x-ct... ath10k CT 10.1 firmware for QCA988x devices
>   <*> kmod-ath10k-ct......... ath10k-ct driver optimized for CT ath10k firmware

I don't have time to work on this right now, but if you want to investigate further,
please try CT firmware with the stock driver, and stock firmware with the
ct driver.  This should determine if the issue is with the driver or the
firmware.

Thanks,
Ben

>
> Thanks,
> JL
>
>> On 22 Sep 2016, at 15:29, Ben Greear <greearb at candelatech.com> wrote:
>>
>> We have DFS working on Fedora with CT firmware and driver.
>>
>> One thing, you have to enable .11d and .11h features for DFS to be enabled.
>>
>> Also, we over-ride the ath10k firmware country-code using the module-param
>> so that the entire system has the same country-code:
>>
>> # You do not need most of this below, and possibly none of it...I'm not
>> # how much the country-code for the NIC matters.
>>
>> [root at ben-ota-1 ~]# cat /etc/modprobe.d/ath10k.conf
>> # LEAVE-ME-BE
>> # MAC, WMI, HTC
>> #options ath10k_core debug_mask=0xc0000036
>> # MAC
>> options ath10k_core debug_mask=0xc0000030
>> # htt tx dump
>> # options ath10k_core debug_mask=0xc00000b0
>> # Quiet
>> #options ath10k_core debug_mask=0xc0000000
>> options ath10k_core nohwcrypt=1
>> options ath10k_core num_vdevs_ct=64
>> options ath10k_core num_peers_ct=128
>> options ath10k_core num_msdu_desc_ct=680
>> #options ath10k_core num_rate_ctrl_objs_ct=20
>> options ath10k_core override_eeprom_regdomain=840
>>
>>
>> And, does this work w/out CT firmware and driver?  If so, might be some issue
>> with my code, but again, it seems to work for us.
>>
>> Thanks,
>> Ben
>>
>>
>> On 09/22/2016 02:16 AM, Jean-Luc Kalmus wrote:
>>>
>>> I am trying to put an AP on a DFS channel (52).
>>> I am using a TP-Link Archer C7 v2 with LEDE Reboot r1462 / LuCI Master (git-16.237.78341-d5f8c9b) and the ath10k CT firmware/driver.
>>>
>>> Hostapd will not start the AP because of some problem with DFS.
>>>
>>> Does anyone have this working ?
>>>
>>> —————————
>>> /etc/config/wireless
>>>
>>> config wifi-device '11AC'
>>>          option type 'mac80211'
>>>          option hwmode '11a'
>>>          option path 'pci0000:01/0000:01:00.0'
>>>          option htmode 'VHT80'
>>>          option txpower '20'
>>>          option country 'PL'
>>>          option channel '52'
>>>
>>> config wifi-iface
>>>          option device '11AC'
>>>          option mode 'ap'
>>>          option encryption 'none'
>>>          option ssid '1'
>>>          option network ‘ap0'
>>>
>>> —————————
>>> generated hostapd configuration:
>>> driver=nl80211
>>> logger_syslog=127
>>> logger_syslog_level=2
>>> logger_stdout=127
>>> logger_stdout_level=2
>>> country_code=PL
>>> ieee80211d=1
>>> ieee80211h=1
>>> hw_mode=a
>>> channel=52
>>>
>>>
>>> ieee80211n=1
>>> ht_coex=0
>>> ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40]
>>> vht_oper_chwidth=1
>>> vht_oper_centr_freq_seg0_idx=58
>>> ieee80211ac=1
>>> vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]
>>>
>>> interface=wlan0
>>> ctrl_interface=/var/run/hostapd
>>> disassoc_low_ack=1
>>> preamble=1
>>> wmm_enabled=1
>>> ignore_broadcast_ssid=0
>>> uapsd_advertisement_enabled=1
>>> auth_algs=1
>>> wpa=0
>>> ssid=1
>>> bssid=a4:2b:b0:de:1d:12
>>>
>>> —————————
>>> logread:
>>>
>>> Thu Sep 22 07:46:42 2016 kern.warn kernel: [75344.232253] ath10k_pci 0000:01:00.0: removing peer, htt peer unmap vdev 0 peer a4:2b:b0:de:1d:12 id 30
>>> Thu Sep 22 07:46:42 2016 kern.warn kernel: [75344.241742] ath10k_pci 0000:01:00.0: removing peer, htt peer unmap vdev 0 peer a4:2b:b0:de:1d:12 id 14
>>> Thu Sep 22 07:46:42 2016 daemon.notice netifd: 11AC (17179): command failed: Not supported (-122)
>>> Thu Sep 22 07:46:42 2016 daemon.notice netifd: 11AC (17179): Configuration file: /var/run/hostapd-phy0.conf
>>> Thu Sep 22 07:46:43 2016 kern.info kernel: [75345.650956] ath10k_pci 0000:01:00.0: wmi print 'P 128 V 8 T 410'
>>> Thu Sep 22 07:46:43 2016 kern.info kernel: [75345.657129] ath10k_pci 0000:01:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0'
>>> Thu Sep 22 07:46:43 2016 kern.info kernel: [75345.664398] ath10k_pci 0000:01:00.0: wmi print 'alloc rem: 24448 iram: 28612'
>>> Thu Sep 22 07:46:43 2016 kern.warn kernel: [75345.744297] ath10k_pci 0000:01:00.0: htt peer map vdev 0 peer a4:2b:b0:de:1d:12 id 30
>>> Thu Sep 22 07:46:43 2016 kern.warn kernel: [75345.752274] ath10k_pci 0000:01:00.0: htt peer map vdev 0 peer a4:2b:b0:de:1d:12 id 14
>>> Thu Sep 22 07:46:43 2016 kern.info kernel: [75345.761038] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
>>> Thu Sep 22 07:46:43 2016 daemon.notice netifd: 11AC (17179): wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
>>> Thu Sep 22 07:46:43 2016 daemon.notice netifd: 11AC (17179): wlan0: interface state COUNTRY_UPDATE->HT_SCAN
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): wlan0: interface state HT_SCAN->DFS
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): wlan0: DFS-CAC-START freq=5260 chan=52 sec_chan=1, width=1, seg0=58, seg1=0, cac_time=60s
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): DFS start_dfs_cac() failed, -1
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): Interface initialization failed
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): wlan0: interface state DFS->DISABLED
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): wlan0: AP-DISABLED
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): wlan0: interface state DISABLED->DISABLED
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): wlan0: AP-DISABLED
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): hostapd_free_hapd_data: Interface wlan0 wasn't started
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): nl80211: deinit ifname=wlan0 disabled_11b_rates=0
>>> Thu Sep 22 07:46:44 2016 kern.warn kernel: [75345.878058] ath10k_pci 0000:01:00.0: removing peer, htt peer unmap vdev 0 peer a4:2b:b0:de:1d:12 id 30
>>> Thu Sep 22 07:46:44 2016 kern.warn kernel: [75345.887600] ath10k_pci 0000:01:00.0: removing peer, htt peer unmap vdev 0 peer a4:2b:b0:de:1d:12 id 14
>>> Thu Sep 22 07:46:44 2016 daemon.notice netifd: 11AC (17179): ELOOP: remaining socket: sock=18 eloop_data=0x7774b9c0 user_data=0 handler=0x41a1cd
>>> Thu Sep 22 07:46:45 2016 kern.info kernel: [75347.025367] ath10k_pci 0000:01:00.0: wmi print 'P 128 V 8 T 410'
>>> Thu Sep 22 07:46:45 2016 kern.info kernel: [75347.031509] ath10k_pci 0000:01:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0'
>>> Thu Sep 22 07:46:45 2016 kern.info kernel: [75347.038770] ath10k_pci 0000:01:00.0: wmi print 'alloc rem: 24448 iram: 28612'
>>> Thu Sep 22 07:46:45 2016 kern.warn kernel: [75347.118602] ath10k_pci 0000:01:00.0: htt peer map vdev 0 peer a4:2b:b0:de:1d:12 id 30
>>> Thu Sep 22 07:46:45 2016 kern.warn kernel: [75347.126580] ath10k_pci 0000:01:00.0: htt peer map vdev 0 peer a4:2b:b0:de:1d:12 id 14
>>> Thu Sep 22 07:46:45 2016 kern.info kernel: [75347.135576] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009768] ath10k_pci 0000:01:00.0: ath10k_pci ATH10K_DBG_BUFFER:
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009797] ath10k: [0000]: 1E619904 0500FC17 70201031 08000000 80000000 B8F74000 01000600 29619904
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009815] ath10k: [0008]: 085CFC0F 8C6B4400 08000000 80000000 29619904 065CFC0F B8F74000 84774400
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009832] ath10k: [0016]: 19000000 2A619904 065CFC0F 09000000 84774400 847D9C00 40619904 130CFC03
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009848] ath10k: [0024]: 48619904 234CFC0F 01000000 01000000 01000000 50619904 234CFC0F 01000000
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009865] ath10k: [0032]: 01000000 01000000 58619904 234CFC0F 01000000 01000000 01000000 60619904
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009881] ath10k: [0040]: 234CFC0F 01000000 01000000 01000000 68619904 234CFC0F 01000000 01000000
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009898] ath10k: [0048]: 01000000 70619904 234CFC0F 01000000 01000000 01000000 78619904 234CFC0F
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009914] ath10k: [0056]: 01000000 01000000 01000000 80619904 234CFC0F 01000000 01000000 01000000
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009930] ath10k: [0064]: 80619904 0C64FC07 01000000 88619904 234CFC0F 01000000 01000000 01000000
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009947] ath10k: [0072]: 88619904 0920000C 34F84300 02000000 00000000 88619904 065C000C 08000000
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009963] ath10k: [0080]: 84774400 8C7D9C00 88619904 0928000C 61661071 34F84300 9CFE4300 88619904
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009980] ath10k: [0088]: 0928000C 60661071 34F84300 9CFE4300 88619904 085C0008 34F84300 B46B4400
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.009996] ath10k: [0096]: 88619904 065C000C 11000000 84774400 947D9C00 88619904 045C000C 03001081
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010013] ath10k: [0104]: 34F84300 00000000 88619904 02280008 03000000 03000000 88619904 02280004
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010029] ath10k: [0112]: 03000000 88619904 2F4C0014 1E000000 54EE4100 988C4300 00000000 00000000
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010045] ath10k: [0120]: 88619904 2F4C0014 0E000000 8CEE4100 988C4300 00000000 01000000 88619904
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010062] ath10k: [0128]: 364C0014 988C4300 84B09B00 11000000 00000000 203D0000 88619904 364C0014
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010078] ath10k: [0136]: 988C4300 CCB09B00 12000000 00000000 202D0000 88619904 364C0014 988C4300
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010095] ath10k: [0144]: 14B19B00 10000000 0A000000 403D0000 88619904 364C0014 988C4300 5CB19B00
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010111] ath10k: [0152]: 13000000 00000000 203D0000 88619904 035C0014 01000000 A42BB0DE 1D120000
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010123] ath10k: [0160]: 148A9B00 988C4300
>>> Thu Sep 22 07:46:46 2016 kern.debug kernel: [75348.010136] ath10k_pci 0000:01:00.0: ATH10K_END
>>>
>>> —————————
>>> $ iw reg get
>>> global
>>> country PL: 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)
>>>
>>> phy#1
>>> country US: DFS-FCC
>>> 	(2402 - 2472 @ 40), (N/A, 30), (N/A)
>>> 	(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
>>> 	(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
>>> 	(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
>>> 	(5735 - 5835 @ 80), (N/A, 30), (N/A)
>>> 	(57240 - 63720 @ 2160), (N/A, 40), (N/A)
>>>
>>> phy#0
>>> country US: DFS-FCC
>>> 	(2402 - 2472 @ 40), (N/A, 30), (N/A)
>>> 	(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
>>> 	(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
>>> 	(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
>>> 	(5735 - 5835 @ 80), (N/A, 30), (N/A)
>>> 	(57240 - 63720 @ 2160), (N/A, 40), (N/A)
>>>
>>> global
>>> country PL: 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)
>>>
>>> —————————
>>> $iw list
>>> ...
>>> 	* 5260 MHz [52] (20.0 dBm) (radar detection)
>>> 			  DFS state: usable (for 1824 sec)
>>> 			  DFS CAC time: 60000 ms
>>>>>>
>>>>>> Jean-Luc
>>>
>>>
>>> _______________________________________________
>>> ath10k mailing list
>>> ath10k at lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/ath10k
>>>
>>
>> --
>> Ben Greear <greearb at candelatech.com>
>> Candela Technologies Inc  http://www.candelatech.com
>


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




More information about the ath10k mailing list