openwrt / mt76

mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
744 stars 343 forks source link

2.4g issue remains #188

Closed dimatto closed 5 years ago

dimatto commented 6 years ago

2.4g remains very laggy. I use a client which behind a wall, its maxspeed is 72m, but usually below 58m as displayed in luci. I try every option in txpower selection of luci, no use.

dimatto commented 6 years ago

The reason is signal. When this client is behind wall, it’s very unstable and laggy, even signal displayed at luci is -55. When move straight sight, signal displayed -24 at luci, stable and no lag, tx/rx speed all remain 72M. But it should be stable at -55, there’s something wrong. Moreover, I try tx power from 17db to 30db, there’s no difference.

dimatto commented 6 years ago

While change transmit power make no difference, change frequency channel seems resolve this issue, don't know why.

easyteacher commented 6 years ago

2.4G WiFi will disappear after some time with MCU message 8 timeout. Restart the WiFi in luci will cause luci dead. Only reboot can solve the problem.

psyborg55 commented 6 years ago

change frequency channel seems resolve this issue

that's a mitigation not a solution.

brzz commented 6 years ago

same too

barhom commented 6 years ago

Please rewrite the topic name to include which chipset so that we know which 2.4ghz chip you are referring to.

nbd168 commented 6 years ago

Please try the latest version

dimatto commented 6 years ago

still need frequently change channel to get acceptable speed. and it seems even harder with latest commits.

julianocss commented 6 years ago

Hello @nbd168

I installed latest version now. I will test for next days. I let you know if i had any problem.

Thanks for yor work. Juliano

barhom commented 6 years ago

@julianocss update?

julianocss commented 6 years ago

Hello @barhom

The problem persists, especially when i use multiple SSID´s (Master and Client). Sometimes i have to reboot the router to bring connection back. Another thing that i noticed is that behind only one wall, the connection drops the quality a lot.

I don´t test the latest commit yet.

Juliano

P.S.: My router uses MT7628 chip.

milankragujevic commented 6 years ago

I tested latest everything, but the problem still remains. MT7628 / WR840N V5.

yujincheng08 commented 5 years ago

same issue on MT7620

julianocss commented 5 years ago

Hello @nbd168 and @LorenzoBianconi.

First, i want to thank both of you for the work.

I have a doubt: There's still some work been doing for Mt7628AN chip? I still have some instabilities issues, even with the latest driver.

If there's something that i can do for help, please let me know.

Thanks. Juliano

yujincheng08 commented 5 years ago

@julianocss Is your issue the same as #169?

julianocss commented 5 years ago

Hello @yujincheng08.

The problem is similar to #169. I still can not reproduce what causes the problem. I'm using wireless and suddenly clients disconnect and the AP disappears from the air and only rebooting recover the AP.

I checked the log now, i don´t have this message in the latest 17h. "STA xx:xx:xx:xx:xx:xx IEEE 802.11: disconnected due to excessive missing ACKs"

Bellow is mine wireless file.

config wifi-device 'radio0' option type 'mac80211' option hwmode '11g' option path 'platform/10300000.wmac' option country '00' option legacy_rates '1' option noscan '1' option htmode 'HT40' option txpower '20' option channel '3'

config wifi-iface option network 'wwan' option ssid 'Network302_2g' option encryption 'psk2' option device 'radio0' option mode 'sta' option bssid 'secret' option key 'secret' option disassoc_low_ack '0'

config wifi-iface option device 'radio0' option mode 'ap' option ssid 'Network_402' option network 'lan' option disassoc_low_ack '0' option encryption 'psk2' option key 'secret' option wpa_disable_eapol_key_retries '1'

Juliano.

yujincheng08 commented 5 years ago

@julianocss I think we encounter the same problem even you miss the very message which, in fact, was eliminated after a certain commit while the problem remained.

nbd168 commented 5 years ago

Please try the latest version (master only, not 18.06).

julianocss commented 5 years ago

Hello @nbd168.

