<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/wireless/ath/ath10k/htt_rx.c, branch linux-6.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.2.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.2.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2022-11-17T12:57:35Z</updated>
<entry>
<title>wifi: ath10k: Remove redundant argument offset</title>
<updated>2022-11-17T12:57:35Z</updated>
<author>
<name>Zhi-Jun You</name>
<email>hujy652@gmail.com</email>
</author>
<published>2022-11-10T16:40:25Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d9e38350a7b10f2e1006cd85a664b8698d027e7c'/>
<id>urn:sha1:d9e38350a7b10f2e1006cd85a664b8698d027e7c</id>
<content type='text'>
This argument of ath10k_htt_rx_h_frag_pn_check() is always set to 0 so
drop this.

Signed-off-by: Zhi-Jun You &lt;hujy652@gmail.com&gt;
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20221110164025.14418-1-hujy652@gmail.com
</content>
</entry>
<entry>
<title>wifi: ath10k: Use IEEE80211_SEQ_TO_SN() for seq_ctrl conversion</title>
<updated>2022-11-09T07:05:42Z</updated>
<author>
<name>Zhi-Jun You</name>
<email>hujy652@gmail.com</email>
</author>
<published>2022-11-06T16:22:27Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a60c0401729851bfe637c2c8af5f759ea985336f'/>
<id>urn:sha1:a60c0401729851bfe637c2c8af5f759ea985336f</id>
<content type='text'>
Use IEEE80211_SEQ_TO_SN() macro to convert seq_ctrl to sn for better
readability.

