diff options
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 2a8d759324c2..89a83770d152 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -560,6 +560,9 @@ void ieee80211_iterate_active_interfaces( | |||
560 | list_for_each_entry(sdata, &local->interfaces, list) { | 560 | list_for_each_entry(sdata, &local->interfaces, list) { |
561 | switch (sdata->vif.type) { | 561 | switch (sdata->vif.type) { |
562 | case NL80211_IFTYPE_MONITOR: | 562 | case NL80211_IFTYPE_MONITOR: |
563 | if (!(sdata->u.mntr_flags & MONITOR_FLAG_ACTIVE)) | ||
564 | continue; | ||
565 | break; | ||
563 | case NL80211_IFTYPE_AP_VLAN: | 566 | case NL80211_IFTYPE_AP_VLAN: |
564 | continue; | 567 | continue; |
565 | default: | 568 | default: |
@@ -598,6 +601,9 @@ void ieee80211_iterate_active_interfaces_atomic( | |||
598 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { | 601 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { |
599 | switch (sdata->vif.type) { | 602 | switch (sdata->vif.type) { |
600 | case NL80211_IFTYPE_MONITOR: | 603 | case NL80211_IFTYPE_MONITOR: |
604 | if (!(sdata->u.mntr_flags & MONITOR_FLAG_ACTIVE)) | ||
605 | continue; | ||
606 | break; | ||
601 | case NL80211_IFTYPE_AP_VLAN: | 607 | case NL80211_IFTYPE_AP_VLAN: |
602 | continue; | 608 | continue; |
603 | default: | 609 | default: |