diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-04-13 13:28:18 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-04-18 11:00:13 +0200 |
commit | f64331d58045b05e5af581284884d5df9b26c031 (patch) | |
tree | 0e125bb01289e9f2b5a474b095a1a95a7b55ac0d /net/mac80211/main.c | |
parent | 96b08fd6080efdfa8f6125cffc6742a2235d92f1 (diff) | |
download | lwn-f64331d58045b05e5af581284884d5df9b26c031.tar.gz lwn-f64331d58045b05e5af581284884d5df9b26c031.zip |
mac80211: keep a separate list of monitor interfaces that are up
In addition to keeping monitor interfaces on the regular list of
interfaces, keep those that are up and not in cooked mode on a
separate list. This saves having to iterate all interfaces when
delivering to monitor interfaces.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 56fb47953b72..ae408a96c407 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -603,6 +603,7 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len, ARRAY_SIZE(local->ext_capa); INIT_LIST_HEAD(&local->interfaces); + INIT_LIST_HEAD(&local->mon_list); __hw_addr_init(&local->mc_list); |