From: Sven Eckelmann <sven.eckelmann@openmesh.com>
To: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Cc: ath10k@lists.infradead.org, mohammed@codeaurora.org,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2 2/2] ath10k: fix CCK h/w rates for QCA99X0 and newer chipsets
Date: Fri, 16 Feb 2018 11:55:26 +0100 [thread overview]
Message-ID: <1934280.TgFv3YZ0ZR@bentobox> (raw)
In-Reply-To: <1464852235-13110-2-git-send-email-mohammed@qca.qualcomm.com>
[-- Attachment #1: Type: text/plain, Size: 1967 bytes --]
On Donnerstag, 2. Juni 2016 12:53:55 CET Mohammed Shafi Shajakhan wrote:
> From: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
>
> CCK hardware table mapping from QCA99X0 onwards got revised.
> The CCK hardware rate values are in a proper order wrt. to
> rate and preamble as below
>
> ATH10K_HW_RATE_REV2_CCK_LP_1M = 1,
> ATH10K_HW_RATE_REV2_CCK_LP_2M = 2,
> ATH10K_HW_RATE_REV2_CCK_LP_5_5M = 3,
> ATH10K_HW_RATE_REV2_CCK_LP_11M = 4,
> ATH10K_HW_RATE_REV2_CCK_SP_2M = 5,
> ATH10K_HW_RATE_REV2_CCK_SP_5_5M = 6,
> ATH10K_HW_RATE_REV2_CCK_SP_11M = 7,
>
> This results in reporting of rx frames (with CCK rates)
> totally wrong for QCA99X0, QCA4019. Fix this by having
> separate CCK rate table for these chipsets with rev2 suffix
> and registering the correct rate mapping to mac80211 based on
> the new hw_param (introduced) 'cck_rate_map_rev2' which shall
> be true for any newchipsets from QCA99X0 onwards
I just tested it here with QCA4019 + 10.4-3.2.1-00050 for beacons. The
calculated HW code for 1.0 MBit/s would be 0x41 (rate_code) according to this
new mapping. But when I set it with
ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id,
ar->wmi.vdev_param->mcast_data_rate,
rate_code);
then it sends beacons with 5.5Mbit/s and not with 1.0Mbit/s.
Btw. the rate_code was calculated using:
if (ath10k_mac_bitrate_is_cck(sband->bitrates[i].bitrate))
preamble = WMI_RATE_PREAMBLE_CCK;
else
preamble = WMI_RATE_PREAMBLE_OFDM;
rate_code = ATH10K_HW_RATECODE(hw_value, 0, preamble);
It works fine when using the old mapping (0x43).
This made me rather curious and I've connected a client to the AP which was
only able to send at 1.0 Mbit/s - this actually resulted in the correctly
reported rates at in the rx field.
Does this mean that the rates are now inconsistent because the QCA fw doesn't
provide a consistent interface for hw rates or did I miss anything?
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-02-16 10:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-02 7:23 [PATCH v2 1/2] ath10k: remove duplicate and unused rx rate flags Mohammed Shafi Shajakhan
2016-06-02 7:23 ` [PATCH v2 2/2] ath10k: fix CCK h/w rates for QCA99X0 and newer chipsets Mohammed Shafi Shajakhan
2018-02-16 10:55 ` Sven Eckelmann [this message]
2016-06-02 13:45 ` [PATCH v2 1/2] ath10k: remove duplicate and unused rx rate flags Valo, Kalle
2016-06-02 14:22 ` Mohammed Shafi Shajakhan
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=1934280.TgFv3YZ0ZR@bentobox \
--to=sven.eckelmann@openmesh.com \
--cc=ath10k@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mohammed@codeaurora.org \
--cc=mohammed@qti.qualcomm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox