Wlan interface fails after a couple of days

For several weeks now, the wlan0 interface in our Turris Omnia (firmware version: OpenWrt omnia 15.05 r47055) locks up every couple of days (SSID disappears for clients) until I reboot the device. When this happens, the System Log shows repeatedly the following line:

2018-08-11 08:18:03 warning kernel[]: [639502.620955] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request

And the Kernel Log shows:

[605108.003760] ath10k_pci 0000:02:00.0: failed to install key for vdev 0 peer 64:bc:0c:67:b4:da: -110
[605108.003770] wlan0: failed to remove key (0, 64:bc:0c:67:b4:da) from hardware (-110)
[605108.012164] ath10k_pci 0000:02:00.0: cipher 0 is not supported
[605108.012172] ath10k_pci 0000:02:00.0: failed to remove peer wep key 0: -95
[605108.012178] ath10k_pci 0000:02:00.0: failed to clear all peer wep keys for vdev 0: -95
[605108.012184] ath10k_pci 0000:02:00.0: failed to disassociate station: 64:bc:0c:67:b4:da vdev 0: -95
[605108.012187] ------------[ cut here ]------------
[605108.012258] WARNING: CPU: 1 PID: 3102 at /home/beast/beast/workspace/omnia-stable/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/linux-mvebu/compat-wireless-2017-01-31/net/mac80211/sta_info.c:956 sta_set_sinfo+0xa8c/0xaec [mac80211]()
[605108.012262] Modules linked in: qcserial option iptable_nat ath9k usb_wwan rndis_host qmi_wwan pppoe nf_nat_pptp nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_ipv6 nf_conntrack_ipv4 nf_conntrack_amanda ipt_REJECT ipt_MASQUERADE ebtable_nat ebtable_filter ebtable_broute cdc_ether ath9k_common armada_thermal xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial usbnet ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_kmp ts_fsm ts_bm thermal_sys pppox ppp_mppe ppp_async nfnetlink nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack mvsdio iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables hwmon ebtables ebt_vlan ebt_stp ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_among ebt_802_3 crc_ccitt cdc_wdm ath9k_hw fuse sch_teql sch_tbf sch_sfq sch_red sch_prio sch_pie sch_netem sch_htb sch_gred sch_fq sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_vlan act_police act_pedit act_nat act_ipt act_gact act_csum act_bpf act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbdev ledtrig_oneshot xt_LED ledtrig_morse ledtrig_heartbeat ledtrig_gpio cryptodev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables pppoatm ppp_generic slhc nfsd nfsv3 msdos ip_gre gre ifb sit ip6_tunnel tunnel6 tunnel4 ip_tunnel veth tun snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore rxkad vfat fat udf crc_itu_t ntfs nfs_layout_nfsv41_files nfsv4 nfs auth_rpcgss oid_registry lockd sunrpc grace minix isofs hfsplus hfs cramfs configfs cifs autofs4 kafs af_rxrpc dns_resolver dm_crypt dm_mirror dm_region_hash dm_log dm_mod br2684 atm multipath fscache raid456 async_raid6_recov async_pq async_xor async_memcpy async_tx raid10 raid1 raid0 linear md_mod nls_utf8 nls_koi8_r nls_cp1255 nls_iso8859_6 nls_iso8859_2 nls_iso8859_15 nls_iso8859_13 nls_iso8859_1 nls_cp932 nls_cp866 nls_cp864 nls_cp862 nls_cp852 nls_cp850 nls_cp775 nls_cp437 nls_cp1251 nls_cp1250 xts algif_skcipher algif_hash af_alg sha512_generic sha256_generic sha1_generic seqiv jitterentropy_rng drbg pcbc md5 md4 marvell_cesa hmac gf128mul fcrypt ecb des_generic ctr cmac ccm cbc authenc xhci_plat_hcd xhci_pci xhci_hcd uhci_hcd ledtrig_transient ehci_orion ehci_platform ehci_hcd ahci_platform uas usb_storage xfs libcrc32c jfs f2fs exfat usbcore nls_base usb_common mii aead crypto_null
[605108.012597] CPU: 1 PID: 3102 Comm: hostapd Tainted: G        W       4.4.138-1e8e1b4c23f383e990eb3c4f490f5f2e-1 #1
[605108.012601] Hardware name: Marvell Armada 380/385 (Device Tree)
[605108.012604] Backtrace: 
[605108.012615] [<c001c444>] (dump_backtrace) from [<c001c684>] (show_stack+0x18/0x1c)
[605108.012618]  r6:00000000 r5:60000013 r4:c0734528 r3:00000000
[605108.012631] [<c001c66c>] (show_stack) from [<c02f99f0>] (dump_stack+0x98/0xac)
[605108.012639] [<c02f9958>] (dump_stack) from [<c0029124>] (warn_slowpath_common+0x8c/0xbc)
[605108.012641]  r6:000003bc r5:bf6f1d80 r4:00000000 r3:00000006
[605108.012651] [<c0029098>] (warn_slowpath_common) from [<c00291f8>] (warn_slowpath_null+0x24/0x2c)
[605108.012653]  r8:00000000 r7:bf74b285 r6:ed71a480 r5:ed710ba0 r4:ece4b800
[605108.012690] [<c00291d4>] (warn_slowpath_null) from [<bf6f1d80>] (sta_set_sinfo+0xa8c/0xaec [mac80211])
[605108.012739] [<bf6f1c34>] (sta_set_sinfo [mac80211]) from [<bf6f1e08>] (__sta_info_destroy+0x28/0x30 [mac80211])
[605108.012742]  r7:ec0ed240 r6:ed710000 r5:ece4b800 r4:00000000
[605108.012790] [<bf6f1de0>] (__sta_info_destroy [mac80211]) from [<bf6f1e94>] (sta_info_destroy_addr_bss+0x34/0x50 [mac80211])
[605108.012793]  r5:e9a34f20 r4:ed71a480
[605108.012843] [<bf6f1e60>] (sta_info_destroy_addr_bss [mac80211]) from [<bf706d78>] (ieee80211_del_station+0x20/0x30 [mac80211])
[605108.012847]  r5:ed71a000 r4:e9a34f20
[605108.012901] [<bf706d58>] (ieee80211_del_station [mac80211]) from [<bf6b2b34>] (nl80211_del_station+0xc0/0xfc [cfg80211])
[605108.012904]  r4:e9b3dcf0 r3:bf706d58
[605108.012928] [<bf6b2a74>] (nl80211_del_station [cfg80211]) from [<c04ae3ec>] (genl_rcv_msg+0x264/0x3f4)
[605108.012931]  r6:ed664400 r5:bf6d2234 r4:bf6db140
[605108.012940] [<c04ae188>] (genl_rcv_msg) from [<c04ad638>] (netlink_rcv_skb+0xb4/0xc8)
[605108.012943]  r10:00000008 r9:00000000 r8:00000000 r7:00000028 r6:c04ae188 r5:ec0ed240
[605108.012951]  r4:e9a34f00
[605108.012957] [<c04ad584>] (netlink_rcv_skb) from [<c04ae17c>] (genl_rcv+0x30/0x3c)
[605108.012960]  r6:ec0ed240 r5:ec0ed240 r4:c0749598 r3:00000001
[605108.012970] [<c04ae14c>] (genl_rcv) from [<c04acf70>] (netlink_unicast+0x15c/0x24c)
[605108.012972]  r5:ed096000 r4:ee902400
[605108.012979] [<c04ace14>] (netlink_unicast) from [<c04ad428>] (netlink_sendmsg+0x31c/0x350)
[605108.012982]  r8:ec0ed240 r7:00000000 r6:00000028 r5:ed096000 r4:e9b3df4c
[605108.012994] [<c04ad10c>] (netlink_sendmsg) from [<c046383c>] (sock_sendmsg+0x1c/0x2c)
[605108.012997]  r10:00000000 r9:00000000 r8:e9b3de28 r7:00000000 r6:ee447980 r5:00000000
[605108.013005]  r4:e9b3df4c
[605108.013011] [<c0463820>] (sock_sendmsg) from [<c0464040>] (___sys_sendmsg+0x1f4/0x1fc)
[605108.013017] [<c0463e4c>] (___sys_sendmsg) from [<c0464d80>] (__sys_sendmsg+0x44/0x74)
[605108.013019]  r10:00000000 r9:e9b3c000 r8:c0009ec4 r7:00000128 r6:be820e9c r5:00000000
[605108.013027]  r4:ee447980
[605108.013034] [<c0464d3c>] (__sys_sendmsg) from [<c0464dc0>] (SyS_sendmsg+0x10/0x14)
[605108.013036]  r6:00115f50 r5:00000000 r4:00000000
[605108.013046] [<c0464db0>] (SyS_sendmsg) from [<c0009d00>] (ret_fast_syscall+0x0/0x48)
[605108.013049] ---[ end trace 288d76213094f04b ]---
[605111.003538] ath10k_pci 0000:02:00.0: failed to delete peer 64:bc:0c:67:b4:da for vdev 0: -11
[605111.003550] ath10k_pci 0000:02:00.0: found sta peer 64:bc:0c:67:b4:da (ptr e4798000 id 220) entry on vdev 0 after it was supposedly removed
[605117.003107] ath10k_pci 0000:02:00.0: failed to install key for vdev 0 peer 1c:ab:a7:a4:de:54: -11
[605117.003116] wlan0: failed to remove key (0, 1c:ab:a7:a4:de:54) from hardware (-11)
[605120.002892] ath10k_pci 0000:02:00.0: failed to install key for vdev 0 peer 10:68:3f:7a:71:1c: -11
[605120.002900] wlan0: failed to remove key (0, 10:68:3f:7a:71:1c) from hardware (-11)
[605120.011515] ath10k_pci 0000:02:00.0: cipher 0 is not supported
[605120.011523] ath10k_pci 0000:02:00.0: failed to remove peer wep key 0: -95
[605120.011529] ath10k_pci 0000:02:00.0: failed to clear all peer wep keys for vdev 0: -95
[605120.011534] ath10k_pci 0000:02:00.0: failed to disassociate station: 1c:ab:a7:a4:de:54 vdev 0: -95
[605123.002677] ath10k_pci 0000:02:00.0: failed to delete peer 1c:ab:a7:a4:de:54 for vdev 0: -11
[605123.002689] ath10k_pci 0000:02:00.0: found sta peer 1c:ab:a7:a4:de:54 (ptr e4798c00 id 21) entry on vdev 0 after it was supposedly removed
[605123.003478] ath10k_pci 0000:02:00.0: cipher 0 is not supported
[605123.003485] ath10k_pci 0000:02:00.0: failed to remove peer wep key 0: -95
[605126.002457] ath10k_warn: 2 callbacks suppressed
[605126.002471] ath10k_pci 0000:02:00.0: failed to delete peer 10:68:3f:7a:71:1c for vdev 0: -11
[605126.002479] ath10k_pci 0000:02:00.0: found sta peer 10:68:3f:7a:71:1c (ptr e4799000 id 218) entry on vdev 0 after it was supposedly removed
[605129.002242] ath10k_pci 0000:02:00.0: failed to set beacon mode for vdev 0: -11
[605132.002026] ath10k_pci 0000:02:00.0: failed to set dtim period for vdev 0: -11
[605135.001810] ath10k_pci 0000:02:00.0: failed to recalculate rts/cts prot for vdev 0: -11
[605138.001598] ath10k_pci 0000:02:00.0: failed to set cts protection for vdev 0: -11
[605141.001378] ath10k_pci 0000:02:00.0: failed to set erp slot for vdev 0: -11
[605144.001162] ath10k_pci 0000:02:00.0: failed to set preamble for vdev 0: -11
[638481.073498] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[638484.073280] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639502.620955] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639505.620742] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639512.880227] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639515.880015] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639522.899505] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639525.899333] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639533.028798] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639536.028585] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639543.088083] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639546.087871] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639553.107371] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639556.107153] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639563.276639] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639566.276427] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639573.105959] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639576.105738] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639583.115229] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639586.115018] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639593.224514] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639596.224302] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639603.123819] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639606.123607] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639613.123101] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639616.122887] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639623.242390] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639626.242177] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639633.151691] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639636.151478] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639643.140975] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
[639646.140763] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request

This is on Generic 802.11ac Wireless Controller (radio0), WPA2 PSK (CCMP), 802.11w Management Frame Protection: optional

Any idea what might be causing this? Is this more likely a software or a hardware defect?

Could be software related considering the backtrace showing in the log, like others reported here Kernel backtrace (Omnia)

I’m not really knowledgeable about the kernel, but the backtraces seem fairly different to me – the other seemingly originated in "disk" functions and this one in wireless stack. Both end in some "warn_slowpath" functions, but I assumed that’s after the real cause had happened (part of the code raising the warning).