Commit 6f07d216 authored by Luciano Coelho's avatar Luciano Coelho Committed by Johannes Berg

mac80211: lock sdata in ieee80211_csa_connection_drop_work()

We call ieee80211_ibss_disconnect(), which requires sdata to be
locked, so lock the sdata during ieee80211_csa_connection_drop_work().

Cc: Simon Wunderlich <>
Signed-off-by: default avatarLuciano Coelho <>
Signed-off-by: default avatarJohannes Berg <>
parent 70dabeb7
...@@ -753,12 +753,16 @@ static void ieee80211_csa_connection_drop_work(struct work_struct *work) ...@@ -753,12 +753,16 @@ static void ieee80211_csa_connection_drop_work(struct work_struct *work)
container_of(work, struct ieee80211_sub_if_data, container_of(work, struct ieee80211_sub_if_data,
u.ibss.csa_connection_drop_work); u.ibss.csa_connection_drop_work);
ieee80211_ibss_disconnect(sdata); ieee80211_ibss_disconnect(sdata);
synchronize_rcu(); synchronize_rcu();
skb_queue_purge(&sdata->skb_queue); skb_queue_purge(&sdata->skb_queue);
/* trigger a scan to find another IBSS network to join */ /* trigger a scan to find another IBSS network to join */
ieee80211_queue_work(&sdata->local->hw, &sdata->work); ieee80211_queue_work(&sdata->local->hw, &sdata->work);
} }
static void ieee80211_ibss_csa_mark_radar(struct ieee80211_sub_if_data *sdata) static void ieee80211_ibss_csa_mark_radar(struct ieee80211_sub_if_data *sdata)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment