mac80211: clean up station cleanup timer
We currently run this timer exactly once when a new mac80211 device is registered, but that is completely pointless since it will have no work to do at all. Therefore, remove that and also simplify some code using the timer. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
ccc7c28af2
commit
26d59535aa
@@ -1290,7 +1290,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
|
||||
}
|
||||
}
|
||||
|
||||
add_timer(&local->sta_cleanup);
|
||||
mod_timer(&local->sta_cleanup, jiffies + 1);
|
||||
|
||||
mutex_lock(&local->sta_mtx);
|
||||
list_for_each_entry(sta, &local->sta_list, list)
|
||||
|
Reference in New Issue
Block a user