Lines Matching refs:local
10 static void ieee80211_sched_scan_cancel(struct ieee80211_local *local) in ieee80211_sched_scan_cancel() argument
12 if (ieee80211_request_sched_scan_stop(local)) in ieee80211_sched_scan_cancel()
14 cfg80211_sched_scan_stopped_rtnl(local->hw.wiphy, 0); in ieee80211_sched_scan_cancel()
19 struct ieee80211_local *local = hw_to_local(hw); in __ieee80211_suspend() local
23 if (!local->open_count) in __ieee80211_suspend()
26 ieee80211_scan_cancel(local); in __ieee80211_suspend()
28 ieee80211_dfs_cac_cancel(local); in __ieee80211_suspend()
30 ieee80211_roc_purge(local, NULL); in __ieee80211_suspend()
32 ieee80211_del_virtual_monitor(local); in __ieee80211_suspend()
36 mutex_lock(&local->sta_mtx); in __ieee80211_suspend()
37 list_for_each_entry(sta, &local->sta_list, list) { in __ieee80211_suspend()
42 mutex_unlock(&local->sta_mtx); in __ieee80211_suspend()
47 ieee80211_sched_scan_cancel(local); in __ieee80211_suspend()
57 ieee80211_flush_queues(local, NULL, true); in __ieee80211_suspend()
59 local->quiescing = true; in __ieee80211_suspend()
63 flush_workqueue(local->workqueue); in __ieee80211_suspend()
66 del_timer_sync(&local->sta_cleanup); in __ieee80211_suspend()
72 cancel_work_sync(&local->dynamic_ps_enable_work); in __ieee80211_suspend()
73 del_timer_sync(&local->dynamic_ps_timer); in __ieee80211_suspend()
75 local->wowlan = wowlan; in __ieee80211_suspend()
76 if (local->wowlan) { in __ieee80211_suspend()
86 list_for_each_entry(sdata, &local->interfaces, list) { in __ieee80211_suspend()
103 !(local->hw.conf.flags & IEEE80211_CONF_PS)) { in __ieee80211_suspend()
104 local->hw.conf.flags |= IEEE80211_CONF_PS; in __ieee80211_suspend()
105 ieee80211_hw_config(local, in __ieee80211_suspend()
110 err = drv_suspend(local, wowlan); in __ieee80211_suspend()
112 local->quiescing = false; in __ieee80211_suspend()
113 local->wowlan = false; in __ieee80211_suspend()
115 mutex_lock(&local->sta_mtx); in __ieee80211_suspend()
117 &local->sta_list, list) { in __ieee80211_suspend()
120 mutex_unlock(&local->sta_mtx); in __ieee80211_suspend()
143 list_for_each_entry(sdata, &local->interfaces, list) { in __ieee80211_suspend()
155 mutex_lock(&local->sta_mtx); in __ieee80211_suspend()
162 WARN_ON(drv_sta_state(local, sta->sdata, in __ieee80211_suspend()
166 mutex_unlock(&local->sta_mtx); in __ieee80211_suspend()
173 drv_remove_interface(local, sdata); in __ieee80211_suspend()
180 WARN_ON(!list_empty(&local->chanctx_list)); in __ieee80211_suspend()
183 ieee80211_stop_device(local); in __ieee80211_suspend()
186 local->suspended = true; in __ieee80211_suspend()
189 local->quiescing = false; in __ieee80211_suspend()