diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2014-04-09 09:29:26 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-04-25 11:08:29 -0400 |
commit | 484298ad1afaf249a4708a5091487132dae80bf9 (patch) | |
tree | dfed80a1d4dd5b6877877203a6da37f24af21462 /net/mac80211/iface.c | |
parent | 093324816b91c9f4a3dd8c78930e43d0a2ef2508 (diff) |
mac80211: track assigned vifs in chanctx
This can be useful. Provides a more straghtforward
way to iterate over interfaces bound to a given
chanctx and allows tracking chanctx usage
explicitly.
The structure is protected by local->chanctx_mtx.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 90b60633a27a..a562d0f489e1 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -1291,6 +1291,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, | |||
1291 | INIT_WORK(&sdata->work, ieee80211_iface_work); | 1291 | INIT_WORK(&sdata->work, ieee80211_iface_work); |
1292 | INIT_WORK(&sdata->recalc_smps, ieee80211_recalc_smps_work); | 1292 | INIT_WORK(&sdata->recalc_smps, ieee80211_recalc_smps_work); |
1293 | INIT_WORK(&sdata->csa_finalize_work, ieee80211_csa_finalize_work); | 1293 | INIT_WORK(&sdata->csa_finalize_work, ieee80211_csa_finalize_work); |
1294 | INIT_LIST_HEAD(&sdata->assigned_chanctx_list); | ||
1294 | 1295 | ||
1295 | switch (type) { | 1296 | switch (type) { |
1296 | case NL80211_IFTYPE_P2P_GO: | 1297 | case NL80211_IFTYPE_P2P_GO: |