Hey,
so I hit this issue again more less… I find out that WiFi is not broadcasting, so I went to LuCI to check… all looked ok, so I tried hit restart on Qualcomm Atheros QCA9880 device. Since then, in LuCI interface with my wifi looks disabled.
How I can help with debugging this to find the rootcause to fix the bug? Or it´s HW issue? Understand me that having stable wifi like this at home is not a best experience to have
. Luckily, I am not using this router so far… but I will in a month, so I would like to have it stable instead of getting divorce papers 
Configs here:
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11a'
option macaddr '<mac:add:ress>'
option country 'CZ'
option htmode 'VHT20'
option channel '120'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'Turris_5'
option hidden '1'
option encryption 'psk2+ccmp'
option wpa_group_rekey '86400'
option key '<password>'
config wifi-device 'radio1'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option macaddr '<mac:add:ress>'
option htmode 'VHT80'
option disabled '1'
option country 'CZ'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'Turris'
option encryption 'none'
option disabled '1'
config wifi-iface 'guest_iface_0'
option disabled '1'
option device 'radio0'
Wifi status:
{
"radio0": {
"up": false,
"pending": false,
"autostart": true,
"disabled": false,
"retry_setup_failed": true,
"config": {
"hwmode": "11a",
"macaddr": "<mac:add:ress>",
"country": "CZ",
"htmode": "VHT20",
"channel": "120"
},
"interfaces": [
{
"section": "default_radio0",
"config": {
"mode": "ap",
"ssid": "Turris_5",
"hidden": true,
"encryption": "psk2+ccmp",
"wpa_group_rekey": 86400,
"key": "<password>",
"network": [
"lan"
],
"mode": "ap"
}
}
]
},
"radio1": {
"up": false,
"pending": false,
"autostart": true,
"disabled": true,
"retry_setup_failed": false,
"config": {
"channel": "36",
"hwmode": "11a",
"macaddr": "<mac:add:ress>",
"htmode": "VHT80",
"country": "CZ",
"disabled": true
},
"interfaces": [
]
}
}
And here are some logs which might help (dont know why timestamps are fuckedup… maybe hostapd is working in UTC):
Aug 9 06:50:51 turris hostapd: wlan0: interface state ENABLED->DISABLED
Aug 9 06:50:51 turris hostapd: wlan0: AP-DISABLED
Aug 9 06:50:51 turris hostapd: wlan0: CTRL-EVENT-TERMINATING
Aug 9 06:50:51 turris hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Aug 9 08:50:51 turris kernel: [1228706.449676] device wlan0 left promiscuous mode
Aug 9 08:50:51 turris kernel: [1228706.454422] br-lan: port 5(wlan0) entered disabled state
Aug 9 06:50:51 turris netifd: Network device 'wlan0' link is down
Aug 9 08:50:53 turris kernel: [1228708.074199] ath10k_pci 0000:00:00.0: No VIF found for vdev 0
Aug 9 08:50:53 turris kernel: [1228708.080362] ath10k_pci 0000:00:00.0: wmi-event-beacon-tx, could not find vdev for id: 0
Aug 9 08:50:55 turris kernel: [1228709.559294] ath10k_pci 0000:00:00.0: WARNING: failed to wait for beacon tx callback for vdev 0: 0
Aug 9 06:50:55 turris hostapd: Configuration file: /var/run/hostapd-phy0.conf
Aug 9 08:50:56 turris kernel: [1228711.250252] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16 peers: 127 tid: 256
Aug 9 08:50:56 turris kernel: [1228711.267638] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
Aug 9 08:50:56 turris kernel: [1228711.274011] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424 sw-crypt: 0 ct-sta: 0'
Aug 9 08:50:56 turris kernel: [1228711.282802] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 20904 iram: 26056'
Aug 9 08:50:56 turris kernel: [1228711.349923] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
Aug 9 08:50:56 turris kernel: [1228711.366879] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Aug 9 08:50:56 turris kernel: [1228711.390242] br-lan: port 5(wlan0) entered blocking state
Aug 9 08:50:56 turris kernel: [1228711.395771] br-lan: port 5(wlan0) entered disabled state
Aug 9 08:50:56 turris kernel: [1228711.401635] device wlan0 entered promiscuous mode
Aug 9 06:50:56 turris hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Aug 9 06:50:56 turris hostapd: wlan0: interface state COUNTRY_UPDATE->DFS
Aug 9 06:50:56 turris hostapd: wlan0: DFS-CAC-START freq=5600 chan=120 sec_chan=0, width=0, seg0=0, seg1=0, cac_time=60s
Aug 9 06:52:01 turris hostapd: wlan0: DFS-CAC-COMPLETED success=1 freq=5600 ht_enabled=1 chan_offset=0 chan_width=1 cf1=5600 cf2=0
Aug 9 06:52:01 turris hostapd: Using interface wlan0 with hwaddr <mac:add:ress> and ssid "Turris_5"
Aug 9 08:52:02 turris kernel: [1228776.597213] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Aug 9 08:52:02 turris kernel: [1228776.604342] br-lan: port 5(wlan0) entered blocking state
Aug 9 08:52:02 turris kernel: [1228776.609689] br-lan: port 5(wlan0) entered forwarding state
Aug 9 06:52:02 turris hostapd: wlan0: interface state DFS->ENABLED
Aug 9 06:52:02 turris hostapd: wlan0: AP-ENABLED
Aug 9 06:52:02 turris netifd: radio0 (25330): Command failed: Not found
Aug 9 06:52:12 turris hostapd: wlan0: interface state ENABLED->DISABLED
Aug 9 06:52:12 turris hostapd: wlan0: AP-DISABLED
Aug 9 06:52:12 turris hostapd: wlan0: CTRL-EVENT-TERMINATING
Aug 9 06:52:12 turris hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Aug 9 08:52:12 turris kernel: [1228786.742088] device wlan0 left promiscuous mode
Aug 9 08:52:12 turris kernel: [1228786.746726] br-lan: port 5(wlan0) entered disabled state
Aug 9 06:52:12 turris hostapd: Configuration file: /var/run/hostapd-phy0.conf
Aug 9 08:52:13 turris kernel: [1228788.401066] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16 peers: 127 tid: 256
Aug 9 08:52:13 turris kernel: [1228788.418545] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
Aug 9 08:52:13 turris kernel: [1228788.424746] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424 sw-crypt: 0 ct-sta: 0'
Aug 9 08:52:13 turris kernel: [1228788.433363] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 20904 iram: 26056'
Aug 9 08:52:13 turris kernel: [1228788.500313] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
Aug 9 08:52:14 turris kernel: [1228788.516317] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Aug 9 08:52:14 turris kernel: [1228788.526709] br-lan: port 5(wlan0) entered blocking state
Aug 9 08:52:14 turris kernel: [1228788.532589] br-lan: port 5(wlan0) entered disabled state
Aug 9 08:52:14 turris kernel: [1228788.538702] device wlan0 entered promiscuous mode
Aug 9 06:52:14 turris hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Aug 9 06:52:14 turris hostapd: wlan0: interface state COUNTRY_UPDATE->DFS
Aug 9 06:52:14 turris hostapd: wlan0: DFS-CAC-START freq=5600 chan=120 sec_chan=0, width=0, seg0=0, seg1=0, cac_time=60s
Aug 9 06:52:53 turris hostapd: wlan0: DFS-CAC-COMPLETED success=0 freq=5600 ht_enabled=1 chan_offset=0 chan_width=1 cf1=5600 cf2=0
Aug 9 06:52:53 turris hostapd: wlan0: INTERFACE-DISABLED
Aug 9 08:52:53 turris kernel: [1228828.036560] br-lan: port 5(wlan0) entered disabled state
Aug 9 08:52:53 turris kernel: [1228828.089192] device wlan0 left promiscuous mode
Aug 9 08:52:53 turris kernel: [1228828.094034] br-lan: port 5(wlan0) entered disabled state
Aug 9 06:52:53 turris hostapd: Configuration file: /var/run/hostapd-phy0.conf
Aug 9 08:52:54 turris kernel: [1228829.491628] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16 peers: 127 tid: 256
Aug 9 08:52:55 turris kernel: [1228829.509099] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
Aug 9 08:52:55 turris kernel: [1228829.515414] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424 sw-crypt: 0 ct-sta: 0'
Aug 9 08:52:55 turris kernel: [1228829.524541] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 20904 iram: 26056'
Aug 9 08:52:55 turris kernel: [1228829.606680] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
Aug 9 06:52:55 turris hostapd: wlan0: INTERFACE-ENABLED
Aug 9 06:52:55 turris hostapd: wlan0: interface state DFS->DFS
Aug 9 06:52:55 turris hostapd: wlan0: DFS-CAC-START freq=5600 chan=120 sec_chan=0, width=0, seg0=0, seg1=0, cac_time=60s
Aug 9 08:52:55 turris kernel: [1228829.623245] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Aug 9 06:52:55 turris hostapd: DFS start_dfs_cac() failed, -1
Aug 9 06:52:55 turris hostapd: wlan0: INTERFACE-DISABLED
Aug 9 06:52:55 turris hostapd: nl80211: Could not configure driver mode
Aug 9 06:52:55 turris hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Aug 9 06:52:55 turris hostapd: nl80211 driver initialization failed.
Aug 9 06:52:55 turris hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Aug 9 06:52:55 turris hostapd: wlan0: AP-DISABLED
Aug 9 06:52:55 turris hostapd: wlan0: CTRL-EVENT-TERMINATING
Aug 9 06:52:55 turris hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Aug 9 06:52:55 turris netifd: radio0 (26225): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 25756 path ()
Aug 9 06:52:55 turris netifd: radio0 (26225): Device setup failed: HOSTAPD_START_FAILED
Aug 9 06:53:05 turris hostapd: Configuration file: /var/run/hostapd-phy0.conf
Aug 9 08:53:06 turris kernel: [1228841.328130] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16 peers: 127 tid: 256
Aug 9 08:53:06 turris kernel: [1228841.345596] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
Aug 9 08:53:06 turris kernel: [1228841.352126] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424 sw-crypt: 0 ct-sta: 0'
Aug 9 08:53:06 turris kernel: [1228841.360678] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 20904 iram: 26056'
Aug 9 08:53:06 turris kernel: [1228841.427593] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
Aug 9 06:53:06 turris hostapd: wlan0: INTERFACE-ENABLED
Aug 9 08:53:06 turris kernel: [1228841.446464] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Aug 9 06:53:07 turris hostapd: wlan0: INTERFACE-DISABLED
Aug 9 06:53:07 turris hostapd: nl80211: Could not configure driver mode
Aug 9 06:53:07 turris hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Aug 9 06:53:07 turris hostapd: nl80211 driver initialization failed.
Aug 9 06:53:07 turris hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Aug 9 06:53:07 turris hostapd: wlan0: AP-DISABLED
Aug 9 06:53:07 turris hostapd: wlan0: CTRL-EVENT-TERMINATING
Aug 9 06:53:07 turris hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Aug 9 06:53:07 turris netifd: radio0 (26514): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 25756 path ()
Aug 9 06:53:07 turris netifd: radio0 (26514): Device setup failed: HOSTAPD_START_FAILED
root@turris:/etc# ps -ef | grep hostapd
root 25889 1 0 08:52 ? 00:00:02 /usr/sbin/hostapd -s -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf