Thread (1 message) 1 message, 1 author, 2023-02-22

Re: [PATCH] wifi: ath11k: fix SAC bug on peer addition with sta band migration

From: Kalle Valo <kvalo@kernel.org>
Date: 2023-02-22 10:07:38
Also in: ath11k, linux-wireless, lkml

Christian Marangi [off-list ref] writes:
On Mon, Feb 20, 2023 at 08:57:51AM +0000, Kalle Valo wrote:
quoted
Christian Marangi [off-list ref] wrote:
quoted
Fix sleep in atomic context warning detected by Smatch static checker
analyzer.

Following the locking pattern for peer_rhash_add lock tbl_mtx_lock mutex
always even if sta is not transitioning to another band.
This is peer_add function and a more secure locking should not cause
performance regression.

Fixes: d673cb6fe6c0 ("wifi: ath11k: fix peer addition/deletion
error on sta band migration")
Reported-by: Dan Carpenter <redacted>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Kalle Valo <redacted>
I assume you only compile tested this and I'll add that to the commit log. It's
always good to know how the patch was tested.
Hi, I just got time to test this and works correctly on my Xiaomi
AX3600.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01208-QCAHKSWPL_SILICONZ-1
Thanks, I'll add this to the commit log.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help