Commit 6f385937 authored by Benjamin Berg's avatar Benjamin Berg Committed by Johannes Berg
Browse files

wifi: mac80211_hwsim: disable BHs for hwsim_radio_lock



The hwsim_radio_lock spinlock expects bottom-half to be disabled, fix
the call in mac80211_hwsim_nan_stop to ensure BHs are disabled.

Signed-off-by: default avatarBenjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20260107143805.ce7406511608.I688f8b19346e94c1f8de0cdadde072054d4b861c@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent c0d82ba9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4112,14 +4112,14 @@ static int mac80211_hwsim_stop_nan(struct ieee80211_hw *hw,
	hrtimer_cancel(&data->nan_timer);
	data->nan_device_vif = NULL;

	spin_lock(&hwsim_radio_lock);
	spin_lock_bh(&hwsim_radio_lock);
	list_for_each_entry(data2, &hwsim_radios, list) {
		if (data2->nan_device_vif) {
			nan_cluster_running = true;
			break;
		}
	}
	spin_unlock(&hwsim_radio_lock);
	spin_unlock_bh(&hwsim_radio_lock);

	if (!nan_cluster_running)
		memset(hwsim_nan_cluster_id, 0, ETH_ALEN);