Commit c9eb90a5 authored by John Crispin's avatar John Crispin Committed by Johannes Berg

mac80211: MBSSID channel switch

Trigger ieee80211_csa_finish() on the non-transmitting interfaces
when channel switch concludes on the transmitting interface.
Co-developed-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Co-developed-by: default avatarAloka Dixit <alokad@codeaurora.org>
Signed-off-by: default avatarAloka Dixit <alokad@codeaurora.org>
Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
Link: https://lore.kernel.org/r/6fde4d7f9fa387494f46a7aa4a584478dcda06f1.1645702516.git.lorenzo@kernel.orgSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 2b3171c6
...@@ -3256,9 +3256,31 @@ cfg80211_beacon_dup(struct cfg80211_beacon_data *beacon) ...@@ -3256,9 +3256,31 @@ cfg80211_beacon_dup(struct cfg80211_beacon_data *beacon)
void ieee80211_csa_finish(struct ieee80211_vif *vif) void ieee80211_csa_finish(struct ieee80211_vif *vif)
{ {
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
struct ieee80211_local *local = sdata->local;
ieee80211_queue_work(&sdata->local->hw, rcu_read_lock();
&sdata->csa_finalize_work);
if (vif->mbssid_tx_vif == vif) {
/* Trigger ieee80211_csa_finish() on the non-transmitting
* interfaces when channel switch is received on
* transmitting interface
*/
struct ieee80211_sub_if_data *iter;
list_for_each_entry_rcu(iter, &local->interfaces, list) {
if (!ieee80211_sdata_running(iter))
continue;
if (iter == sdata || iter->vif.mbssid_tx_vif != vif)
continue;
ieee80211_queue_work(&iter->local->hw,
&iter->csa_finalize_work);
}
}
ieee80211_queue_work(&local->hw, &sdata->csa_finalize_work);
rcu_read_unlock();
} }
EXPORT_SYMBOL(ieee80211_csa_finish); EXPORT_SYMBOL(ieee80211_csa_finish);
......
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