Re: [PATCH v10 4/4] mac80211: CSA on non-transmitting interfaces
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2021-06-23 16:03:14
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2021-06-23 16:03:14
On Mon, 2021-04-26 at 12:05 -0700, Aloka Dixit wrote:
+ if (sdata->vif.mbssid.flags & IEEE80211_VIF_MBSSID_TX) {
+ struct ieee80211_sub_if_data *child;
+
+ wiphy_unlock(sdata->local->hw.wiphy);
+ mutex_lock(&sdata->local->iflist_mtx);
+ list_for_each_entry(child, &sdata->local->interfaces, list)
+ if (child->vif.mbssid.parent == vif &&
+ ieee80211_sdata_running(child))
+ ieee80211_queue_work(&child->local->hw,
+ &child->csa_finalize_work);
+ mutex_unlock(&sdata->local->iflist_mtx);
+ wiphy_lock(sdata->local->hw.wiphy);Same here wrt. locking, but for queueing work it shouldn't matter? johannes