All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] At high attenuation, tx-rate does not drop low enough?
@ 2012-10-04 22:29 Ben Greear
  2012-10-05  0:01 ` Adrian Chadd
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2012-10-04 22:29 UTC (permalink / raw)
  To: ath9k-devel

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

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ath9k-devel] At high attenuation, tx-rate does not drop low enough?
  2012-10-04 22:29 [ath9k-devel] At high attenuation, tx-rate does not drop low enough? Ben Greear
@ 2012-10-05  0:01 ` Adrian Chadd
  2012-10-05  0:29   ` Ben Greear
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Chadd @ 2012-10-05  0:01 UTC (permalink / raw)
  To: ath9k-devel

On 4 October 2012 15:29, Ben Greear <greearb@candelatech.com> wrote:
> 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.

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



Adrian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ath9k-devel] At high attenuation, tx-rate does not drop low enough?
  2012-10-05  0:01 ` Adrian Chadd
@ 2012-10-05  0:29   ` Ben Greear
  2012-10-05 17:48     ` Ben Greear
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2012-10-05  0:29 UTC (permalink / raw)
  To: ath9k-devel

On 10/04/2012 05:01 PM, Adrian Chadd wrote:
> On 4 October 2012 15:29, Ben Greear <greearb@candelatech.com> wrote:
>> 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.
>
> 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


>
>
>
> Adrian
>


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ath9k-devel] At high attenuation, tx-rate does not drop low enough?
  2012-10-05  0:29   ` Ben Greear
@ 2012-10-05 17:48     ` Ben Greear
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Greear @ 2012-10-05 17:48 UTC (permalink / raw)
  To: ath9k-devel

On 10/04/2012 05:29 PM, Ben Greear wrote:
> On 10/04/2012 05:01 PM, Adrian Chadd wrote:
>> On 4 October 2012 15:29, Ben Greear <greearb@candelatech.com> wrote:
>>> 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.
>>
>> 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.

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...

diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/at
index b182f93..3ee6e36 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -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


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-05 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-04 22:29 [ath9k-devel] At high attenuation, tx-rate does not drop low enough? Ben Greear
2012-10-05  0:01 ` Adrian Chadd
2012-10-05  0:29   ` Ben Greear
2012-10-05 17:48     ` Ben Greear

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.