openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
20.28k stars 10.49k forks source link

Netgear r6220 wifi issue - low speed and connection issues #11851

Closed lexmark3200 closed 1 year ago

lexmark3200 commented 1 year ago

Describe the bug

Hi, I've flashed openWRT to Netgear r6220. With the newest version of OpenWrt 22.03.3 I can't connect with my mobile, Yoga 11e WIN10 connecting a long time, longer than different AP (Meraki MR16 or tp-link 1043wd v2), sometimes it takes maybe 60-90sec. But the best part is that, the cable connection is fine. Everything is working fine, I can browse pages in Internet, but I can't update the openWRT. I get failed to connection.... It looks like the router doesn't have a correct DNS or gateway, but LAN connection is working fine. This problems are presents 22.03.2 and 22.03.3 OpenWRT. The second issue is the wlan speed. It is very slow. I messured it with LibreSpeed in Docker. My Yoga have Intel(R) Wireless-AC 9260 160MHz, it connect to r6220 AP with 300/300, but after speed test I get only 40-50Mbps download and about 200Mb Upload. On stock firmware the same test is 190 DW and 210 UP. I check a few version with the same problems, even I took another Netgear R6220, without possitive result. the wifi speed is very slow.

I check with openwrt version: 22.03.3 22.03.2 21.02.5 19.07.9

The second issue is present on all versions I've ckecked (slow speed download). First issue is not present on 21.02.5 and 19.07.9, so mobile and Yoga can connect to AP in a part of seconds.

Now on the second router Netgear r6220 I have flashed r20028-43d71ad93e and the best thing is that, when I connect to wifi with my Yoga (mobile Xiaomi cann't connect) it takes a long time, when the laptop connect to wifi I have no internet connection, only my LAN is working, but when I plug a LAN cable, the Internet is working fine.

I used router as Dumb AP with switch. (WAN is not connected).

OpenWrt version

r20028-43d71ad93e

OpenWrt target/subtarget

ramips/mt7621

Device

Netgear R6220

Image kind

Official downloaded image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig

No response

Terms

lexmark3200 commented 1 year ago

I think the speed problem is between AP - some clients, not with all. The drivers are not compatybility. I discover that, the speed problem is with Lenovo Yoga 11e with Intel wifi cards, but old HP with old Atheros wifi card on speed test get 115/115 Mbps (meausered), when the Lenovo with Intel get only 50/219.

brada4 commented 1 year ago

You need to configure region to get anything from 5GHz band. 300Mbit exactly means you use 2.4Ghz 40MHz band - are you sure no competing AP-s around?

lexmark3200 commented 1 year ago

Yes, did that.

300Mbit exactly means you use 2.4Ghz 40MHz band

Yes, thats correct. And that is the point. I have chanel width 40MHz - noscan (Force 40MHz), no AP (I scan by the Wifi Analizer) on the same chanel, and the speed is only 50/219 Mb on Lenovo with Intel card. I flashed the stock OEM, and I get more then 200 Mb bidirection.

So I think the problem is with the drivers, no with config. Why on old HP with the old Atheros I get (the same configurations of AP with openWRT) 115/115 Mb measured (not a speed connection).??

brada4 commented 1 year ago

Forcing 40MHz leads to no good. You can survey from AP itself - it has stronger antennas than mobile. Set 5ghz region and add 5ghz network with same name as 2.4 Yes, all settings are repeated for each radio.

lexmark3200 commented 1 year ago

Set 5ghz region and add 5ghz network with same name as 2.4 That makes only, that the compatibile device can itself to switch between 2.4 and 5GHz. But I think it not solves the axact problem with the speed on radio 2.4GHz. Maybe I wrong...?? I prefer the 2.4GHz because it can "goes" longer by the walls than 5GHz.

You can survey from AP itself - it has stronger antennas than mobile.

Yes. I take a Lenovo Yoga with Intel card to use Wifi Analizer not a smartfone app (google apps or something else...)

lexmark3200 commented 1 year ago

I uncheck the Force 40MHz and now, Lenovo connect with 144/144Mbps and the test speed is about 100/120 Mbps. Sometimes is less.

brada4 commented 1 year ago

Survey from router (where it gets idea to settle on 20MHz) - luci/status/channel analysis.

Unless you have no other human dwelling till horizon standard says 20MHz, and 72/150 etc REF: https://en.wikipedia.org/wiki/List_of_WLAN_channels#/media/File:NonOverlappingChannels2.4GHz802.11-en.svg

5GHz will not transmit anything unless you set region code and before DFS scan settles like in 30-300 secs. EDIT: posted simultaneously - yes, 20MHz gets faster in more saturated than empty places. If 5GHz is saturated (unlikely) you may try 160->80->40 with auto channel selection. Note the 5min delay on any change. EDIT2: 144 -> 72Mbps x 2 antennas - which is correct.

lexmark3200 commented 1 year ago

If 5GHz is saturated (unlikely) you may try 160->80->40 with auto channel selection. Note the 5min delay on any change.

No, it is free, only my Meraki is configured with 5GHz on 36 ch. Ok i will try setup 5GHz.

brada4 commented 1 year ago

its free

Remember to set region before scan ;-)

brada4 commented 1 year ago

Remember - same "lan" same security parameters. Clients will roam when one antenna becomes weak without any roaming protocol.

lexmark3200 commented 1 year ago

ok, it's done ;-) on 5GHz it's not only my network, Netgear found another two. One on 40ch and the second on 112ch. On 2.4Ghz is my network on 6ch, and the second -83dBm on 1 ch

lexmark3200 commented 1 year ago

Remember - same "lan" same security parameters. Clients will roam when one antenna becomes weak without any roaming protocol.

I udenrstand that, I was tested that on my Meraki's a couple of monts ago. Now I have Fast Roaming. A added a second AP downstairs. That is usefull very much. So if I set the same ssids on 2.4 and 5GHz radios, and the same setting, I must turn off Fast Roaming??

brada4 commented 1 year ago

That is meraki term for steering protocols. You do not need them, as long as AP name is same the "random mac" on mobile phones/ win10+ stays same, and once one AP leaves air it picks up next AP and gets same IP from same DHCP server, without user noticing, or sockets being disconnected. Steering protocols would help in conference room with 1000ppl and 20AP-s to steer them to "free" AP.

hello

you leave blank line then start unquoted text

brada4 commented 1 year ago

I would leave both bands to "auto channel" - no need to follow when neighbour moves in or out.

lexmark3200 commented 1 year ago

I'm sorry my mistake. I corrected post.

That is meraki term for steering protocols.

We didn't understanding. My meraki have flashed openWRT too ;-) the last available version. Fast Roaming I mean 802.11r Fast Transition (my mistake for name)

lexmark3200 commented 1 year ago

as long as AP name is same

ESSIDs are the same, or AP name you mean hostname AP?

brada4 commented 1 year ago

ESSID does not change - STA (client) MAC neither - and same DHCP server assures quasi static IP on unassisted roaming. Check documentation on usteer package - client support "depends", there might be no gain whatsoever.

lexmark3200 commented 1 year ago

Hi.

I h've flashed the 22.03.3 firmware, and the wifi speed on 2.4GHz is very slow, after reboot, the radio is not working: I checked the system log:

Mon Jan 30 18:31:16 2023 daemon.notice netifd: Network device 'lo' link is up Mon Jan 30 18:31:16 2023 daemon.notice netifd: Interface 'loopback' has link connectivity Mon Jan 30 18:31:17 2023 daemon.notice netifd: radio0 (1732): Phy not found Mon Jan 30 18:31:17 2023 daemon.notice netifd: radio0 (1732): Could not find PHY for device 'radio0' Mon Jan 30 18:31:17 2023 daemon.notice netifd: Wireless device 'radio0' set retry=0 Mon Jan 30 18:31:17 2023 daemon.crit netifd: Wireless device 'radio0' setup failed, retry=0 Mon Jan 30 18:31:17 2023 daemon.notice netifd: radio0 (1799): WARNING: Variable 'data' does not exist or is not an array/object Mon Jan 30 18:31:17 2023 daemon.notice netifd: radio0 (1799): Bug: PHY is undefined for device 'radio0' Mon Jan 30 18:31:17 2023 daemon.notice netifd: Wireless device 'radio0' is now down Mon Jan 30 18:31:17 2023 daemon.info procd: - init complete -

brada4 commented 1 year ago

Wild specualtion - radio circuitry hung dead on DFS scan attempt. Try power off and on. Then try snapshot with config restore -> try DFS again - maybe it is fixed there, do multiple attempts among those setting explicitly CH100

brada4 commented 1 year ago

Note there is no luci, you can install whatever you find in opkg list-installed | grep ^luci- to get snapshot more usable. auc for upgrade with restore of config till v23/24 is out

lexmark3200 commented 1 year ago

I flashed older ver 19.07, now is working fine. On 22.03 I can feel the connections between AP and clients take longer then 19.7 ver. Win 10 when connect to 22.03 is showing No Internet Connections first 20-30 sec, then Connections is working fine. With 19.07 that issue is not present.

brada4 commented 1 year ago

Bisecting - 21.02 ?

lexmark3200 commented 1 year ago

Bisecting - 21.02 ?

Do you ask me if I trayed 21.02 ver? I flashed 21.02.5 (the last of 21.02) Yes, the problem was with radio too. Not recognize them. Like in my upper post.

brada4 commented 1 year ago

Numbering issues could help ;-)

lexmark3200 commented 1 year ago

Ok. OpenWRT 19.07.10:

OpenWRT 21.02.5:

OpenWRT 22.02.2(3):

All of issues I tested on 2.4 GHz radio.