Yesterday i noticed that snapshot builds for Mt76x8 routers are not update since 22/10. I don't know what is the problem.

There is another way to test this last driver version?

Juliano

yujincheng08 commented 5 years ago

@julianocss Build this repo with sdk, and you will get several ipk files. Install them and then test the wifi.

julianocss commented 5 years ago

Can you help me how to do that? Sorry for off topic, send an email to me if you can.

Do you or another user have an ideia what could be the problem with snapshot builds? Could be something related with latest drivers updates?

yujincheng08 commented 5 years ago

@julianocss I don't think it helps because the latest commit seems to be related only with 76x0 rather than your chip 7628.

julianocss commented 5 years ago

@yujincheng08 , hum, ok!

I thought that some improvement had been made for mt7628, because @nbd168 said to test the latest driver version.

nbd168 commented 5 years ago

The changes that I made affect MT7603 (and thus also MT7628) as well

julianocss commented 5 years ago

Thanks @nbd168.

I will have to wait Openwrt team fix the problem with 76x8 snapshot builds to test.

As soon as i can, i give a feedback to you.

Juliano

julianocss commented 5 years ago

Hello @nbd168.

Today i installed Linux on my computer and compiled the latest openwrt master branch to my router.

Now i can test the latest modifications that you made for the driver.

I give a feedback in the next days.

Thanks. Juliano

ffrediani commented 5 years ago

Hello I wanted to mention that I made my report about instability issues on issue #169 for chip MT7628AN and add that as reported above in this thread that I also have multiple SSID in this case.

sombree commented 5 years ago

Hello With almost latest commit (417cf49) there are still some issues with 2.4GHz network - after some time wifi speed drops drasticaly. Only solution so far is to disconnect and then connect to the network or restart the router. Btw. is this normal? phy0 is mt7603e; current uptime - ~19h.

root@OpenWrt:/# cat /sys/kernel/debug/ieee80211/phy0/mt76/reset
             TX hang: 0
   TX DMA busy stuck: 41
   RX DMA busy stuck: 0
        Beacon stuck: 5
   RX PSE busy stuck: 5
            MCU hang: 0
julianocss commented 5 years ago

Hello @nbd168

The speed improved a lot with latest commit (08/11) on my WR-840 v4 (MT7628AN) I will keep testing, specially if will keep stable.

Thank you very much. Juliano

sombree commented 5 years ago

@nbd168 connection to 2,4GHz network (mt703e in YouHua WR1200JS) seems to be much more stable after changing "time interval for rekeying GTK" from default 600 seconds to 86400 seconds. I came up with this after reading this.

nbd168 commented 5 years ago

Please try the latest OpenWrt master version, I fixed some spurious disconnect issues (in mac80211 + mt76).

9000000 commented 5 years ago

latest OpenWrt master version not good,

The 2.4 GHz band is still faulty when using multiple devices at the same time for download. Downloaded after a few minutes will automatically be disconnected completely and no network

nbd168 commented 5 years ago

@9000000 Which device are you using?

milankragujevic commented 5 years ago

I can confirm it is faulty. On TL-MR3420v5, it breaks after a few hours of usage, the WiFi disappears while the router still works. I haven't tried getting a log, I will attach it later today, I just rebooted the router and it fixed it temporarily. Latest custom build from Git, with LuCi and nothing else other than defaults. Clean install, no previous config. WiFi speed is good with WMM enabled, but it crashes so that's a real roadblock for me.

nbd168 commented 5 years ago

Did the latest commit make anything worse for you, or was it that way with older versions as well?

9000000 commented 5 years ago

@nbd168 I use the wifi Xiaomi 3G

ffrediani commented 5 years ago

@9000000 @milankragujevic Have you tested with multiple SSID or not ? Your symptoms look similar to mine just when using multiple SSIDs.

9000000 commented 5 years ago

@ffrediani I only use 2 main ssid, 2.4ghz is a name, 5ghz is another name

