wifi: iwlwifi: mld: assume wiphy is locked when getting BSS ifaces
The code was calling ieee80211_iterate_interfaces, however that takes a lock of iflist_mtx, which must not be taken recursively. Fix this by using the appropriate _mtx version that asserts that the wiphy mutex is already held. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250309073442.6ce298d6a44f.Ibc862dfdd6cb2da63781c791b9dc601bd5ce4bdc@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
380038bb83
commit
8d006c9213
@@ -465,10 +465,10 @@ u8 iwl_mld_get_fw_bss_vifs_ids(struct iwl_mld *mld)
|
||||
{
|
||||
u8 fw_id_bitmap = 0;
|
||||
|
||||
ieee80211_iterate_interfaces(mld->hw,
|
||||
IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER,
|
||||
iwl_mld_get_fw_id_bss_bitmap_iter,
|
||||
&fw_id_bitmap);
|
||||
ieee80211_iterate_active_interfaces_mtx(mld->hw,
|
||||
IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER,
|
||||
iwl_mld_get_fw_id_bss_bitmap_iter,
|
||||
&fw_id_bitmap);
|
||||
|
||||
return fw_id_bitmap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user