freifunk-berlin / firmware

DEPRECATED: Build system for Berlin firmware. Please user the pinned falter-repos instead
https://berlin.freifunk.net
GNU General Public License v3.0
73 stars 34 forks source link

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

Open kriegste opened 6 years ago

kriegste commented 6 years ago

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.

booo commented 6 years ago

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

kriegste commented 6 years ago

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

bobster-galore commented 6 years ago

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?

torte71 commented 6 years ago

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.

kriegste commented 6 years ago

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

vzsze commented 6 years ago

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 commented 6 years ago

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

booo commented 5 years ago

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

FreifunkUFO commented 5 years ago

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

kls0e commented 5 years ago

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.