Signed-off-by: Zhi-Jun You &lt;hujy652@gmail.com&gt;
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20221106162227.1119-1-hujy652@gmail.com
</content>
</entry>
<entry>
<title>wifi: ath10k: reset pointer after memory free to avoid potential use-after-free</title>
<updated>2022-09-22T07:18:06Z</updated>
<author>
<name>Wen Gong</name>
<email>quic_wgong@quicinc.com</email>
</author>
<published>2022-09-20T15:23:54Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1e1cb8e0b73e6f39a9d4a7a15d940b1265387eb5'/>
<id>urn:sha1:1e1cb8e0b73e6f39a9d4a7a15d940b1265387eb5</id>
<content type='text'>
When running suspend test, kernel crash happened in ath10k, and it is
fixed by commit b72a4aff947b ("ath10k: skip ath10k_halt during suspend
for driver state RESTARTING").

Currently the crash is fixed, but as a common code style, it is better
to set the pointer to NULL after memory is free.

This is to address the code style and it will avoid potential bug of
use-after-free.

Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00110-QCARMSWP-1
Signed-off-by: Wen Gong &lt;quic_wgong@quicinc.com&gt;
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20220505092248.787-1-quic_wgong@quicinc.com
</content>
</entry>
<entry>
<title>wifi: ath10k: Fix miscellaneous spelling errors</title>
<updated>2022-09-16T09:18:51Z</updated>
<author>
<name>Jeff Johnson</name>
<email>quic_jjohnson@quicinc.com</email>
</author>
<published>2022-09-09T14:53:00Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b8a71b953653dfd6b005356bff8463503dd0f965'/>
<id>urn:sha1:b8a71b953653dfd6b005356bff8463503dd0f965</id>
<content type='text'>
Fix misspellings flagged by 'codespell'.

Signed-off-by: Jeff Johnson &lt;quic_jjohnson@quicinc.com&gt;
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20220909145300.19223-1-quic_jjohnson@quicinc.com
</content>
</entry>
<entry>
<title>wifi: mac80211: move some future per-link data to bss_conf</title>
<updated>2022-06-20T10:55:01Z</updated>
<author>
<name>Johannes Berg</name>
<email>johannes.berg@intel.com</email>
</author>
<published>2022-05-10T11:26:44Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d0a9123ef548def5c8880e83e5df948eb5b55c62'/>
<id>urn:sha1:d0a9123ef548def5c8880e83e5df948eb5b55c62</id>
<content type='text'>
To add MLD, reuse the bss_conf structure later for per-link
information, so move some things into it that are per link.

Most transformations were done with the following spatch:

    @@
    expression sdata;
    identifier var = { chanctx_conf, mu_mimo_owner, csa_active, color_change_active, color_change_color };
    @@
    -sdata-&gt;vif.var
    +sdata-&gt;vif.bss_conf.var

    @@
    struct ieee80211_vif *vif;
    identifier var = { chanctx_conf, mu_mimo_owner, csa_active, color_change_active, color_change_color };
    @@
    -vif-&gt;var
    +vif-&gt;bss_conf.var

Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
</content>
</entry>
<entry>
<title>ath10k: fix recently introduced checkpatch warning</title>
<updated>2022-06-08T08:19:10Z</updated>
<author>
<name>Kalle Valo</name>
<email>quic_kvalo@quicinc.com</email>
</author>
<published>2022-06-06T14:29:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cc2609eda6981d65b3b1c81e2807910d718b2b98'/>
<id>urn:sha1:cc2609eda6981d65b3b1c81e2807910d718b2b98</id>
<content type='text'>
I updated my checkpatch and saw new warnings:

drivers/net/wireless/ath/ath10k/qmi.c:593: Prefer strscpy over strlcpy - see: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
drivers/net/wireless/ath/ath10k/qmi.c:598: Prefer strscpy over strlcpy - see: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
drivers/net/wireless/ath/ath10k/htt_rx.c:3565: Integer promotion: Using 'h' in '%04hx' is unnecessary

Compile tested only.

Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20220606142957.23721-1-kvalo@kernel.org
</content>
</entry>
<entry>
<title>ath10k: fix misreported tx bandwidth for 160Mhz</title>
<updated>2022-05-22T12:28:33Z</updated>
<author>
<name>Maxime Bizon</name>
<email>mbizon@freebox.fr</email>
</author>
<published>2022-05-16T15:23:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=75a7062e533e309a9ca0812c69f3ac3cefadb8b1'/>
<id>urn:sha1:75a7062e533e309a9ca0812c69f3ac3cefadb8b1</id>
<content type='text'>
Because of this missing switch case, 160Mhz transmit was reported as
20Mhz, leading to wrong airtime calculation and AQL limiting max
throughput.

Tested-on: QCA9984 hw2.0 PCI 10.4-3.10-00047

Signed-off-by: Maxime Bizon &lt;mbizon@freebox.fr&gt;
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/cd2735a40da7f4fcc5323e3fca3775e7b5402ece.camel@freebox.fr
</content>
</entry>
<entry>
<title>ath10k: fix pointer arithmetic error in trace call</title>
<updated>2022-02-24T09:05:10Z</updated>
<author>
<name>Francesco Magliocca</name>
<email>franciman12@gmail.com</email>
</author>
<published>2022-02-21T12:26:38Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=49ffac5907a8ff30c2cfc6ff9d56fe5c81abb059'/>
<id>urn:sha1:49ffac5907a8ff30c2cfc6ff9d56fe5c81abb059</id>
<content type='text'>
Reading through the commit history, it looks like
there is no special need why we must skip the first 4 bytes
in this trace call:

trace_ath10k_htt_rx_desc(ar, (void*)rx_desc + sizeof(u32),
			 hw-&gt;rx_desc_ops-&gt;rx_desc_size - sizeof(u32));

found in the function ath10k_htt_rx_amsdu_pop in the file htt_rx.c

i think the original author
(who is also the one who added rx_desc tracing capabilities
in a0883cf7e75a) just wanted to trace the rx_desc contents,
ignoring the fw_rx_desc_base info field
(which is the part being skipped over).
But the trace_ath10k_htt_rx_desc later added
don't care about skipping it, so it may be good
to uniform this call to the others in the file.
But this would change the output of the trace and
thus it may be a problem for tools that rely on it.
Therefore I propose until further discussion
to just keep it as it is and just fix the pointer arithmetic bug.

Add missing void* cast to rx descriptor pointer in order to
properly skip the initial 4 bytes of the rx descriptor
when passing it to trace_ath10k_htt_rx_desc trace function.

This fixes the pointer arithmetic error detected
by Dan Carpenter's static analysis tool.

Fixes: 6bae9de622d3 ("ath10k: abstract htt_rx_desc structure")

Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00157-QCARMSWPZ-1

Signed-off-by: Francesco Magliocca &lt;franciman12@gmail.com&gt;
Link: https://lore.kernel.org/ath10k/20220201130900.GD22458@kili/
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20220221122638.7971-1-franciman12@gmail.com
</content>
</entry>
<entry>
<title>ath10k: abstract htt_rx_desc structure</title>
<updated>2022-01-17T12:45:15Z</updated>
<author>
<name>Francesco Magliocca</name>
<email>franciman12@gmail.com</email>
</author>
<published>2022-01-12T08:15:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6bae9de622d3ef4805aba40e763eb4b0975c4f6d'/>
<id>urn:sha1:6bae9de622d3ef4805aba40e763eb4b0975c4f6d</id>
<content type='text'>
QCA6174 card often hangs with the current htt_rx_desc
memory layout in some circumstances, because its firmware
fails to handle length differences.
Therefore we must abstract the htt_rx_desc structure
and operations on it, to allow different wireless cards
to use different, unrelated rx descriptor structures.

Define a base htt_rx_desc structure and htt_rx_desc_v1
for use with the QCA family of ath10k supported cards
and htt_rx_desc_v2 for use with the WCN3990 card.

Define htt_rx_desc_ops which contains the abstract operations
to access the generic htt_rx_desc, give implementations
for each card and update htt_rx.c to use the defined
abstract interface to rx descriptors.

Fixes: e3def6f7ddf8 ("ath10k: Update rx descriptor for WCN3990 target")

Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00157-QCARMSWPZ-1

Co-developed-by: Enrico Lumetti &lt;enrico@fracta.dev&gt;
Signed-off-by: Enrico Lumetti &lt;enrico@fracta.dev&gt;
Signed-off-by: Francesco Magliocca &lt;franciman12@gmail.com&gt;
Link: https://lore.kernel.org/ath10k/CAH4F6usFu8-A6k5Z7rU9__iENcSC6Zr-NtRhh_aypR74UvN1uQ@mail.gmail.com/
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20211216151823.68878-1-franciman12@gmail.com
</content>
</entry>
<entry>
<title>ath10k: remove unused more_frags variable</title>
<updated>2021-06-12T10:38:26Z</updated>
<author>
<name>Yang Yingliang</name>
<email>yangyingliang@huawei.com</email>
</author>
<published>2021-05-26T14:22:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e0a6120f6816ddd366530ce7ae5cb001a5e819dd'/>
<id>urn:sha1:e0a6120f6816ddd366530ce7ae5cb001a5e819dd</id>
<content type='text'>
Fix the following W=1 build warning:

  drivers/net/wireless/ath/ath10k/htt_rx.c:1790:7: warning: variable ‘more_frags’ set but not used [-Wunused-but-set-variable]
   1790 |  bool more_frags;
        |       ^~~~~~~~~~

Fixes: a1166b2653db ("ath10k: add CCMP PN replay protection for fragmented frames for PCIe")
Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210526142219.2542528-1-yangyingliang@huawei.com
</content>
</entry>
</feed>
