Randomly losing WiFi 5G on DIR-882 A1

Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware
Goto page 1, 2  Next
Author Message
fourmonster
DD-WRT Novice


Joined: 21 Mar 2020
Posts: 6

PostPosted: Fri Sep 10, 2021 9:36    Post subject: Randomly losing WiFi 5G on DIR-882 A1 Reply with quote
Hi All,

I am struggling with a WiFi 5G issue on a DIR-882 A1 router. Problem is that once every few days my WiFi 5G stops working ie. I am able to connect but no internet but in the meantime the WiFi 2G is working OK. The only thing that solves the problem is a router reboot (I did not try to switch off/on only the wireless radio or reboot the network service).
This is happening from the moment I switched from the DLink FW to DD-WRT with all the builds I have tried. Current DD-WRT build is v3.0-r47256 std (08/25/21).
Any idea how to solve this or do I have to live with it?

Thank you in advance for your support.

Here is the dmesg output (I assume that the problem is in the last 6 lines of dmesg where port no 4 goes down and up):
root@DD-WRT_Router2:~# dmesg
Linux version 4.14.244 (root@linux) (gcc version 10.0.1 (OpenWrt GCC 10.0.1 r12423-0493d57e04)) #1499 SMP Wed Aug 25 02:39:33 +07 2021
SoC Type: MediaTek MT7621 ver:1 eco:3
bootconsole [early0] enabled
CPU0 revision is: 0001992f (MIPS 1004Kc)
MIPS: machine is Dlink DIR882 A1
Determined physical RAM map:
memory: 08000000 @ 00000000 (usable)
VPE topology {2,2} total 4
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Zone ranges:
Normal [mem 0x0000000000000000-0x0000000007ffffff]
HighMem empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x0000000007ffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat 80607f20, node_mem_map 81003000
Normal zone: 256 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 32768 pages, LIFO batch:7
percpu: Embedded 14 pages/cpu s26032 r8192 d23120 u57344
pcpu-alloc: s26032 r8192 d23120 u57344 alloc=14*4096
pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
Built 1 zonelists, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,57600 console=ttyS0,57600n8 root=/dev/mtdblock5 rootfstype=squashfs noinitrd
log_buf_len individual max cpu contribution: 4096 bytes
log_buf_len total cpu_extra contributions: 12288 bytes
log_buf_len min size: 16384 bytes
log_buf_len: 32768 bytes
early log buf free: 14352(87%)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Writing ErrCtl register=000044f0
Readback ErrCtl register=000044f0
Memory: 122988K/131072K available (4983K kernel code, 255K rwdata, 928K rodata, 220K init, 213K bss, 8084K reserved, 0K cma-reserved, 0K highmem)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
NR_IRQS: 256
CPU Clock: 880MHz
clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
CPU1 revision is: 0001992f (MIPS 1004Kc)
Synchronize counters for CPU 1: done.
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
CPU2 revision is: 0001992f (MIPS 1004Kc)
Synchronize counters for CPU 2: done.
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
CPU3 revision is: 0001992f (MIPS 1004Kc)
Synchronize counters for CPU 3: done.
smp: Brought up 1 node, 4 CPUs
random: get_random_u32 called from bucket_table_alloc+0x2c8/0x3c8 with crng_init=0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 1024 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
FPU Affinity set after 11720 emulations
pull PCIe RST: RALINK_RSTCTRL = 4000000
release PCIe RST: RALINK_RSTCTRL = 7000000
***** Xtal 40MHz *****
release PCIe RST: RALINK_RSTCTRL = 7000000
Port 0 N_FTS = 1b105000
Port 1 N_FTS = 1b105000
Port 2 N_FTS = 1b102800
PCIE2 no card, disable it(RST&CLK)
-> 21007f2
PCIE0 enabled
PCIE1 enabled
PCI host bridge /pcie@1e140000 ranges:
MEM 0x0000000060000000..0x000000006fffffff
IO 0x000000001e160000..0x000000001e16ffff
PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
mt7621_gpio 1e000600.gpio: registering 32 gpios
mt7621_gpio 1e000600.gpio: registering 32 gpios
mt7621_gpio 1e000600.gpio: registering 32 gpios
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
pci_bus 0000:00: root bus resource [io 0x1e160000-0x1e16ffff]
pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:00.0: reg 0x14: [mem 0x60200000-0x6020ffff]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:01.0: reg 0x14: [mem 0x60210000-0x6021ffff]
pci 0000:00:01.0: supports D1
pci 0000:00:01.0: PME# supported from D0 D1 D3hot
pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
pci 0000:00:01.0: PCI bridge to [bus 02]
pci 0000:00:01.0: bridge window [mem 0x60100000-0x601fffff]
clocksource: Switched to clocksource GIC
NET: Registered protocol family 2
IP idents hash table entries: 2048 (order: 2, 16384 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
PCI: CLS 0 bytes, default 32
4 CPUs re-calibrate udelay(lpj = 2924544)
workingset: timestamp_bits=30 max_order=15 bucket_order=0
random: fast init done
squashfs: version 4.0 (2009/01/31) Phillip Lougher
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
serial8250_init
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
console [ttyS0] disabled
1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
console [ttyS0] enabled
bootconsole [early0] disabled
Ralink gpio driver initialized
MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
spi-mt7621 1e000b00.spi: sys_freq: 220000000
m25p80 spi0.0: w25q128 (16384 Kbytes)
spi0.0: parsing partitions cmdlinepart
spi0.0: got parser cmdlinepart
6 fixed-partitions partitions found on MTD device spi0.0
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000030000 : "u-boot"
0x000000030000-0x000000034000 : "u-boot-env"
0x000000040000-0x000000060000 : "factory"
0x000000060000-0x000001000000 : "linux"
random: crng init done
2 uimage-fw partitions found on MTD device linux
Creating 2 MTD partitions on "linux":
0x000000000000-0x0000001f0000 : "kernel"
0x0000001f0000-0x000000fa0000 : "rootfs"
mtd: device 5 (rootfs) set to be root filesystem
1 squashfs-split partitions found on MTD device rootfs
0x000000ea0000-0x000000fa0000 : "ddwrt"
0x000000ff0000-0x000001000000 : "nvram"
0x000000000000-0x000001000000 : "fullflash"
libphy: Fixed MDIO Bus: probed
mtk_soc_eth 1e100000.ethernet: generated random MAC address f6:aa:9a:6e:33:ef
libphy: mdio: probed
mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
GACT probability NOT on
Mirror/redirect action on
Simple TC action Loaded
netem: version 1.3
u32 classifier
Performance counters on
input device check on
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
nf_conntrack_rtsp v0.7 loading
xt_time: kernel timezone is -0000
gre: GRE over IPv4 demultiplexor driver
nf_nat_rtsp v0.7 loading
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 17
Bridge firewalling registered
8021q: 802.1Q VLAN Support v1.8
searching for nvram
nvram size = 65536
found nvram at 0
VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
Freeing unused kernel memory: 220K
This architecture does not have kernel memory protection.
mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
Loading modules backported from Linux version v5.10-rc6-0-gb65054597872
Backport generated by backports.git v5.10-rc6-1-0-g3a9d70a3
bus=0x1, slot = 0x0, irq=0x0
disable 5 ghz range
mt7615e 0000:01:00.0: Load Calibration File /etc/wlan/MT7615_2G_EEPROM.bin
initialize fq_codel with 262144 bytes memory limit
ieee80211_txq_setup_flows: set limit to 16777216 bytes
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
bus=0x2, slot = 0x1, irq=0x0
disable 2 ghz range
mt7615e 0000:02:00.0: Load Calibration File /etc/wlan/MT7615_5G_EEPROM.bin
initialize fq_codel with 262144 bytes memory limit
ieee80211_txq_setup_flows: set limit to 16777216 bytes
ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a

mt7615e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a

mt7615e 0000:02:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
mt7615e 0000:01:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307
mt7615e 0000:02:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307
mtk_soc_eth 1e100000.ethernet: PPE started
device br0 entered promiscuous mode
br0: port 1(vlan1) entered blocking state
br0: port 1(vlan1) entered disabled state
device vlan1 entered promiscuous mode
device eth0 entered promiscuous mode
br0: port 2(vlan2) entered blocking state
br0: port 2(vlan2) entered disabled state
device vlan2 entered promiscuous mode
br0: port 2(vlan2) entered blocking state
br0: port 2(vlan2) entered forwarding state
br0: port 1(vlan1) entered blocking state
br0: port 1(vlan1) entered forwarding state
device br0 left promiscuous mode
device br0 entered promiscuous mode
device br0 left promiscuous mode
br0: port 3(wlan0) entered blocking state
br0: port 3(wlan0) entered disabled state
device wlan0 entered promiscuous mode
br0: port 3(wlan0) entered blocking state
br0: port 3(wlan0) entered forwarding state
br0: port 4(wlan1) entered blocking state
br0: port 4(wlan1) entered disabled state
device wlan1 entered promiscuous mode
br0: port 4(wlan1) entered blocking state
br0: port 4(wlan1) entered forwarding state
mtk_soc_eth 1e100000.ethernet eth0: port 4 link down
mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
mtk_soc_eth 1e100000.ethernet eth0: port 4 link down
mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
mtk_soc_eth 1e100000.ethernet eth0: port 4 link down
mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
Sponsor
Milax
DD-WRT User


Joined: 24 Oct 2020
Posts: 175

PostPosted: Fri Sep 10, 2021 11:06    Post subject: Reply with quote
Hi,

I have the same router and i had no Wifi 5GHz dropping connection issue with r47256. Could you post your Wifi setting (including advanced settings) ?
fourmonster
DD-WRT Novice


Joined: 21 Mar 2020
Posts: 6

PostPosted: Fri Sep 10, 2021 11:21    Post subject: Reply with quote
Hi,

Here are my WiFi settings.
d33b0_n4p41m
DD-WRT User


Joined: 10 Sep 2021
Posts: 133

PostPosted: Fri Sep 10, 2021 11:32    Post subject: Reply with quote
Allow channel overlapping should be enabled;
RTS threshold should be 980;
Beacon Interval 100;
DTIM 5;
Sensitivity / ACK 900 or 1350
fourmonster
DD-WRT Novice


Joined: 21 Mar 2020
Posts: 6

PostPosted: Fri Sep 10, 2021 11:43    Post subject: Reply with quote
Thx, I will try these settings and check if it will help
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Fri Sep 10, 2021 11:48    Post subject: Reply with quote
d33b0_n4p41m wrote:
Allow channel overlapping should be enabled


the option should definitely not be activated, it is for experts who are definitely familiar with the frequencies and channels.

the option allows invalid channel configurations that are not supported by most clients.

d33b0_n4p41m wrote:
Beacon Interval 100
DTIM 5


with a beacon interval of 100, DTIM should be "2"

so please do not give wrong advice
Milax
DD-WRT User


Joined: 24 Oct 2020
Posts: 175

PostPosted: Fri Sep 10, 2021 12:10    Post subject: Reply with quote
The differences with my settings is that i have no protection mode defined, Beacon interval is 100 and DTIM is 2 (also using channel 44). Funny that your max TX Power is deteted as 26, mine is 29 (but set as default 20)
fourmonster wrote:
Hi,

Here are my WiFi settings.
fourmonster
DD-WRT Novice


Joined: 21 Mar 2020
Posts: 6

PostPosted: Fri Sep 10, 2021 12:28    Post subject: Reply with quote
To be honest I tried different settings (also followed some guides from the forum ie: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324014), but it is always the same.
I will try to go with the channel below 100. Unfortunatly it is little bit crowdy here in the 5Ghz range, but I will give it a try.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Fri Sep 10, 2021 12:57    Post subject: Reply with quote
ho1Aetoo wrote:
d33b0_n4p41m wrote:
Allow channel overlapping should be enabled


the option should definitely not be activated, it is for experts who are definitely familiar with the frequencies and channels.

the option allows invalid channel configurations that are not supported by most clients.


Allow Channel Overlapping = disable

allows all valid channel configurations as shown in graphic 1

Allow Channel Overlapping = enable

allows invalid channel configurations as shown in graphic 2
(but not very useful because such configurations are not supported by most clients / side effects can be that clients can not connect or connect only with 20Mhz)

Therefore it is absolutely not recommended to use this option.

Am more or less also the inventor of the function.
d33b0_n4p41m
DD-WRT User


Joined: 10 Sep 2021
Posts: 133

PostPosted: Fri Sep 10, 2021 14:12    Post subject: Reply with quote
Perhaps I was in error on the channel overlapping, perhaps not; a DTIM every 500ms works with most clients without issue. But there are other considerations:

Optimal settings, depending on environment can be a BI of as low as 75 and as high as 120 with a DTIM between 1 and 3. https://technologyreviewer.com/dtim-interval-optimal-setting/
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Fri Sep 10, 2021 15:19    Post subject: Reply with quote
You don't need to experiment much.

If you operate only 1 AP without VAP's then you take the standard setting:

Beacon 100
DTIM 2

This setting works on millions and millions of devices without problems.

With additional VAP's

up to 4 VAP's Beacon ~200
up to 8 VAP's Beacon ~300
up to 12 VAP's Beacon ~400
16 VAP's Beacon >400
DTIM 1

DTIM can be increased if you want to increase the battery power of mobile devices, but it is more or less a theoretical consideration since practically you usually don't notice a big change.

this has all been tried here in the forum several times with the result that unusual settings have caused maximum problems on the clients.
d33b0_n4p41m
DD-WRT User


Joined: 10 Sep 2021
Posts: 133

PostPosted: Fri Sep 10, 2021 15:23    Post subject: Reply with quote
I'm sure your extensive knowledge and testing far outweighs any thoughts I have; I was just speaking from a perspective of use in a mixed client environment where there are no virtual interfaces involved. Increased BI will not give you any benefit, IMHO. In fact, the increased BI will make the AP slower to appear, if I am not mistaken. If I am wrong in any of this, please forgive my perceived ignorance.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Fri Sep 10, 2021 15:30    Post subject: Reply with quote
yes that is correct, but beacon frames are not sent per hardware radio but per AP/VAP

this produces with 16 VAP's a lot of overhead so it is useful to increase the beacon when running multiple VAP's


Last edited by ho1Aetoo on Sat Sep 11, 2021 5:49; edited 1 time in total
d33b0_n4p41m
DD-WRT User


Joined: 10 Sep 2021
Posts: 133

PostPosted: Fri Sep 10, 2021 15:42    Post subject: Reply with quote
I see your point. Cooling fan modifications may offset the issue. In some configurations, it would likely be wiser to use separate APs or wireless bridges, but that is out of the scope of the original topic. The topic is wireless networking drops, which is due to the client device going to sleep or NOT going to sleep (wireless hanging on client device), most likely. And there is a noticeable difference in BI and DTIM intervals on Android and iPhone/iPad when it comes to battery consumption. Especially on the older devices that were plagued with the deliberate iOS code changes.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Sat Sep 11, 2021 5:51    Post subject: Reply with quote
I meant network overhead (not overheat - i made a mistake there, of course) and no thermal problems Mr. Green lol

and according to the description of the OP it sounds less like a client problem

if clients can connect to the 5Ghz WLAN but no traffic flows and a router reboot solves the problem
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum