Kmod-ath5k driver error, OpenWrt v21.02.0 x86-64

After installing the new version of OpenWrt 21-02-0 the system started reporting the following error message:
After a while the system crashes.
The error did not appear in branch 19.7

Thanks in advance

[ 5481.058223] ------------[ cut here ]------------
[ 5481.064062] WARNING: CPU: 1 PID: 0 at 0xffffffffa03673c1 [mac80211@000000008c94e993+0x73000]
[ 5481.073726] Modules linked in: xt_connlimit pppoe ppp_async nf_conncount iptable_nat ath5k ath xt_state xt_nat xt_helper xt_conntrack xt_connmark xt_connbytes xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_netlink nf_conntrack mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_recent xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY slhc sch_cake r8169 nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables forcedeth e1000e crc_ccitt compat bnx2 sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact i2c_dev xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet
[ 5481.073764]  ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ixgbe igb e1000 ifb mdio tun vfat fat nls_utf8 nls_iso8859_1 nls_cp437 button_hotplug tg3 ptp realtek pps_core mii libphy
[ 5481.209158] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G        W         5.4.143 #0
[ 5481.217948] Hardware name: BIOSTAR Group G31-M7 TE/G31-M7 TE, BIOS 080014  03/05/2009
[ 5481.227173] RIP: 0010:0xffffffffa03673c1 [mac80211@000000008c94e993+0x73000]
[ 5481.235634] Code: e0 05 41 09 c0 89 c8 66 c1 e8 03 44 88 42 01 88 42 02 e9 7b fd ff ff 0f 0b c6 02 ff 41 39 f4 0f 8f 20 ff ff ff e9 ac fd ff ff <0f> 0b e9 67 ff ff ff 0f 0b 41 39 f4 0f 8f 09 ff ff ff e9 95 fd ff
[ 5481.257342] RSP: 0018:ffffc900000bcc68 EFLAGS: 00010202
[ 5481.264070] RAX: 000000000000009d RBX: ffff88807b9e7200 RCX: 000000000000007e
[ 5481.272734] RDX: ffff88807b9119b0 RSI: 0000000000000001 RDI: ffff88807b902a70
[ 5481.281417] RBP: ffffc900000bcce0 R08: 0000000000000005 R09: 00000000000000bd
[ 5481.290118] R10: ffffc900000bcc90 R11: 0000000000000000 R12: 0000000000000004
[ 5481.298827] R13: ffff88807b911980 R14: ffff88807b9119b0 R15: ffff8880797e94b0
[ 5481.307544] FS:  0000000000000000(0000) GS:ffff88807d480000(0000) knlGS:0000000000000000
[ 5481.317253] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5481.324639] CR2: 00007eff4ef5fa00 CR3: 000000007a676000 CR4: 00000000000006e0
[ 5481.333440] Call Trace:
[ 5481.337570]  <IRQ>
[ 5481.341267]  ? 0xffffffff811c3a46
[ 5481.346271]  ? 0xffffffff8173ba0c
[ 5481.351266]  ? 0xffffffff8173fa55
[ 5481.356209]  0xffffffffa043a451 [ath5k@0000000027ee5eec+0x26000]
[ 5481.363793]  ? 0xffffffffa042ef00 [ath5k@0000000027ee5eec+0x26000]
[ 5481.371537]  0xffffffffa0440157 [ath5k@0000000027ee5eec+0x26000]
[ 5481.379103]  0xffffffffa0376fe1 [mac80211@000000008c94e993+0x73000]
[ 5481.386929]  0xffffffffa0377118 [mac80211@000000008c94e993+0x73000]
[ 5481.394743]  0xffffffffa037dcf8 [mac80211@000000008c94e993+0x73000]
[ 5481.402541]  0xffffffffa037f707 [mac80211@000000008c94e993+0x73000]
[ 5481.410323]  0xffffffff810b3411
[ 5481.414958]  0xffffffff810b34bd
[ 5481.419592]  0xffffffff81c000c9
[ 5481.424221]  0xffffffff810b371f
[ 5481.428849]  0xffffffff81a01847
[ 5481.433478]  0xffffffff81a00a0f
[ 5481.438110]  </IRQ>
[ 5481.441687] RIP: 0010:0xffffffff818fca34
[ 5481.447096] Code: 6b 01 00 48 89 d1 0f 01 c8 48 8b 00 a8 08 75 1c 8b 05 20 13 8e 00 85 c0 7e 07 0f 00 2d f7 7d 50 00 31 c0 48 89 c1 fb 0f 01 c9 <eb> 07 fb 66 66 90 66 66 90 65 48 8b 04 25 c0 6b 01 00 f0 80 60 02
[ 5481.468943] RSP: 0018:ffffc90000077eb0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd8
[ 5481.478054] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
[ 5481.486704] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 5481.495313] RBP: ffffc90000077eb0 R08: 0000000000000002 R09: 000000000001f1c0
[ 5481.503891] R10: 00000a0a575481d2 R11: 0000000000000057 R12: ffffffff8209bb00
[ 5481.512442] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 5481.520965]  0xffffffff8102d5b0
[ 5481.525464]  0xffffffff818fcbd7
[ 5481.529922]  0xffffffff810d591f
[ 5481.534343]  0xffffffff810d5a98
[ 5481.538717]  0xffffffff810438e5
[ 5481.543028]  0xffffffff810000d4
[ 5481.547317] ---[ end trace b25896f91f5e134b ]---
[ 5481.553077] ath5k: phy0: zero rate
[ 5481.557611] ------------[ cut here ]------------
[ 5481.563319] WARNING: CPU: 1 PID: 0 at 0xffffffffa042f072 [ath5k@0000000027ee5eec+0x26000]
[ 5481.572549] Modules linked in: xt_connlimit pppoe ppp_async nf_conncount iptable_nat ath5k ath xt_state xt_nat xt_helper xt_conntrack xt_connmark xt_connbytes xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_netlink nf_conntrack mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_recent xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY slhc sch_cake r8169 nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables forcedeth e1000e crc_ccitt compat bnx2 sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact i2c_dev xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet
[ 5481.572587]  ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ixgbe igb e1000 ifb mdio tun vfat fat nls_utf8 nls_iso8859_1 nls_cp437 button_hotplug tg3 ptp realtek pps_core mii libphy
[ 5481.706847] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G        W         5.4.143 #0
[ 5481.715615] Hardware name: BIOSTAR Group G31-M7 TE/G31-M7 TE, BIOS 080014  03/05/2009
[ 5481.724848] RIP: 0010:0xffffffffa042f072 [ath5k@0000000027ee5eec+0x26000]
[ 5481.733040] Code: 89 7e 10 44 89 56 14 89 46 08 31 c0 5b 5d c3 e8 34 16 34 e1 85 c0 75 1b 0f 0b b8 ea ff ff ff eb eb e8 22 16 34 e1 85 c0 75 21 <0f> 0b b8 ea ff ff ff eb d9 48 c7 c2 16 d6 44 a0 48 c7 c6 24 d6 44
[ 5481.754753] RSP: 0018:ffffc900000bcc98 EFLAGS: 00010282
[ 5481.761502] RAX: 0000000000000016 RBX: ffff88807b9026e0 RCX: 0000000000000000
[ 5481.770180] RDX: ffff88807d49cec0 RSI: ffff88807d4974d8 RDI: ffff88807d4974d8
[ 5481.778887] RBP: ffffc900000bcca0 R08: 0000000000000000 R09: 000000000000107d
[ 5481.787610] R10: 0000000000000001 R11: 0000000000000001 R12: ffff88807b9026e0
[ 5481.796339] R13: ffff88807b911980 R14: 0000000000000015 R15: ffff88807b908610
[ 5481.805080] FS:  0000000000000000(0000) GS:ffff88807d480000(0000) knlGS:0000000000000000
[ 5481.814816] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5481.822228] CR2: 00007eff4ef5fa00 CR3: 000000007a676000 CR4: 00000000000006e0
[ 5481.831054] Call Trace:
[ 5481.835211]  <IRQ>
[ 5481.838927]  0xffffffffa043a666 [ath5k@0000000027ee5eec+0x26000]
[ 5481.846659]  ? 0xffffffffa042ef00 [ath5k@0000000027ee5eec+0x26000]
[ 5481.854519]  0xffffffffa0440157 [ath5k@0000000027ee5eec+0x26000]
[ 5481.862144]  0xffffffffa0376fe1 [mac80211@000000008c94e993+0x73000]
[ 5481.870016]  0xffffffffa0377118 [mac80211@000000008c94e993+0x73000]
[ 5481.877857]  0xffffffffa037dcf8 [mac80211@000000008c94e993+0x73000]
[ 5481.885701]  0xffffffffa037f707 [mac80211@000000008c94e993+0x73000]
[ 5481.893530]  0xffffffff810b3411
[ 5481.898219]  0xffffffff810b34bd
[ 5481.902900]  0xffffffff81c000c9
[ 5481.907552]  0xffffffff810b371f
[ 5481.912197]  0xffffffff81a01847
[ 5481.916843]  0xffffffff81a00a0f
[ 5481.921487]  </IRQ>
[ 5481.925093] RIP: 0010:0xffffffff818fca34
[ 5481.930539] Code: 6b 01 00 48 89 d1 0f 01 c8 48 8b 00 a8 08 75 1c 8b 05 20 13 8e 00 85 c0 7e 07 0f 00 2d f7 7d 50 00 31 c0 48 89 c1 fb 0f 01 c9 <eb> 07 fb 66 66 90 66 66 90 65 48 8b 04 25 c0 6b 01 00 f0 80 60 02
[ 5481.952531] RSP: 0018:ffffc90000077eb0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd8
[ 5481.961754] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
[ 5481.970532] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 5481.979271] RBP: ffffc90000077eb0 R08: 0000000000000002 R09: 000000000001f1c0
[ 5481.987989] R10: 00000a0a575481d2 R11: 0000000000000057 R12: ffffffff8209bb00
[ 5481.996676] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 5482.005333]  0xffffffff8102d5b0
[ 5482.009976]  0xffffffff818fcbd7
[ 5482.014577]  0xffffffff810d591f
[ 5482.019126]  0xffffffff810d5a98
[ 5482.023631]  0xffffffff810438e5
[ 5482.028097]  0xffffffff810000d4
[ 5482.032521] ---[ end trace b25896f91f5e134c ]---

Hi everyone
I have not been able to use the new branch 21-02-0 of OpenWrt in my installation due to serious failures that caused the system to crash.
I have downgraded 19-7-8 and everything is working fine. Here I provide the data of my pc which I use 24x7 as a router in my soho-type office:

Status System
Hostname	 #######
Model	         BIOSTAR Group G31-M7 TE
Architecture	 Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz
Firmware Version OpenWrt 19.07.8 r11364-ef56c85848 / LuCI openwrt-19.07 branch git-21.189.23240-7b931da
Kernel Version	 4.14.241
Local Time	 2021-10-21 16:44:33
Uptime	         4h 5m 31s
Load Average	 0.19, 0.08, 0.02
Memory
Total Available	  1.85 GB / 1.94 GB (95%)
Used             70.10 MB / 1.94 GB (3%)
Buffered	  1.07 MB / 1.94 GB (0%)
Cached		 21.59 MB / 1.94 GB (1%)

Software installed with opkg command:

kmod-tg3
kmod-ath5k 
wpad
dnsmasq (removed)
dnsmasq-full 
mwan3 
luci-app-mwan3 
luci-app-adblock 
libustream-mbedtls 
tcpdump 
luci-app-sqm 
zerotier 
speedtest-netperf 
bc 
bind-dig 
bash
pcutils

