All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: David Bauer <mail@david-bauer.net>
Cc: ath10k@lists.infradead.org
Subject: Re: Management rate-control on IPQ4019
Date: Wed, 19 Feb 2020 02:29:14 -0800	[thread overview]
Message-ID: <5E4D0DFA.3080409@candelatech.com> (raw)
In-Reply-To: <40026add-c28a-da90-f17a-feeb8379c544@david-bauer.net>

On 02/18/2020 03:06 PM, David Bauer wrote:
> Hello Ben,
>
> On 2/18/20 8:58 PM, Ben Greear wrote:
>> On 02/18/2020 11:12 AM, David Bauer wrote:
>>> Hello,
>>>
>>> while playing around with the 2.4GHz WiFi part of the IPQ4019, i was
>>> expecting being able to set the rate at which IPQ4019 transmits it's beacon
>>> frames.
>>>
>>> Using OpenWrt, setting "legacy_rates=0" on the radio leads to only advertising
>>> 802.11g speeds, however the beacons are still sent out at 1 Mbit/s. Using a QCA9984,
>>> the beacons are correctly sent out at the lowest 802.11g rate (6 Mbit/s). So i assume
>>> this is either a bug in the ath10k firmware or a hardware-shortcoming. Has anyone else
>>> experienced this bug and is it likely we'll see it fixed in a later firmware release?
>>>
>>> Hardware: IPQ4029 (Aruba AP-303)
>>> Firmware  Version: 10.4-3.6-00140 / 10.4-3.5.3-00078
>>
>> There are separate API for setting management frame rates.  I forget exactly how
>> upstream supports this, but maybe check debugfs?
>
> I'm using the mac80211 interface here [0], which works well for the QCA9984, but not for
> the IPQ4019. I'm not aware of a debugfs interface with ath10k for setting the management
> rate.
>
> I can try the one ath10k-ct implements, but the fact it works on the QCA9984 makes me believe
> the culprit is the firmware. The patch adding support for mgmt-rate setting does not list the
> IPQ4019 as a tested platform also.
>
> [0] https://patchwork.kernel.org/patch/10593573/

Ok, maybe so.  I compile all of the wave-2 targets from the same firmware source,
but maybe upstream 4019 firmware lags others for one reason or another.

If you want to try -ct firmware/driver, please search for "Set multicast, broadcast, beacon tx rates."
in the link below:

http://www.candelatech.com/ath10k-ug.php

Possibly these driver changes will work with upstream firmware, I have not tried it.

# cat /debug/ieee80211/wiphy1/ath10k/set_rates
This is to set fixed bcast, mcast, and beacon rates.  Normal rate-ctrl
is handled through normal API using 'iw', etc.
To set a value, you specify the dev-name, type, band and rate-code:
types: bcast, mcast, beacon
bands: 2, 5, 60
rate-codes: 0x43 1M, 0x42 2M, 0x41 5.5M, 0x40 11M, 0x3 6M, 0x7 9M, 0x2 12M, 0x6 18M, 0x1 24M, 0x5 36M, 0x0 48M, 0x4 54M, 0xFF default
  For example, to set beacon to 18Mbps on wlan0:  echo "wlan0 beacon 2 0x6" > /debug/..../set_rates

I'm not sure if 'beacon' also controls other mgt frames or not w/out reviewing the code.

Thanks,
Ben

>
> Best wishes
> David
>
>>
>> Thanks,
>> Ben
>>
>>
>


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


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

  reply	other threads:[~2020-02-19 10:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-18 19:12 Management rate-control on IPQ4019 David Bauer
2020-02-18 19:58 ` Ben Greear
2020-02-18 23:06   ` David Bauer
2020-02-19 10:29     ` Ben Greear [this message]
2020-02-19 22:05       ` David Bauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5E4D0DFA.3080409@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=ath10k@lists.infradead.org \
    --cc=mail@david-bauer.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.