firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Possible fix for TP-Link TL-WR1043N/ND v1 instability

Open kriegste opened this issue 6 years ago • 10 comments

WiFi on my TP-Link TL-WR1043N/ND v1 gets inaccessible and needs rebooting after high load situations.

Executing echo 0 > /sys/kernel/debug/ieee80211/phy0/ath9k/ani upon start seems to solve the issue. I am still monitoring, but after one week of testing, everything seems to be fine.

kriegste avatar May 06 '18 14:05 kriegste

Can you provide us with a bit of background information about the option and why it should solve the problem?

booo avatar May 07 '18 09:05 booo

ANI is "Adaptive Noise Immunity", but I have no clue if the bug is in the chip or the driver. Fact is, the problem is gone. My router is in a usable state finally.

It was mentioned here: https://github.com/libremesh/lime-packages/issues/144 https://www.reddit.com/r/linux/comments/203sn0/this_bug_has_been_around_for_years/ https://www.gargoyle-router.com/phpbb/viewtopic.php?t=4667 https://www.walterschlag.net/?paged=16 https://tweakers.net/downloads/42463/lede-17013.html

kriegste avatar May 07 '18 10:05 kriegste

I can confirm that the TP-Link TL-WR1043N/ND v1 will collapse under high wifi load, this is why I replaced it by another router. Should be

echo 0 > /sys/kernel/debug/ieee80211/phy0/ath9k/ani

the standard for this router?

bobster-galore avatar May 16 '18 23:05 bobster-galore

As a sidenote: My 1043v2 was not affected by that ani change, neither positive nor negative, wifi still stopped working afters hours under high load / many users. But it is a fix I read several times about, and it seems to help under certain conditions (maybe only on that router version? I can't remember reading about that problem/fix being version specific). So I'd vote for including that change for 1043 models.

torte71 avatar May 17 '18 05:05 torte71

Uptime now 19 days, still no problems (v1). Before that fix I needed to reboot up to twice a day, depending on the load.

kriegste avatar May 17 '18 08:05 kriegste

Turning off ANI seems to have decreased load and stability on one of my TL-WR1043N/ND v1. The other seems to be unaffected, but already showed low load without it. See attached graph.

graph php

vzsze avatar Jun 14 '18 08:06 vzsze

This is the unaffected node, showing low load before and after turning off ANI. graph kakao

vzsze avatar Jun 14 '18 10:06 vzsze

Is this something we should discuss with the upstream project (openwrt)? Is there already a discussion upstream? If not can someone open a ticket?

booo avatar Aug 21 '18 11:08 booo

of course there are many ticket about that problem on other projects using openwrt (libremesh, freifunk-gluon, freifunk-meshkit, battlemesh) ... and also on openwrt (subject may differ, because atm there is no tested or acceptable fix), f.i.

https://bugs.openwrt.org/index.php?do=details&task_id=863

see also: ANI, ani-noise-immunity, weak signal detection, ofdmNoiseImmunityLevel, ATH9K_ANI_OFDM_DEF_LEVEL

FreifunkUFO avatar Mar 29 '19 13:03 FreifunkUFO

I can confirm that the TP-Link TL-WR1043N/ND v1 will collapse under high wifi load, this is why I replaced it by another router. Should be

echo 0 > /sys/kernel/debug/ieee80211/phy0/ath9k/ani

the standard for this router?

yes. i am running two 1043NDv1 and they do perform better and more stable with deactivated ANI run by rc.local at boot.

kls0e avatar Jun 19 '19 04:06 kls0e