openwrt / mt76

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

mt7612e low download speed #197

Closed leksmax closed 5 years ago

leksmax commented 6 years ago

hello i have router witch mt7612e use openwrt and ihave low download speed image

root@OpenWrt:/# iwinfo wlan0 ESSID: "OpenWrt_5g" Access Point: AC:84:C6:65:02:CD Mode: Master Channel: 36 (5.180 GHz) Tx-Power: 15 dBm Link Quality: unknown/70 Signal: unknown Noise: unknown Bit Rate: unknown Encryption: none Type: nl80211 HW Mode(s): 802.11nac Hardware: 14C3:7662 14C3:7662 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0

Wiphy phy0 max # scan SSIDs: 4 max scan IEs length: 2247 bytes max # sched scan SSIDs: 0 max # match sets: 0 max # scan plans: 1 max scan plan interval: -1 max scan plan iterations: 0 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Available Antennas: TX 0x3 RX 0x3 Configured Antennas: TX 0x3 RX 0x3 Supported interface modes:

mweinelt commented 6 years ago

Can you reconfirm this issue with iperf or iperf3? This way we might get to know if it's really the WiFi or just your internet downlink.

lukasz1992 commented 6 years ago

Many months ago I tested it with iperf3 in https://github.com/openwrt/mt76/issues/151. I had similar issue as @leksmax - problem was both in mt7603 and mt7612 drivers.

But I have to retest it now with latest commits.

nbd168 commented 6 years ago

Any news? If you're still having issues, please try the latest version that I just pushed to OpenWrt master. It should work better now

lukasz1992 commented 6 years ago

I have closed https://github.com/openwrt/mt76/issues/151, meanthetime I think that situation is not perfect with MT7612E.

I have made some tests today on https://github.com/openwrt/mt76/commit/88f68838d91e7b00e2abb5638cf40a514837b7da

MT7612, VHT80

sta -> ap       0.00-30.04  sec   743 MBytes   207 Mbits/sec                  receiver
sta -> ap       0.00-30.04  sec   739 MBytes   206 Mbits/sec                  receiver
sta -> ap       0.00-30.04  sec   736 MBytes   206 Mbits/sec                  receiver
sta -> ap       0.00-10.04  sec   254 MBytes   213 Mbits/sec                  receiver

ap -> sta       0.00-30.09  sec   733 MBytes   204 Mbits/sec    0             sender
ap -> sta       0.00-30.06  sec  1016 MBytes   283 Mbits/sec    0             sender
ap -> sta       0.00-30.04  sec  1003 MBytes   280 Mbits/sec    0             sender
ap -> sta       0.00-30.08  sec   961 MBytes   268 Mbits/sec    1             sender
ap -> sta       0.00-30.09  sec   693 MBytes   193 Mbits/sec    0             sender

As I have no 5GHz networks here, it seems the upload speed is not as stable as here: https://github.com/openwrt/mt76/issues/151#issuecomment-439114941 .

I consider 300-310 Mbit/s as a maximum for AC, on my Intel 1x1 WiFi card.

nbd168 commented 5 years ago

Should be better now, please test

sombree commented 5 years ago

There is significant speed drop on 5GHz network (for both N and AC stations) on build with latest driver (f665fb0) - for me it dropped from ~50mbps to not more than 10mbps (wlan<->wan). Issue is observed with "802.11w Management Frame Protection" set to "Optional". Disabling 802.11w solves problem. Btw. Tx-power reported by iwinfo is lower than one in /etc/config/wireless - it should be 20 instead of 16:

wlan1     ESSID: "xxx"
          Access Point: D4:5F:25:xx:xx:xx
          Mode: Master  Channel: 120 (5.600 GHz)
          Tx-Power: 16 dBm  Link Quality: 31/70
          Signal: -79 dBm  Noise: unknown
          Bit Rate: 265.5 MBit/s
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11nac
          Hardware: 14C3:7662 14C3:7662 [MediaTek MT7612E]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy1
nbd168 commented 5 years ago

Do you have any kernel warnings in the log when you enable 802.11w?

sombree commented 5 years ago

I don't see any warnings with 802.11w enabled: kernel log and system log

nbd168 commented 5 years ago

I've pushed a fix for this to mt76.git, will update openwrt master/18.06 soon. Please test.

sombree commented 5 years ago

802.11w low speed problem is solved, thanks :)

nbd168 commented 5 years ago

Thanks for testing

Openwrtfunboy commented 4 years ago

Ку, @leksmax Есть ли у тебя эта проблема на последней стабилке? / Hi, @leksmax You have it problem in latest openwrt release?