Skip to content

Commit 8d006c9

Browse files
benzeajmberg-intel
authored andcommitted
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 <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250309073442.6ce298d6a44f.Ibc862dfdd6cb2da63781c791b9dc601bd5ce4bdc@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 380038b commit 8d006c9

File tree

1 file changed

+4
-4
lines changed
  • drivers/net/wireless/intel/iwlwifi/mld

1 file changed

+4
-4
lines changed

drivers/net/wireless/intel/iwlwifi/mld/iface.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,10 @@ u8 iwl_mld_get_fw_bss_vifs_ids(struct iwl_mld *mld)
465465
{
466466
u8 fw_id_bitmap = 0;
467467

468-
ieee80211_iterate_interfaces(mld->hw,
469-
IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER,
470-
iwl_mld_get_fw_id_bss_bitmap_iter,
471-
&fw_id_bitmap);
468+
ieee80211_iterate_active_interfaces_mtx(mld->hw,
469+
IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER,
470+
iwl_mld_get_fw_id_bss_bitmap_iter,
471+
&fw_id_bitmap);
472472

473473
return fw_id_bitmap;
474474
}

0 commit comments

Comments
 (0)