Hardware:

root@######:~# lspci -k
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
        Subsystem: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller
lspci: Unable to load libkmod resources: error -12
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: i915
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 820f
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
        Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01)
        Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: ehci-pci
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: lpc_ich
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: ata_piix
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 5202
        Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 02)
        Subsystem: Biostar Microtech Int'l Corp Device 2308
        Kernel driver in use: r8169
03:01.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5704 Gigabit Ethernet (rev 10)
        Subsystem: Broadcom Inc. and subsidiaries NetXtreme BCM5704 Gigabit Ethernet
        Kernel driver in use: tg3
03:01.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5704 Gigabit Ethernet (rev 10)
        Subsystem: Broadcom Inc. and subsidiaries NetXtreme BCM5704 Gigabit Ethernet
        Kernel driver in use: tg3
03:02.0 Ethernet controller: Qualcomm Atheros AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] (rev 01)
        Subsystem: Qualcomm Atheros Compex Wireless 802.11 b/g  MiniPCI Adapter, Rev A1 [WLM54G]
        Kernel driver in use: ath5k

I hope this information help to improve the compatibility of the system with the new branch 21-02.

I doubt that anyone (certainly not a developer) has tried to use ath5k in a long time to notice a bug. ath5k cards because they are b/g only, are severely deprecated. If you're doing anything serious with wifi, upgrade the hardware. Ath9k or ath10k pcie cards for desktops are not expensive. Or go to a router + AP separate box solution.

ath5k is one of the better behaved drivers and I'm still using regularly on (general purpose) linux (Atom N270, AR5007EG), albeit rarely in AP mode and even more rarely using OpenWrt (wl-500gPv1/ bcm47xx with AR5212) - so it 'should' still work fine'ish (within the constraints of its dated feature set).