kaloz / mwlwifi

mac80211 driver for the Marvell 88W8864 802.11ac chip
394 stars 119 forks source link

2.4 ghz slowdown #169

Closed vit5421 closed 7 years ago

vit5421 commented 7 years ago

Dear Yuhhaurlin, I have a problem with 2.4 ghz on the latest DD-wrt build (r32149, 05.27.17). Sometimes when my clients (windows, androids) little bit far form router the connection is stuck and i have around 1-5 mbs download speed for all my clients. The signal strength is around 50dbm and connection speed is still 144 mbs. The upload for my clients works fine as usual all the time. I even try to restart the router and nothing change until i am close to router. The wrt1200 and 1900 works fine in the exact same location and exact same settings. The wifi status is still not available and i cant see the real router negotiation speed for Tx rate but i guess that something is wrong there at the driver side

vit5421 commented 7 years ago

The speed from AP to client is slow. The speed from client to AP is always fine. I guess its Tx? Sorry if i confuse you. I did test for 2 units already and restart the power on routers and clients with no success. I will be on business trip but i can reorder the 2 units and test it again on June 19 or 20th to make sure i am not a Don Quixote tilting at windmills. Lol

yuhhaurlin commented 7 years ago

Thanks.

yuhhaurlin commented 7 years ago

Please help to check if power off AP for a while and restart it again to see if the problem is still there.

Or can you try to capture traffic between AP and client?

vit5421 commented 7 years ago

I cant test anymore coz routers are packed for return. But what was interesting that routers always worked at the morning very well after night with no communication of course. Again, i can reorder the routers and test it and try to capture the traffic after June 19

yuhhaurlin commented 7 years ago

Thanks for your help.

mattbze commented 7 years ago

@BrainSlayer Iv been following you on the DD-WRT forum, but I haven't signed up to the forums as yet. Is it possible you can attach your latest build here as you did in the previous but now closed issue on Github?

I am also having same issues across both 2.4ghz and 5ghz on a WRT3200acm with the latest LEDE build.

Reboot (SNAPSHOT, r4222-7142cb4)

root@LEDE:~# opkg list | grep mwlwifi kmod-mwlwifi - 4.9.30+10.3.4.0-20170512-1 - Marvell 88W8864 wireless driver

Wireless on either interface drops the bandwidth to around 10kbps after about 8-10 hours of use. If not used overnight, its fine again the next morning, everything streams correctly over wifi and then towards the end of the day, drops out again.

Tested on PS4 streaming, PS4 Gaming, LGTV streaming, NOWTV, Amazon Prime TV, Netflix, Laptop, Phone, Speedtest.net.

I.e I loaded up the lede interface, went to live graphs, looked at the bandwidth the interfaces were utlizing, starts off very high to start the content playing then a few second later drops to nothing and doesnt return, only happens towards the end of a day, never in the morning on the next day.

Rebooting the router physically does not resolve the issue, tried that a few times now.

yuhhaurlin commented 7 years ago

I found AMPDU still use aid instead of station ID. I will fix it and submit here when security mode of STA is done.

You can help to confirm if this problem is related to this bug. Please test one AP and one client to see if you still encounter this problem.

mattbze commented 7 years ago

@yuhhaurlin Ok ill be able to test this out today and feed back tomorrow.

I know youve been asked this before, but I also am thinking about returning the router unless I can get wifi stable on across all my devices as per my older router, so do you have a rough time frame you think this will be completed in. Sorry to ask.

yuhhaurlin commented 7 years ago

I hope I can release code next week.

ghost commented 7 years ago

I can also confirm the consensus that it is a AP to CLIENT 2.4ghz slowness, will give DD-WRT a try to see if wifi optimizations are better.

C:\Users\abbie\Downloads\iperf-3.1.3-win64>iperf3.exe -c 10.6.55.127 Connecting to host 10.6.55.127, port 5201 [ 4] local 10.6.55.174 port 1931 connected to 10.6.55.127 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 2.25 MBytes 18.8 Mbits/sec [ 4] 1.00-2.00 sec 1.50 MBytes 12.6 Mbits/sec [ 4] 2.00-3.00 sec 1.38 MBytes 11.5 Mbits/sec [ 4] 3.00-4.00 sec 1.25 MBytes 10.5 Mbits/sec [ 4] 4.00-5.00 sec 1.12 MBytes 9.44 Mbits/sec [ 4] 5.00-6.00 sec 1.38 MBytes 11.5 Mbits/sec [ 4] 6.00-7.00 sec 1.25 MBytes 10.5 Mbits/sec [ 4] 7.00-8.00 sec 1.12 MBytes 9.43 Mbits/sec [ 4] 8.00-9.00 sec 1.50 MBytes 12.6 Mbits/sec [ 4] 9.00-10.00 sec 1.62 MBytes 13.6 Mbits/sec

[ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 14.4 MBytes 12.1 Mbits/sec sender [ 4] 0.00-10.00 sec 14.4 MBytes 12.1 Mbits/sec receiver


C:\Users\abbie\Downloads\iperf-3.1.3-win64>iperf3.exe -c 10.6.55.127 -R Connecting to host 10.6.55.127, port 5201 Reverse mode, remote host 10.6.55.127 is sending [ 4] local 10.6.55.174 port 1938 connected to 10.6.55.127 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 1.39 MBytes 11.7 Mbits/sec [ 4] 1.00-2.00 sec 1.01 MBytes 8.49 Mbits/sec [ 4] 2.00-3.00 sec 826 KBytes 6.76 Mbits/sec [ 4] 3.00-4.00 sec 358 KBytes 2.93 Mbits/sec [ 4] 4.00-5.00 sec 361 KBytes 2.95 Mbits/sec [ 4] 5.00-6.00 sec 244 KBytes 2.00 Mbits/sec [ 4] 6.00-7.00 sec 64.2 KBytes 526 Kbits/sec [ 4] 7.00-8.00 sec 65.6 KBytes 538 Kbits/sec [ 4] 8.00-9.00 sec 108 KBytes 888 Kbits/sec [ 4] 9.00-10.00 sec 252 KBytes 2.07 Mbits/sec

[ ID] Interval Transfer Bandwidth Retr [ 4] 0.00-10.00 sec 4.97 MBytes 4.17 Mbits/sec 1 sender [ 4] 0.00-10.00 sec 4.88 MBytes 4.09 Mbits/sec receiver

Once new code is released, I will also help to test it. I have a iperf3 server setup on LAN under a 1gbit link.

ghost commented 7 years ago

@yuhhaurlin I missed one of your posts, I have a functioning WRT3200ACM.... Will see if I can capture packets during a iperf3 test, in case that will be of any help.

vit5421 commented 7 years ago

Dear rs-se, U dont have to try ddwrt coz of the same issue there

ghost commented 7 years ago

@vit5421

Not for the 2.4ghz slowdown, I also know of past problems. Mostly for 5Ghz DFS usability

mattbze commented 7 years ago

@re-se am definitely having issues with slowdown on 5ghz too.

PS4 isnt compatible with AC but my TV was.

PS4 running on 2.4Ghz Auto 20mhz N only and TV on 5ghz c36 80mhz AC only.

Currently testing 5ghz with 2.4ghz disabled and MAC filtering for my TV to only be connected. Running constant streams on Netflix till the issue occurs or doesnt at the usual times.

I need to download iperf

aaron1959 commented 7 years ago

@mattbze you seem to be the ONLY one! with that issue, it is not this issue being discussed, you need to open a new one for that NEW issue. If, or when you do please include some useful info.

ghost commented 7 years ago

@mattbze

I also had a 5Ghz issue, it can be caused by interference or wifi not being optimized enough.

I change the interface txqueuelength on eth0/eth1/wlan0/wlan1 to 10000 and added the following settings to LEDE wifi config, 5Ghz on good channels now bursts up to 200+Mbit from LAN iperf3 server (average speed of 100+Mbit up/down in same room of router or 500 ft away (using channel 36 right now).

    option bursting '1'
    option ff '1'  << Fast Forward
    option compression '1'
    option noscan '1'
mattbze commented 7 years ago

@aaron1959 I thought I read above someone else confirmed 5ghz but yes you are correct.

Ill do some more thorough testing on both wlans, I guess my TV could be the culprit on 5ghz. If i find an issue still with something other than my TV then ill raise a new issue.

Ill enable 2.4ghz and only have my PS4 streaming from it.

Going to try DD-WRT too.

@rs-se thanks Ill try those steps now

mattbze commented 7 years ago

@re-se forgive my ignorance but what is the file path to that conf file.

Wish 'locate' was part of opkg packages.

ghost commented 7 years ago

@mattbze

/etc/config/wireless

Once you modify this config under LEDE, either reboot router or restart networking ( /etc/init.d/network reload -or- restart

root@WRT3200ACM:~# cat /etc/config/wireless --- 5 Ghz --- config wifi-device 'radio0' option type 'mac80211' option hwmode '11a' option path 'soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0' option htmode 'VHT80' option disabled '0' option bursting '1' option ff '1' option compression '1' option noscan '1' option country 'RU' option distance '1000' option channel 'auto'

--- 2.4Ghz --

config wifi-device 'radio1' option type 'mac80211' option hwmode '11g' option path 'soc/soc:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0' option disabled '0' option bursting '1' option ff '1' option compression '1' option noscan '1' option turbo '1' option htmode 'HT20' option distance '2000' option country 'RU' option channel 'auto' option txpower '30'

ghost commented 7 years ago

To update txqueuelength on DD-WRT or OpenWRT, you can do the following. (Recommended is 1000 or 10000)

/sbin/ifconfig eth0 txqueuelen 10000 /sbin/ifconfig eth1 txqueuelen 10000 /sbin/ifconfig wlan0 txqueuelen 10000 /sbin/ifconfig wlan1 txqueuelen 10000

BrainSlayer commented 7 years ago

@rs-se dd-wrt allows to configure the txqueuelength in gui. you dont need to use the commandline. go to setup->networking and configure the length. thats all. default is 1000 for the wifi interfaces since this is also the default value provided by the kernel / driver infrastructure

ghost commented 7 years ago

Ahh, I forgot. Has been awhile since I had DD-WRT loaded. I have just gotten very used to cmdline customization ;)

ghost commented 7 years ago

I have been doing testing on and off, for the last three days with router uptime being at the max of 24hrs (will test longer), I have tweaked the netstack and wifi settings and I have been able to closer to stabilization.

@yuhhaurlin Have you found any other issues with the driver for signal or speed performance?

aqwserf commented 7 years ago

Hi, @rs-se: did you manage to have a fonctionnal "auto" with the 5GHz radio ? Can you use DFS ?

ghost commented 7 years ago

DFS is working quite well provided there is no high amounts of RF interference. I have changed both radios to auto and 5ghz under 80mhz. I have found out Bluetooth does interfere with DFS scans.

Early this morning I was pushing 450-550mbit over 5Ghz radio on channel 100 (first and only time) in same room of router and 300 ft away.

yuhhaurlin commented 7 years ago

Please check 10.3.4.0-20170606 to see if this problem is still there. Thanks.

aqwserf commented 7 years ago

@rs-se : thanks for the reply. My french WRT3200 version with latest LEDE snapshot and 4.9.30+10.3.4.0.git-2017-05-26-1 mwlwifi doesn't want to work as AP with the 5GHz radio set on "auto", neither with DFS channels (52 -> 140). With channel 48, it works well but no so far from you (do you live in a castle ? :) ) I'll test newer version when it will be available in LEDE repos

ghost commented 7 years ago

For the last week I have been using the LEDE snapshot, I have been waiting for someone to update the mwlwifi driver for the 4.9.30 kernel. I haven't found a stable way to build the driver myself as of late.

17.01.2 release date was pushed back to wait for the release of kernel 4.4.7 and should be released to public under stable on June 10th.

I live in a three story apartment building in a very high residential area, DFS is hit and miss with interference not caused by radar or government signals. Though the wife would love a castle :P

yuhhaurlin commented 7 years ago

If needed, you can get latest driver with LEDE image for WRT3200ACM here: https://drive.google.com/open?id=0B3qLWtcWB9EdcHJvd2tIbHl3dnM.

yuhhaurlin commented 7 years ago

Our QA has already done stress tests on the LEDE image I posted for more than two days in shielding room. They did not report slow down problem. Please let me know if any one still encounter this problem. Thanks.

ghost commented 7 years ago

I no longer see any further slow down issue on 2.4ghz, can anyone else confirm?

mattbze commented 7 years ago

@rs-se @yuhhaurlin Updated to the image above and also testing. Ill be able to advise properly tomorrow

mattbze commented 7 years ago

@rs-se Configured Iperf and Im not seeing any slowdowns either.

re2play commented 7 years ago

can you help me router linksys wrt1900ac1 I use different firmware do not work 40mhz in 2.4Ghz, what i am do wrong? [config wifi-device 'radio0' option type 'mac80211' option path 'platform/soc/soc:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0' option nonscan '1' option compression '1' option ff '1' option burstring '1' option wmm '1' option country 'US' option hwmode '11g' option txpower '20' option turbo '1' option channel '1' option htmode 'HT40' option ht_capab 'SHORT-GI-40 TX-STBC RX-STBC1 DSSS_CCK-40' phy#0 Interface wlan0 ifindex 22 wdev 0x8 addr b4:75:0e:5f:29:5b ssid Linksys2 type AP channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz txpower 20.00 dBm]

yuhhaurlin commented 7 years ago

@re2play Please check https://github.com/kaloz/mwlwifi/issues/25

yuhhaurlin commented 7 years ago

Thanks. I close this one.