[PATCH ath-next] wifi: ath12k: update channel list in worker when wait flag is set

Aditya Kumar Singh aditya.kumar.singh at oss.qualcomm.com
Tue Jun 17 20:37:16 PDT 2025


On 6/5/2025 1:55 PM, Kang Yang wrote:
> With previous patch [1], ath12k_reg_update_chan_list() will be called
> during reg_process_self_managed_hint().
> 
> reg_process_self_managed_hint() will hold rtnl_lock all the time.
> But ath12k_reg_update_chan_list() may increase the occupation time of
> rtnl_lock, because when wait flag is set, wait_for_completion_timeout()
> will be called during 11d/hw scan.
> 
> Should minimize the occupation time of rtnl_lock as much as possible
> to avoid interfering with rest of the system. So move the update channel
> list operation to a new worker, so that wait_for_completion_timeout()
> won't be called with the rtnl_lock held.
> 
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
> 
> Fixes: f335295aa29c ("wifi: ath12k: avoid deadlock during regulatory update in ath12k_regd_update()") #[1]
> Signed-off-by: Kang Yang <kang.yang at oss.qualcomm.com>
> ---
Reviewed-by: Aditya Kumar Singh <aditya.kumar.singh at oss.qualcomm.com>

-- 
Aditya



More information about the ath12k mailing list