Modify

Opened 3 years ago

Closed 3 years ago

#18297 closed defect (worksforme)

ath9k / longshot / minstrel shows G-rates, but phy send N-rates

Reported by: bittorf@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

both are Ubiquiti Bullet 5M with r43102

root@f36-longshot-schlacht:~ iw dev wlan0 station dump
Station dc:9f:db:0c:c8:aa (on wlan0)
	inactive time:	90 ms
	rx bytes:	10502254
	rx packets:	24659
	tx bytes:	37081420
	tx packets:	32335
	tx retries:	2575
	tx failed:	0
	signal:  	-77 [-77] dBm
	signal avg:	-76 [-76] dBm
	tx bitrate:	24.0 MBit/s
	rx bitrate:	26.0 MBit/s MCS 3
	authorized:	yes
	authenticated:	yes
	preamble:	long
	WMM/WME:	no
	MFP:		no
	TDLS peer:	no

root@f36-longshot-schlacht:~ cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/dc:9f:db:0c:c8:aa/rc_stats
rate      throughput  ewma prob  this prob  this succ/attempt   success    attempts
  CD   6         6.0       99.9      100.0             0(  0)       205         232
 B  P 12        11.8       99.9      100.0             0(  0)       260         298
A     24        20.1       88.8       81.3            35( 43)     40344       43587

Total packet count::    ideal 726      lookaround 82

root@f36-longshot-schlacht:~ iw dev wlan0 info
Interface wlan0
	ifindex 9
	wdev 0x4
	addr dc:9f:db:02:b8:ee
	ssid f36-schlacht
	type IBSS
	wiphy 0
	channel 100 (5500 MHz), width: 20 MHz, center1: 5500 MHz

root@f36-longshot-schlacht:~ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type=mac80211
wireless.radio0.country=US
wireless.radio0.frag=off
wireless.radio0.noscan=1
wireless.radio0.distance=360
wireless.radio0.path=pci0000:00/0000:00:00.0
wireless.radio0.hwmode=11na
wireless.radio0.ht_capab=SHORT-GI-40 TX-STBC RX-STBC1 DSSS_CCK-40
wireless.radio0.htmode=HT20
wireless.radio0.beacon_int=5000
wireless.radio0.txpower=19
wireless.radio0.longshot=f36-schlacht
wireless.radio0.channel=100
wireless.radio0.chanbw=20
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=radio0
wireless.@wifi-iface[0].network=wlan
wireless.@wifi-iface[0].mode=adhoc
wireless.@wifi-iface[0].mcast_rate=6000
wireless.@wifi-iface[0].ssid=f36-schlacht
wireless.@wifi-iface[0].bssid=02:be:ef:20:01:00

the other side:

root@AlexLaterne:~ iw dev wlan0 station dump
Station dc:9f:db:02:b8:ee (on wlan0)
	inactive time:	10 ms
	rx bytes:	68809297
	rx packets:	55876
	tx bytes:	11967000
	tx packets:	37954
	tx retries:	2816
	tx failed:	14
	signal:  	-78 [-78] dBm
	signal avg:	-77 [-77] dBm
	tx bitrate:	26.0 MBit/s MCS 3
	rx bitrate:	26.0 MBit/s MCS 3
	authorized:	yes
	authenticated:	yes
	preamble:	long
	WMM/WME:	yes
	MFP:		no
	TDLS peer:	no

root@AlexLaterne:~ cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/dc:9f:db:02:b8:ee/rc_stats
type           rate     throughput  ewma prob   this prob  retry   this succ/attempt   success    attempts
HT20/LGI    D  MCS0            5.6      100.0       100.0      3              0(  0)         2           2
HT20/LGI   C   MCS1           10.5      100.0       100.0      4              0(  0)        15          15
HT20/LGI  B    MCS2           14.8       99.9       100.0      5              0(  0)      1893        1901
HT20/LGI A   P MCS3           18.6       99.9       100.0      5              2(  2)     35725       36824
HT20/LGI       MCS4            0.0        1.8         0.0      5              0(  0)       554        1738
HT20/LGI       MCS5            0.0        0.0         0.0      0              0(  0)         0         390
HT20/LGI       MCS6            0.0        0.0         0.0      0              0(  0)         0         390
HT20/LGI       MCS7            0.0        0.0         0.0      0              0(  0)         0         391

Total packet count::    ideal 36660      lookaround 1541
Average A-MPDU length: 1.0

root@AlexLaterne:~ iw dev wlan0 info
Interface wlan0
	ifindex 7
	wdev 0x2
	addr dc:9f:db:0c:c8:aa
	ssid f36-schlacht
	type IBSS
	wiphy 0
	channel 100 (5500 MHz), width: 20 MHz, center1: 5500 MHz

root@AlexLaterne:~ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type=mac80211
wireless.radio0.country=US
wireless.radio0.frag=off
wireless.radio0.distance=360
wireless.radio0.path=pci0000:00/0000:00:00.0
wireless.radio0.hwmode=11na
wireless.radio0.htmode=HT20
wireless.radio0.ht_capab=SHORT-GI-40 TX-STBC RX-STBC1 DSSS_CCK-40
wireless.radio0.beacon_int=5000
wireless.radio0.txpower=19
wireless.radio0.longshot=f36-schlacht
wireless.radio0.chanbw=20
wireless.radio0.channel=100
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=radio0
wireless.@wifi-iface[0].network=wlanadhoc
wireless.@wifi-iface[0].mode=adhoc
wireless.@wifi-iface[0].mcast_rate=6000
wireless.@wifi-iface[0].ssid=f36-schlacht
wireless.@wifi-iface[0].bssid=02:be:ef:20:01:00
wireless.@wifi-iface[1]=wifi-iface
wireless.@wifi-iface[1].device=radio0
wireless.@wifi-iface[1].network=wlan
wireless.@wifi-iface[1].encryption=none
wireless.@wifi-iface[1].mode=ap
wireless.@wifi-iface[1].ssid=Sommerfest-670a
wireless.@wifi-iface[1].disabled=1

Attachments (0)

Change History (6)

comment:1 Changed 3 years ago by bittorf@…

running 'wifi up' corrects it.

also strange:
when switching to HT40 (+noscan=1) both are just showing g-rates in minstrel, and:

root@AlexLaterne:~ iw dev wlan0 info
Interface wlan0
	ifindex 7
	wdev 0x2
	addr dc:9f:db:0c:c8:aa
	ssid f36-schlacht
	type IBSS
	wiphy 0
	channel 100 (5500 MHz), width: 20 MHz (no HT), center1: 5500 MHz

comment:2 Changed 3 years ago by nbd

have you tried keeping the beacon interval at a *sane* value?
since ad-hoc mode uses distributed beaconing, a beacon interval of 5000 makes the successful transmission of a beacon unlikely.
beacons are necessary for peers to discover each other's ht capabilities

comment:3 Changed 3 years ago by bittorf@…

thanks for feedback. i flashed r43219 and use now a beacon interval of 1000 and it works. what does _not_ work is "HT40+" or "HT40", but HT40- is ok (for all 5ghz-channels). I remember there was a change in the scripts for that?!

comment:4 Changed 3 years ago by bittorf@…

