Skip to contentSkip to conversation

At high attenuation, tx-rate does not drop low enough?

ath9k-devel Ben Greear 2 participants 4 messages Oct 4, 2012 – Oct 5, 2012 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

More fun with attenuation and ath9k:

It seems that the tx-rates do not properly go to lower speeds, at least in some cases.

I enabled lots of attenuation, and it gets into a state where the station drops rates down to around 100Mbps, but the AP side stays with high tx-rate. From sniffing, it seems that STA starts sending ARPs to AP, and AP responds, but packet is never received on the STA. I *do* see lots of rx-crc errors on the station.

If I force the rate to be MCS-0, then it runs just fine. I haven't yet tried forcing it to run at higher rates.

This is kernel 3.5.5+...any ideas on what parts of the code need poking at to figure out why it doesn't decrease the tx-rate?

Station 00:0e:8e:32:12:cf (on vap0)

	inactive time:	2048 ms
	rx bytes:	3145942974
	rx packets:	2145073
	tx bytes:	3392161604
	tx packets:	5245999
	tx retries:	30925
	tx failed:	882
	signal:  	-77 dBm
	signal avg:	-76 dBm
	tx bitrate:	360.0 MBit/s MCS 21 40Mhz short GI

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#1 lore raw
Quoted 5 lines · Ben Greear

More fun with attenuation and ath9k:

It seems that the tx-rates do not properly go to lower speeds, at least in some cases.

Quoted 8 lines

I enabled lots of attenuation, and it gets into a state where the station drops rates down to around 100Mbps, but the AP side stays with high tx-rate. From sniffing, it seems that STA starts sending ARPs to AP, and AP responds, but packet is never received on the STA. I *do* see lots of rx-crc errors on the station.

If I force the rate to be MCS-0, then it runs just fine. I haven't yet tried forcing it to run at higher rates.

Erm. Start with the rate control output (sysfs?) and see what the pass/fail rates are per TX rate.

Adrian

author
#2 lore raw
Quoted 12 lines · Adrian Chadd
Quoted 11 lines · Ben Greear

More fun with attenuation and ath9k:

It seems that the tx-rates do not properly go to lower speeds, at least in some cases.

I enabled lots of attenuation, and it gets into a state where the station drops rates down to around 100Mbps, but the AP side stays with high tx-rate. From sniffing, it seems that STA starts sending ARPs to AP, and AP responds, but packet is never received on the STA. I *do* see lots of rx-crc errors on the station.

Quoted 5 lines
Quoted 2 lines

If I force the rate to be MCS-0, then it runs just fine. I haven't yet tried forcing it to run at higher rates.

Erm. Start with the rate control output (sysfs?) and see what the pass/fail rates are per TX rate.

It seems I was using the built-in ath9k rate control logic (or, at least it was compiled in).

I tried changing to minstrel_ht, and then it works fine at lower speeds, but max speed is only about 230Mbps, when I was getting 330Mbps max before.

I'm trying now to get an easy way to flip between the rate control options to make sure it is reproducible.

Thanks,
Ben

Quoted 5 lines

Adrian

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
author
#3 lore raw
Quoted 19 lines · Ben Greear
Quoted 12 lines · Adrian Chadd
Quoted 11 lines · Ben Greear

More fun with attenuation and ath9k:

It seems that the tx-rates do not properly go to lower speeds, at least in some cases.

I enabled lots of attenuation, and it gets into a state where the station drops rates down to around 100Mbps, but the AP side stays with high tx-rate. From sniffing, it seems that STA starts sending ARPs to AP, and AP responds, but packet is never received on the STA. I *do* see lots of rx-crc errors on the station.

Quoted 5 lines
Quoted 2 lines

If I force the rate to be MCS-0, then it runs just fine. I haven't yet tried forcing it to run at higher rates.

Erm. Start with the rate control output (sysfs?) and see what the pass/fail rates are per TX rate.

Quoted 6 lines

It seems I was using the built-in ath9k rate control logic (or, at least it was compiled in).

I tried changing to minstrel_ht, and then it works fine at lower speeds, but max speed is only about 230Mbps, when I was getting 330Mbps max before.

After more fiddling, I got it working fine in the upload direction, but download is stuck at 230Mbps. I think it may not relate to the rate-control alg though, as changing it did not help.

With regard to the ath9k-rate-control feature...any reason we can't add a patch like this and then allow users to set mac80211's default alg to ath9k_rate_control? I think this would let us easily change between rate algs without recompiling the kernel...

drivers/net/wireless/ath/ath9k/init.c +1 -1
index b182f93..3ee6e36 100644
@@ -739,7 +739,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee802
         sc->ant_tx = hw->wiphy->available_antennas_tx;
 
  #ifdef CONFIG_ATH9K_RATE_CONTROL
-       hw->rate_control_algorithm = "ath9k_rate_control";
+       /* hw->rate_control_algorithm = "ath9k_rate_control"; */
  #endif
 
         if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ)

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com