From: Kalle Valo <kvalo@codeaurora.org>
To: Wen Gong <wgong@codeaurora.org>
Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org
Subject: Re: [PATCH] ath10k: correct the array index from mcs index for HT mode for QCA6174
Date: Sat, 15 Aug 2020 07:06:28 +0000 (UTC) [thread overview]
Message-ID: <20200815070628.9FE80C433C6@smtp.codeaurora.org> (raw)
In-Reply-To: <1597392294-13124-1-git-send-email-wgong@codeaurora.org>
Wen Gong <wgong@codeaurora.org> wrote:
> The mcs index of HT mode is 0 to 31, please refer http://mcsindex.com/.
> Its spatial stream(Nss) number is from 1 to 4, mcs index is 0~7 for
> Nss=1, 8~15 for Nss=2, 16~23 for Nss=3 and 24~31 is for Nss=4.
>
> The mcs is reported from firmware in wmi_tlv_peer_stats_info of
> event WMI_TLV_PEER_STATS_INFO_EVENTID, its range is from 0~15 for
> QCA6174 SDIO and PCIe. It is for both Nss=1 and Nss=2, and it has 2
> rate table supported_ht_mcs_rate_nss1 and supported_ht_mcs_rate_nss2
> in ath10k, they are for Nss=1 and Nss=2, each table has 8 rates.
>
> It need to find the matched row number with the mcs index, for example,
> mcs index is 2, it is <=7, so it is Nss=1, and match row 2 in table of
> Nss=1. If mcs index is 12, it is >= 8 and <= 15, so it is Nss=2, it
> match row 4(12-8) in table of Nss=2. If mcs index is >=16, it is for
> Nss=3/4, it need to add rate table, so it is not support in current
> ath10k.
>
> This patch is to find the row number in rate table of Nss=1 or Nss=2
> with the mcs index reported from firmware.
>
> This patch only effect the chips which supports_peer_stats_info of its
> hw_params is true, it is true only for QCA6174 currently.
>
> Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00048
> Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00110-QCARMSWP-1
>
> Signed-off-by: Wen Gong <wgong@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Patch applied to ath-next branch of ath.git, thanks.
db04b755edaa ath10k: correct the array index from mcs index for HT mode for QCA6174
--
https://patchwork.kernel.org/patch/11713809/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
prev parent reply other threads:[~2020-08-15 7:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-14 8:04 [PATCH] ath10k: correct the array index from mcs index for HT mode for QCA6174 Wen Gong
2020-08-15 7:06 ` Kalle Valo [this message]
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=20200815070628.9FE80C433C6@smtp.codeaurora.org \
--to=kvalo@codeaurora.org \
--cc=ath10k@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=wgong@codeaurora.org \
/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