i also see "strange" values with r43219 during calibration, isn't 118 too high?
(it's the same hardware - Ubiquiti Bullet M5)

Mon Nov 10 16:02:30 2014 kern.debug kernel: [24069.790000] ath: phy0: NF calibrated [ctl] [chain 0] is -116
Mon Nov 10 16:02:30 2014 kern.debug kernel: [24069.790000] ath: phy0: NF calibrated [ext] [chain 0] is -116
Mon Nov 10 16:03:00 2014 kern.debug kernel: [24099.790000] ath: phy0: NF calibrated [ctl] [chain 0] is -116
Mon Nov 10 16:03:00 2014 kern.debug kernel: [24099.790000] ath: phy0: NF calibrated [ext] [chain 0] is -117
Mon Nov 10 16:03:02 2014 kern.debug kernel: [24101.890000] ath: phy0: Resetting Cal 2 state for channel 5825
Mon Nov 10 16:03:02 2014 kern.debug kernel: [24102.190000] ath: phy0: starting ADC DC Calibration
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: 0: Chn 0 oddi=0x00051741; eveni=0x0005b701; oddq=0xffff65c2; evenq=0xfffff813;
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: 0: Chn 1 oddi=0x00000000; eveni=0x00000000; oddq=0x00000000; evenq=0x00000000;
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: 0: Chn 2 oddi=0x00000000; eveni=0x00000000; oddq=0x00000000; evenq=0x00000000;
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: Starting ADC DC Offset Cal for Chain 0
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: Chn 0 pwr_meas_odd_i = 333633
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: Chn 0 pwr_meas_even_i = 374529
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: Chn 0 pwr_meas_odd_q = -39486
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: Chn 0 pwr_meas_even_q = -2029
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: Chn 0 dc_offset_mismatch_i = 0x00000002
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: Chn 0 dc_offset_mismatch_q = 0x000001fd
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: ADC DC Offset Cal done for Chain 0
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: NF calibrated [ctl] [chain 0] is -116
Mon Nov 10 16:03:03 2014 kern.debug kernel: [24103.390000] ath: phy0: NF calibrated [ext] [chain 0] is -116
Mon Nov 10 16:03:30 2014 kern.debug kernel: [24129.790000] ath: phy0: NF calibrated [ctl] [chain 0] is -116
Mon Nov 10 16:03:30 2014 kern.debug kernel: [24129.790000] ath: phy0: NF calibrated [ext] [chain 0] is -117
Mon Nov 10 16:04:00 2014 kern.debug kernel: [24159.790000] ath: phy0: NF calibrated [ctl] [chain 0] is -116
Mon Nov 10 16:04:00 2014 kern.debug kernel: [24159.790000] ath: phy0: NF calibrated [ext] [chain 0] is -116
Mon Nov 10 16:04:30 2014 kern.debug kernel: [24189.790000] ath: phy0: NF calibrated [ctl] [chain 0] is -116
Mon Nov 10 16:04:30 2014 kern.debug kernel: [24189.790000] ath: phy0: NF calibrated [ext] [chain 0] is -116
Mon Nov 10 16:05:00 2014 kern.debug kernel: [24219.790000] ath: phy0: NF calibrated [ctl] [chain 0] is -117
Mon Nov 10 16:05:00 2014 kern.debug kernel: [24219.790000] ath: phy0: NF calibrated [ext] [chain 0] is -117
Mon Nov 10 16:05:30 2014 kern.debug kernel: [24249.790000] ath: phy0: NF calibrated [ctl] [chain 0] is -117
Mon Nov 10 16:05:30 2014 kern.debug kernel: [24249.790000] ath: phy0: NF calibrated [ext] [chain 0] is -117

comment:5 Changed 3 years ago by bittorf@…

maybe related. it's the same longshot which has issues sometimes, thats the reason i collect stuff here: mostly i have a link-speed if 2500 kilobyte/s TCP in both directions with HT20. sometimes i can see that no packet can be transmitted for a long time (no matter at which rate, minstrel hangs at 6mbit which endless retransmits. today i could see the situation on both ends:

Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: Starting IQ Cal and Correction for Chain 0
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: Original: Chn 0 iq_corr_meas = 0xffbfe53c
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: Chn 0 pwr_meas_i = 0x0ec86968
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: Chn 0 pwr_meas_q = 0x10b0dc1c
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: iqCorrNeg is 0x00000001
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: Chn 0 iCoff = 0x00000002
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: Chn 0 qCoff = 0xfffffff8
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: New: Chn 0 iCoff = 0x00000002
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: Chn 0 : iCoff = 0x2  qCoff = 0xfffffff8
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: IQ Cal and Correction done for Chain 0
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: NF calibrated [ctl] [chain 0] is -92
Tue Nov 11 16:01:42 2014 kern.debug kernel: [ 1005.500000] ath: phy0: NF[0] (-92) > MAX (-102), correcting to MAX

whats interesting: normally the calibration is ~ each 30 sec with ~114 - see here:

Tue Nov 11 18:54:11 2014 kern.debug kernel: [11354.340000] ath: phy0: NF calibrated [ctl] [chain 0] is -114
Tue Nov 11 18:54:41 2014 kern.debug kernel: [11384.340000] ath: phy0: NF calibrated [ctl] [chain 0] is -114
Tue Nov 11 18:55:11 2014 kern.debug kernel: [11414.340000] ath: phy0: NF calibrated [ctl] [chain 0] is -114
Tue Nov 11 18:55:41 2014 kern.debug kernel: [11444.340000] ath: phy0: NF calibrated [ctl] [chain 0] is -114
Tue Nov 11 18:56:11 2014 kern.debug kernel: [11474.340000] ath: phy0: NF calibrated [ctl] [chain 0] is -114

during the hang there was'nt any calibration for some minutes...
radio is on both ends: phy0: Atheros AR9280 Rev:2

comment:6 Changed 3 years ago by nbd

  • Resolution set to worksforme
  • Status changed from new to closed

Closing this as "worksforme". Calibration issues belong to a separate ticket.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.