Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#760 - MQmaker WiTi / mt76x2e / 2.4 GHz / no minstrel sampling #5856

Open
openwrt-bot opened this issue May 4, 2017 · 4 comments
Open
Labels

Comments

@openwrt-bot
Copy link

bittorf:

very bad performance for all neighbours on r3900

# cat /sys/kernel/debug/ieee80211/phy1/netdev:wlan1/stations/a0:f3:c1:ce:56:80/rc_stats best ____________rate__________ ________statistics________ _____last____ ______sum-of________ mode guard # rate [name idx airtime max_tp] [avg(tp) avg(prob) sd(prob)] [retry|suc|att] [#success | #attempts] CCK LP 1 1.0M 120 10548 0.0 0.0 0.0 0.0 0 0 0 0 0 CCK LP 1 2.0M 121 5476 0.0 0.0 0.0 0.0 0 0 0 0 0 CCK LP 1 5.5M 122 2411 2.4 0.0 0.0 0.0 0 0 0 0 0 CCK LP 1 11.0M 123 1535 4.8 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 1 ABCDP MCS0 0 1477 4.8 0.0 0.0 0.0 1 0 0 0 0 HT20 LGI 1 MCS1 1 739 9.7 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 1 MCS2 2 493 14.6 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 1 MCS3 3 369 17.0 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 1 MCS4 4 246 24.4 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 1 MCS5 5 185 29.2 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 1 MCS6 6 164 31.7 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 1 MCS7 7 148 34.1 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 2 MCS8 10 739 9.7 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 2 MCS9 11 369 17.0 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 2 MCS10 12 246 24.4 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 2 MCS11 13 185 29.2 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 2 MCS12 14 123 36.6 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 2 MCS13 15 93 43.9 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 2 MCS14 16 82 46.3 0.0 0.0 0.0 0 0 0 0 0 HT20 LGI 2 MCS15 17 74 48.8 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 1 MCS0 30 1329 4.8 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 1 MCS1 31 665 9.7 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 1 MCS2 32 443 14.6 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 1 MCS3 33 332 19.5 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 1 MCS4 34 222 26.8 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 1 MCS5 35 166 31.7 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 1 MCS6 36 148 34.1 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 1 MCS7 37 133 36.6 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 2 MCS8 40 665 9.7 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 2 MCS9 41 332 19.5 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 2 MCS10 42 222 26.8 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 2 MCS11 43 166 31.7 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 2 MCS12 44 111 39.0 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 2 MCS13 45 83 46.3 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 2 MCS14 46 74 48.8 0.0 0.0 0.0 0 0 0 0 0 HT20 SGI 2 MCS15 47 67 51.2 0.0 0.0 0.0 0 0 0 0 0

Total packet count:: ideal 7625 lookaround 407
Average # of aggregated frames per A-MPDU: 1.0

root@witi7:~ :) arping -I wlan1 10.63.102.195
ARPING to 10.63.102.195 from 10.63.140.195 via wlan1
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 491.552ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 600.276ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 747.811ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 748.426ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 511.603ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 403.993ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 601.602ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 371.090ms

root@witi7:~ :) ping -c1 10.63.102.195
PING 10.63.102.195 (10.63.102.195): 56 data bytes
64 bytes from 10.63.102.195: seq=0 ttl=64 time=2414.528 ms

--- 10.63.102.195 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 2414.528/2414.528/2414.528 ms

root@witi7:~ :) iw dev wlan1 station get a0:f3:c1:ce:56:80
Station a0:f3:c1:ce:56:80 (on wlan1)
inactive time: 150 ms
rx bytes: 32573998
rx packets: 63413
tx bytes: 1038834
tx packets: 8318
tx retries: 133088
tx failed: 8318
rx drop misc: 30946
signal: -60 [-67, -60] dBm
signal avg: -59 [-67, -59] dBm
tx bitrate: 6.5 MBit/s MCS 0
rx bitrate: 6.5 MBit/s MCS 0
authorized: yes
authenticated: yes
associated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no
DTIM period: 0
beacon interval:250
connected time: 8652 seconds

uci show wireless (2.4ghz)

wireless.radio1=wifi-device
wireless.radio1.type='mac80211'
wireless.radio1.country='US'
wireless.radio1.frag='off'
wireless.radio1.path='pci0000:00/0000:00:01.0/0000:02:00.0'
wireless.radio1.chanbw='20'
wireless.radio1.channel='5'
wireless.radio1.distance='100'
wireless.radio1.beacon_int='250'
wireless.radio1.hwmode='11n'
wireless.radio1.htmode='HT20'
wireless.radio1.txpower='23'

wireless.@wifi-iface[2]=wifi-iface
wireless.@wifi-iface[2].device='radio1'
wireless.@wifi-iface[2].network='wlanadhocRADIO1'
wireless.@wifi-iface[2].mode='adhoc'
wireless.@wifi-iface[2].mcast_rate='6000'
wireless.@wifi-iface[2].macaddr='8c:bc:c0:43:c9:09'
wireless.@wifi-iface[2].bssid='02:ca:ff:ee:ba:be'
wireless.@wifi-iface[2].ssid='ffintern.2GHz'

wireless.@wifi-iface[3]=wifi-iface
wireless.@wifi-iface[3].device='radio1'
wireless.@wifi-iface[3].network='wlanRADIO1'
wireless.@wifi-iface[3].encryption='none'
wireless.@wifi-iface[3].mode='ap'
wireless.@wifi-iface[3].macaddr='8e:bc:c0:43:c9:0a'
wireless.@wifi-iface[3].max_inactivity='10'
wireless.@wifi-iface[3].ssid='weimar.freifunk.net'
wireless.@wifi-iface[3].disassoc_low_ack='1'

@openwrt-bot
Copy link
Author

nbd:

Please try without the interface MAC address override

@openwrt-bot
Copy link
Author

bittorf:

indeed, that fixes it. wow.

@openwrt-bot
Copy link
Author

bjonglez:

Is this something that can be fixed or needs fixing?

@openwrt-bot
Copy link
Author

phelps:

I was seeing similar behavior without a MAC address override, and it was preventing my printer from being able to do the DHCP thing.

I tracked the problem down to this patch: 349-mac80211-minstrel_ht-significantly-redesign-the-rate.patch, and specifically these two lines in minstrel_ht_get_rate in rc80211_minstrel_ht.c:

if (time_is_before_jiffies(mi->sample_time))
	return;

I reckon that should be time_is_after_jiffies, which would return true if sample_time is in the future and allow the rest of the function to run if it's not. Making this change gets my sample rates changing at a reasonable rate and gets my printer working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant