[PATCH] ath10k: fixed scan crash

2018-04-10 Thread zhichen
From: Zhi Chen Length of WMI scan message was not calculated correctly. The allocated buffer was smaller than what we expected. So WMI message corrupted skb_info, which is at the end of skb->data. This fix takes TLV header into account even if the element is zero-length.

[PATCH] ath10k: fix tlv 5ghz channel missing issue

2018-04-10 Thread zhichen
From: Zhi Chen The 5ghz channel parameters of TLV target wasn't passed to host, it caused host can only use lower channels from 36 to 64. Signed-off-by: Zhi Chen --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 ++ 1 file changed, 2

[PATCH v1 2/2] ath10k: fix tx_stats memory leak

2018-12-10 Thread zhichen
From: Zhi Chen Memory of tx_stats was allocated when a STA was added. But it's not freed if the STA failed to be added to driver. This issue could be seen in MDK3 attack case when STA number reached the limit. Tested: QCA9984 with firmware ver 10.4-3.9.0.1-5 Signed-off-by: Zhi Chen ---

[PATCH v1 1/2] ath10k: fix peer stats null pointer dereference

2018-12-10 Thread zhichen
From: Zhi Chen There was a race condition in SMP that an ath10k_peer was created but its member sta was null. Following are procedures of ath10k_peer creation and member sta access in peer statistics path. 1. Peer creation: ath10k_peer_create() =>ath10k_wmi_peer_create()

Re: [PATCH RFC] Revert "ath10k: fix DMA related firmware crashes on multiple devices"

2019-10-30 Thread zhichen
On 2019-10-23 01:16, Peter Oh wrote: How can you say value 0 (I believe it's 64 bytes) DMA burst size causes the symptom and 1 fixes it? Peter Confirmed from HW team that the configuration controls AXI burst size of the RD/WR access to the HOST MEM. 0- No split , RAW read/write transfer

Re: [PATCH RFC] Revert "ath10k: fix DMA related firmware crashes on multiple devices"

2019-10-30 Thread zhichen
On 2019-10-23 02:24, Adrian Chadd wrote: On Tue, 22 Oct 2019 at 10:17, Peter Oh wrote: On 10/22/19 1:57 AM, Zhi Chen wrote: > This reverts commit 76d164f582150fd0259ec0fcbc485470bcd8033e. > PCIe hung issue was observed on multiple platforms. The issue was reproduced > when DUT was configured

Re: [PATCH RFC] Revert "ath10k: fix DMA related firmware crashes on multiple devices"

2019-11-06 Thread zhichen
On 2019-11-06 18:01, Tom Psyborg wrote: On 30/10/2019, zhic...@codeaurora.org wrote: On 2019-10-22 18:07, Tom Psyborg wrote: What about main and 10x firmware branch? There is no code changes in firmware. It's a configuration change of host memory access. Zhi Please change it for main

Re: [PATCH RFC] Revert "ath10k: fix DMA related firmware crashes on multiple devices"

2019-10-29 Thread zhichen
On 2019-10-22 18:07, Tom Psyborg wrote: What about main and 10x firmware branch? There is no code changes in firmware. It's a configuration change of host memory access. Zhi ___ ath10k mailing list ath10k@lists.infradead.org