]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/mac80211/iface.c
mac80211: Fix a warning on changing to monitor mode from STA
[mv-sheeva.git] / net / mac80211 / iface.c
index 01a21c2f6ab37df336f5f69c55f33de4e0a698f3..8e2137bd87e2435d45294ffa192f34688ab61097 100644 (file)
@@ -1332,6 +1332,9 @@ u32 __ieee80211_recalc_idle(struct ieee80211_local *local)
                hw_roc = true;
 
        list_for_each_entry(sdata, &local->interfaces, list) {
+               if (sdata->vif.type == NL80211_IFTYPE_MONITOR ||
+                   sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
+                       continue;
                if (sdata->old_idle == sdata->vif.bss_conf.idle)
                        continue;
                if (!ieee80211_sdata_running(sdata))