5ghz is too ok, but 2.4 is too bad, the main need only 2.4ghz

sombree commented 5 years ago

@nbd168 I can confirm - with latest master 2,4GHz network is much less stable than before. Is this normal? Here is my wireless config.

julianocss commented 5 years ago

@nbd168.

Last commit was not good for me. Speed drops a lot. Router became very unstable.

There is something that i can do to help?

Juliano.

nbd168 commented 5 years ago

I can't reproduce the stability issues or the speed drop. Can you give me any hints on how to reproduce these issues?

lukasz1992 commented 5 years ago

I can not reproduce speed drops, but somehow problem happened to me on https://github.com/openwrt/mt76/commit/88f68838d91e7b00e2abb5638cf40a514837b7da on Xiaomi 3G Router (MT7603E).

After expensive iperf tests and disconnecting from 2.4GHz WiFi, I could not connect to it again:

I can not provide a reproduce steps.

  1. I managed to get some values from /sys/kernel/debug/ieee80211/phy0/mt76:
reset:
             TX hang: 0
   TX DMA busy stuck: 0
   RX DMA busy stuck: 0
        Beacon stuck: 0
   RX PSE busy stuck: 0
            MCU hang: 0

reset_test:
0
  1. I have another USB WiFi (ath9k_htc) adapter, and dumped the traffic - in attachment dump-2g.tar.zip , but I am afraid it is incomplete - I am not sure how to exactly set monitor mode with minimum filtering. Anyway 320s after start - I tried to connect, about 370s after start I reloaded driver, and about 420s after start I was able to connect.

Restarting WiFi (wifi up) on router did not help, I needed to unload mt7603e module, load it again and start AP, and it started to work immediately.

EDIT: Before reloading driver, there was still an entry in /sys/(...)/phy0/(...)/stations/, even after I disconnected from WiFi.

lukasz1992 commented 5 years ago

Update - my previous comment https://github.com/openwrt/mt76/issues/188#issuecomment-439123869 is about tests on Ubuntu with 4.18 kernel. After that, I did tests on Windows 8.1 on the same device, and can confirm that what @julianocss described, it affects me too. Reproduce is simple - just try to connect to WiFi and transfer data.

Screenshoot:

obraz

Traffic dump (USB ath9k_htc):

DUMP-2G-01.zip

Even number of retransmissions shows something is really wrong.

ffrediani commented 5 years ago

Hi @nbd168 as I believe some of us that are reporting here use different radio chips (in my case 7628) the reports may differ on some ways. Let us know exactly what details are important to take note in order to make a more detailed report. In my case I wasn't able to confirm the speed issues yet but it does happen very similar to when I have multiple SSIDs to the point that disable/enable the radio doesn't resolve. Only a reboot in the router.

Maybe if you find useful to provide an specific image with extra debug options enabled I am free to use it and provide further feedback.

nbd168 commented 5 years ago

I found and fixed some more bugs and pushed an update to OpenWrt master. Please test the latest version.

julianocss commented 5 years ago

Thanks @nbd168.

I will compile now.

Juliano

9000000 commented 5 years ago

Thanks @nbd168

Thank you very much, this is the best update ever so far for xiaomi r3g that I have ever used, I will keep this version in case of future updates if bug

julianocss commented 5 years ago

Hello @nbd168 .

Running latest commit in the last hour. Things seens better. The speed returned to the same level as the compilation on 08/11. About stability, i will test in the next days. I keep you updated.

Thank you very much, again! Juliano

9000000 commented 5 years ago

Ping parameters are high and unstable. The video is good but if the game is too bad

julianocss commented 5 years ago

Hello @nbd168 and @LorenzoBianconi .

I am running the last update for 17 hours. No crashes.

But it seems like there's still something wrong. This morning, when I woke up, the connection was alive, but extremely slow. I could not even access the graphical interface of the router. Now, about 3 hours later, without me doing anything, the connection returned to normal.

I looked at the log and did not see any relevant information. I can send it to you, if you want.

Juliano