]> 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 e47768cb8cb3b18eb98e3e16abc542a3735ad9e3..8e2137bd87e2435d45294ffa192f34688ab61097 100644 (file)
@@ -1314,6 +1314,7 @@ u32 __ieee80211_recalc_idle(struct ieee80211_local *local)
                        continue;
                }
                /* count everything else */
+               sdata->vif.bss_conf.idle = false;
                count++;
        }
 
@@ -1331,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))