On 9/19/2024 2:10 AM, Kalle Valo wrote: > @@ -4310,7 +4301,7 @@ static void ath12k_sta_rc_update_wk(struct work_struct *wk) > > spin_unlock_bh(&ar->data_lock); > > - mutex_lock(&ar->conf_mutex); > + wiphy_lock(ath12k_ar_to_hw(ar)->wiphy); note in patch 4/4 ath12k_sta::update_wk is converted to use wiphy_work. While a wiphy work item is running wiphy lock is held already. So here try to acquire wiphy lock once again will lead to a deadlock. > > nss = max_t(u32, 1, nss); > nss = min(nss, max(ath12k_mac_max_ht_nss(ht_mcs_mask), > @@ -4426,7 +4417,7 @@ static void ath12k_sta_rc_update_wk(struct work_struct *wk) > } > } > err_rc_bw_changed: > - mutex_unlock(&ar->conf_mutex); > + wiphy_unlock(ath12k_ar_to_hw(ar)->wiphy); > }