[PATCH v2] ath10k: fix wmi mgmt tx queue full due to race condition

2020-12-21 Thread Miaoqing Pan
e queue a few SKBs simultaneously. Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1.c2-00033-QCAHLSWMTPLZ-1 Signed-off-by: Miaoqing Pan --- v2: use skb_queue_len_lockless instead of skb_queue_len --- drivers/net/wireless/ath/ath10k/mac.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(

[PATCH] ath10k: fix wmi mgmt tx queue full due to race condition

2020-12-20 Thread Miaoqing Pan
still added by one. The final result is the length of the queue will reach the maximum value but the queue is empty. So remove ar->data_lock, and use 'skb_queue_tail' instead of '__skb_queue_tail' to prevent the potential race condition. Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1.c2-00033-QCA

[PATCH] ath10k: fix get invalid tx rate for Mesh metric

2019-10-29 Thread Miaoqing Pan
-by: Anilkumar Kolli Signed-off-by: Miaoqing Pan --- drivers/net/wireless/ath/ath10k/txrx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c index 4102df0..39abf8b 100644 --- a/drivers/net/wireless/ath/ath10k/txrx.c +++ b

[PATCH 2/2] ath10k: fix memory leak for tpc_stats_final

2019-10-09 Thread Miaoqing Pan
The memory of ar->debug.tpc_stats_final is reallocated every debugfs reading, it should be freed in ath10k_debug_destroy() for the last allocation. Tested HW: QCA9984 Tested FW: 10.4-3.9.0.2-00035 Signed-off-by: Miaoqing Pan --- drivers/net/wireless/ath/ath10k/debug.c | 1 + 1 file changed

[PATCH 1/2] ath10k: fix array out-of-bounds access

2019-10-09 Thread Miaoqing Pan
If firmware reports rate_max > WMI_TPC_RATE_MAX(WMI_TPC_FINAL_RATE_MAX) or num_tx_chain > WMI_TPC_TX_N_CHAIN, it will cause array out-of-bounds access, so print a warning and reset to avoid memory corruption. Tested HW: QCA9984 Tested FW: 10.4-3.9.0.2-00035 Signed-off-by: Miaoqi

[PATCH] mac80211: fix txq null pointer dereference

2019-09-26 Thread Miaoqing Pan
.10-00047 Signed-off-by: Miaoqing Pan --- net/mac80211/debugfs_netdev.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index b1438fd..64b544a 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80

[PATCH] nl80211: fix null pointer dereference

2019-09-26 Thread Miaoqing Pan
0.4-3.10-00047 Signed-off-by: Miaoqing Pan --- net/wireless/nl80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index d21b158..54d5c89 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -6270,6 +6270,9 @@ static

[PATCH] ath10k: fix latency issue for QCA988x

2019-08-29 Thread Miaoqing Pan
037 Fixes: 4504f0e5b571 ("ath10k: sdio: workaround firmware UART pin configuration bug") Signed-off-by: Miaoqing Pan --- drivers/net/wireless/ath/ath10k/core.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/driv

[PATCH] ath10k: fix PCIE device wake up failed

2019-05-29 Thread Miaoqing Pan
d with the spec. So fix the issue by changing RTC_STATE_V_ON from 0x5 to 0x7, passed ~2000 iterations. Tested HW: QCA9984 Signed-off-by: Miaoqing Pan --- drivers/net/wireless/ath/ath10k/hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/

[PATCH v2] ath10k: fix failure to set multiple fixed rate

2019-05-29 Thread Miaoqing Pan
es are given, peer fixed rate will take effect to peers for which this cmd is given. Remaining peers in that vdev, will use vdev fixed rate. Tested HW: QCA9984 Tested FW: 10.4-3.9.0.2-00035 Signed-off-by: Miaoqing Pan --- Changes since v1 - update commit message, remove 2nd broken command ---

[PATCH] ath10k: fix failure to set multiple fixed rate

2019-05-27 Thread Miaoqing Pan
specific peer. Remaining peers will use auto rate. If both vdev fixed rate and peer fixed rates are given, peer fixed rate will take effect to peers for which this cmd is given. Remaining peers in that vdev, will use vdev fixed rate. Tested HW: QCA9984 Tested FW: 10.4-3.9.0.2-00035 Signed-off-by:

[PATCH v2] ath10k: fix fw crash by moving chip reset after napi disabled

2019-05-23 Thread Miaoqing Pan
:01:00.0: [11]: 0x0004cc00 0 0 0 0 Tested HW: QCA9984,QCA9887,WCN3990 Signed-off-by: Miaoqing Pan --- Changes since v1: - update commit message --- drivers/net/wireless/ath/ath10k/pci.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath

[PATCH] ath10k: fix fw crash by moving chip reset after napi disabled

2019-05-21 Thread Miaoqing Pan
:01:00.0: [11]: 0x0004cc00 0 0 0 0 Tested HW: QCA9984 Tested FW: 10.4-3.9.0.2-00035 Signed-off-by: Miaoqing Pan --- drivers/net/wireless/ath/ath10k/pci.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net