Now I think the best version is 19.07

I think that's all ;-)

brada4 commented 1 year ago

There is no issue with 2.4GHz, if you select standards compliant 20MHz channel for your area you get free air. With 40GHz you play lotery if meraki main channel with broadcasts is within your allotted band and new transmissions shall be moderated. Probably channel selection changed over the years a bit.

For 5GHz radio - does it work after hard power disconnect?

lexmark3200 commented 1 year ago

For 5GHz radio - does it work after hard power disconnect?

Yes. On 19.7.10 does work fine.

The router is working as dumb AP in another building. There are only 2 wifi SSID (I scaned via r6220) both have signal -90dBm one of them is my from meraki, a second is my neighbor. Yesterday I changed the config: 2,4GHz width 40 MHz but noscan 0 (unchecked Force 40MHz), 2.4 and 5GHz - the same SSID, and the rest of config. My mobile connect with 866 Mbps, and the measured speed is about 380/450 Mb (DW/UP).

brada4 commented 1 year ago

To me seems same regression as in #11855 regarding mt76 driver and DFS stability in 5GHz?

lexmark3200 commented 1 year ago

Yes, but my problem is in 2.4GHz.

By the way, the reggresion problem is with my Meraki MR12 this is my bug #10367

brada4 commented 1 year ago

Could not find PHY for device 'radio0'

Thats 5GHz

You do not have any issues with 2.4GHz . Standards-compliant 20Mhz works fine.

lexmark3200 commented 1 year ago
  • the connections between AP and clients take longer then 19.7 ver. Win 10 when connect to 22.03 is showing No Internet Connections first 20-30 sec, then Connections is working fine.
  • the Xiaomi 11T cann't connect to AP it is traying but not connect (I think the problem is with checking the connection (ping to a xiaomi or google server).

On 22.03 that is the problem too, no matter if I configure it to 20/40MHz the problem is present.

Standards-compliant 20Mhz works fine.

Only works on old firmware 19.07.10

brada4 commented 1 year ago

If many connectivity checks are slow another guess your ISP-s DNS is not really EDNS0 compatible. Best is to test if connection indicator is slow across cable to router from windows too.

Go to connection-WAN4 disable peer dns and enter some public dns server like 9.9.9.9 or 8.8.8.8 or 4.4.4.4 to check

lexmark3200 commented 1 year ago

I will try it. Now I have pi-hole + unbound on opnsense as my DNS server. (Pi-hole is working on t620 thin client with ubuntu server). All working fine from last two years. Old wr-1043nd as dumb AP and meraki AP.

But I will try your solution.

brada4 commented 1 year ago

Chech just wired connection. It is about DNS upstream only, your setup sounds trustworthy.

lexmark3200 commented 1 year ago

OK I flashed 21.05, after that, radio 2.4 doesn't recognize, so I reboot. Radio show in Luci, so I configured it... Poweroff, and after system up:

Sun Feb 5 13:33:10 2023 daemon.notice netifd: radio1 (1654): Could not find PHY for device 'radio1' Sun Feb 5 13:33:10 2023 daemon.notice netifd: Wireless device 'radio1' set retry=0 Sun Feb 5 13:33:10 2023 daemon.crit netifd: Wireless device 'radio1' setup failed, retry=0 Sun Feb 5 13:33:11 2023 daemon.notice netifd: radio1 (1756): WARNING: Variable 'data' does not exist or is not an array/object Sun Feb 5 13:33:11 2023 daemon.notice netifd: radio1 (1756): Bug: PHY is undefined for device 'radio1' Sun Feb 5 13:33:11 2023 daemon.notice netifd: Wireless device 'radio1' is now down

https://forum.openwrt.org/t/r6220-could-not-find-phy-for-device-radio0-mt76x2-issue-continues/116665/4

brada4 commented 1 year ago

Try without restoring backups between releases. i.e bring up radios one by one, powering of after each and checking that it is up.

lexmark3200 commented 1 year ago

I did that, no positive results. ;-(

Check documentation on usteer package - client support "depends", there might be no gain whatsoever.

I checked it, but now I've installed DAWN.

On my r6220 only works fine the 19.07.9 (10) ver, the higher have some issues... So I cannot install DAWN and usteer on lower ver than 21.02

Djfe commented 1 year ago

Please checkout a snapshot version there were quite a few wifi related fixes for your device lately.

lexmark3200 commented 1 year ago

Thx. I'll try it.

Djfe commented 1 year ago

Please retest and close if this got fixed :) By now there are release candidates OpenWrt 23 RC2

lexmark3200 commented 1 year ago

I've upgraded to the latest version 23 RC2. The speed problem is still present. The radio after reboot is correctly up everytime.

lexmark3200 commented 1 year ago

After upgrade to 23.05.0-rc4 and now to the official 23.05.0, wifi on 2.4GHz is working very good. The measured speeds are 190/190 (sometimes even 199/250).