#18686: ar71xx: DFS failure with HT40 / multiple VAPs
------------------------+---------------------------
Reporter: avalentin | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: kernel | Version: Trunk
Resolution: | Keywords: WLAN DFS HT40
------------------------+---------------------------
Comment (by braveheart_leo@…):
I'm observing the same behavior as well, on the same hardware, `WZR-HP-
AG300H` running `CHAOS CALMER (Bleeding Edge, r46421)`
I can't use a DFS channel (52) for my regdomain and have two VAPs at the
same time. This is the error log:
{{{
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598):
Configuration file: /var/run/hostapd-phy1.conf
Fri Jul 31 14:03:15 2015 kern.info kernel: [22317.560000] IPv6:
ADDRCONF(NETDEV_UP): wlan1: link is not ready
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): wlan1:
interface state UNINITIALIZED->COUNTRY_UPDATE
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): Using
interface wlan1 with hwaddr 00:24:a5:x:x:x and ssid "ssid1-5G"
Fri Jul 31 14:03:15 2015 kern.info kernel: [22318.000000] IPv6:
ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): Could not
set interface wlan1-1 flags (UP): Resource busy
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): Failed to
add BSS (BSSID=02:24:a5:x:x:x)
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): Interface
initialization failed
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): wlan1:
interface state COUNTRY_UPDATE->DISABLED
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): wlan1: AP-
DISABLED
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): wlan1:
Unable to setup interface.
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): wlan1:
interface state DISABLED->DISABLED
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): wlan1: AP-
DISABLED
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598):
hostapd_free_hapd_data: Interface wlan1-1 wasn't started
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): wlan1: AP-
DISABLED
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598):
hostapd_free_hapd_data: Interface wlan1 wasn't started
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): nl80211:
deinit ifname=wlan1 disabled_11b_rates=0
Fri Jul 31 14:03:15 2015 daemon.notice netifd: radio1 (9598): Device setup
failed: HOSTAPD_START_FAILED
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754):
Configuration file: /var/run/hostapd-phy1.conf
Fri Jul 31 14:03:26 2015 kern.info kernel: [22328.840000] IPv6:
ADDRCONF(NETDEV_UP): wlan1: link is not ready
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): wlan1:
interface state UNINITIALIZED->COUNTRY_UPDATE
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): Using
interface wlan1 with hwaddr 00:24:a5:x:x:x and ssid "ssid1-5G"
Fri Jul 31 14:03:26 2015 kern.info kernel: [22329.280000] IPv6:
ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): Could not
set interface wlan1-1 flags (UP): Resource busy
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): Failed to
add BSS (BSSID=02:24:a5:x:x:x)
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): Interface
initialization failed
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): wlan1:
interface state COUNTRY_UPDATE->DISABLED
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): wlan1: AP-
DISABLED
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): wlan1:
Unable to setup interface.
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): wlan1:
interface state DISABLED->DISABLED
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): wlan1: AP-
DISABLED
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754):
hostapd_free_hapd_data: Interface wlan1-1 wasn't started
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): wlan1: AP-
DISABLED
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754):
hostapd_free_hapd_data: Interface wlan1 wasn't started
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): nl80211:
deinit ifname=wlan1 disabled_11b_rates=0
Fri Jul 31 14:03:26 2015 daemon.notice netifd: radio1 (9754): Device setup
failed: HOSTAPD_START_FAILED
}}}
`/etc/config/wireless`:
{{{
config wifi-device 'radio1'
option type 'mac80211'
option channel '52'
option hwmode '11a'
option htmode 'HT40+'
option path 'pci0000:00/0000:00:12.0'
option txpower '20'
option distance '100'
option country 'PH'
option country_ie '1'
option doth '1'
option noscan '1'
option disabled '0'
config wifi-iface
option device 'radio1'
option mode 'ap'
option network 'wlan1'
option disabled '0'
option ssid 'ssid1-5G'
option encryption 'psk2'
option key 'key1'
option wpa_group_rekey '3600'
option wmm '1'
option uapsd '1'
option ieee80211w '1'
option isolate '0'
option hidden '0'
config wifi-iface
option device 'radio1'
option mode 'ap'
option network 'wlan1_1'
option disabled '0'
option ssid 'ssid2-5G'
option encryption 'psk2'
option key 'key2'
option wpa_group_rekey '3600'
option wmm '1'
option uapsd '1'
option ieee80211w '1'
option isolate '1'
option hidden '0'
}}}
Could this be perhaps a limitation?
BTW, DFS in ath9k now works in HT40 mode (thanks to this [1] patch) using
the above configuration, disabling the second VAP:
{{{
Fri Jul 31 13:28:07 2015 daemon.notice netifd: radio1 (7772): wlan1:
interface state UNINITIALIZED->COUNTRY_UPDATE
Fri Jul 31 13:28:07 2015 daemon.notice netifd: radio1 (7772): wlan1:
interface state COUNTRY_UPDATE->DFS
Fri Jul 31 13:28:07 2015 daemon.notice netifd: radio1 (7772): wlan1: DFS-
CAC-START freq=5260 chan=52 sec_chan=1, width=0, seg0=0, seg1=0,
cac_time=60s
Fri Jul 31 13:29:07 2015 daemon.notice netifd: radio1 (7772): wlan1: DFS-
CAC-COMPLETED success=1 freq=5260 ht_enabled=1 chan_offset=1 chan_width=2
cf1=5270 cf2=0
Fri Jul 31 13:29:07 2015 daemon.notice netifd: radio1 (7772): Using
interface wlan1 with hwaddr 00:24:a5:x:x:x and ssid "ssid1-5G"
Fri Jul 31 13:29:08 2015 daemon.notice netifd: radio1 (7772): wlan1:
interface state DFS->ENABLED
Fri Jul 31 13:29:08 2015 daemon.notice netifd: radio1 (7772): wlan1: AP-
ENABLED
Fri Jul 31 13:29:08 2015 kern.info kernel: [20270.840000] IPv6:
ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Fri Jul 31 13:29:08 2015 daemon.notice netifd: Network device 'wlan1' link
is up
Fri Jul 31 13:29:08 2015 daemon.notice netifd: Interface 'wlan1' is
enabled
Fri Jul 31 13:29:08 2015 daemon.notice netifd: Interface 'wlan1' is
setting up now
Fri Jul 31 13:29:08 2015 daemon.notice netifd: Interface 'wlan1' is now up
Fri Jul 31 13:29:08 2015 daemon.notice netifd: Interface 'wlan1' has link
connectivity
}}}
[1] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/135462
--
Ticket URL: <https://dev.openwrt.org/ticket/18686#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets