• Home
  • Raw
  • Download

Lines Matching refs:wil

17 	struct wil6210_priv *wil = vif_to_wil(vif);  in wil_p2p_start_listen()  local
22 lockdep_assert_held(&wil->mutex); in wil_p2p_start_listen()
26 wil_err(wil, "wmi_p2p_cfg failed\n"); in wil_p2p_start_listen()
32 wil_err(wil, "wmi_set_ssid failed\n"); in wil_p2p_start_listen()
38 wil_err(wil, "wmi_start_listen failed\n"); in wil_p2p_start_listen()
62 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_search() local
66 wil_dbg_misc(wil, "p2p_search: channel %d\n", P2P_DMG_SOCIAL_CHANNEL); in wil_p2p_search()
68 lockdep_assert_held(&wil->mutex); in wil_p2p_search()
71 wil_err(wil, "search failed. discovery already ongoing\n"); in wil_p2p_search()
78 wil_err(wil, "wmi_p2p_cfg failed\n"); in wil_p2p_search()
84 wil_err(wil, "wmi_set_ssid failed\n"); in wil_p2p_search()
92 wil_err(wil, "wmi_set_ie(WMI_FRAME_PROBE_REQ) failed\n"); in wil_p2p_search()
102 wil_err(wil, "wmi_set_ie(WMI_FRAME_PROBE_RESP) failed\n"); in wil_p2p_search()
108 wil_err(wil, "wmi_start_search failed\n"); in wil_p2p_search()
125 int wil_p2p_listen(struct wil6210_priv *wil, struct wireless_dev *wdev, in wil_p2p_listen() argument
129 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_p2p_listen()
136 wil_dbg_misc(wil, "p2p_listen: duration %d\n", duration); in wil_p2p_listen()
138 mutex_lock(&wil->mutex); in wil_p2p_listen()
141 wil_err(wil, "discovery already ongoing\n"); in wil_p2p_listen()
150 mutex_lock(&wil->vif_mutex); in wil_p2p_listen()
152 wil_dbg_misc(wil, "Delaying p2p listen until scan done\n"); in wil_p2p_listen()
156 mutex_unlock(&wil->vif_mutex); in wil_p2p_listen()
159 mutex_unlock(&wil->vif_mutex); in wil_p2p_listen()
167 wil->radio_wdev = wdev; in wil_p2p_listen()
173 mutex_unlock(&wil->mutex); in wil_p2p_listen()
198 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_cancel_listen() local
202 mutex_lock(&wil->mutex); in wil_p2p_cancel_listen()
205 wil_info(wil, "Cookie mismatch: 0x%016llx vs. 0x%016llx\n", in wil_p2p_cancel_listen()
207 mutex_unlock(&wil->mutex); in wil_p2p_cancel_listen()
213 mutex_unlock(&wil->mutex); in wil_p2p_cancel_listen()
216 wil_err(wil, "listen not started\n"); in wil_p2p_cancel_listen()
220 mutex_lock(&wil->vif_mutex); in wil_p2p_cancel_listen()
221 cfg80211_remain_on_channel_expired(vif_to_radio_wdev(wil, vif), in wil_p2p_cancel_listen()
226 wil->radio_wdev = wil->main_ndev->ieee80211_ptr; in wil_p2p_cancel_listen()
227 mutex_unlock(&wil->vif_mutex); in wil_p2p_cancel_listen()
237 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_listen_expired() local
240 wil_dbg_misc(wil, "p2p_listen_expired\n"); in wil_p2p_listen_expired()
242 mutex_lock(&wil->mutex); in wil_p2p_listen_expired()
244 mutex_unlock(&wil->mutex); in wil_p2p_listen_expired()
249 mutex_lock(&wil->vif_mutex); in wil_p2p_listen_expired()
250 cfg80211_remain_on_channel_expired(vif_to_radio_wdev(wil, vif), in wil_p2p_listen_expired()
255 wil->radio_wdev = wil->main_ndev->ieee80211_ptr; in wil_p2p_listen_expired()
256 mutex_unlock(&wil->vif_mutex); in wil_p2p_listen_expired()
265 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_search_expired() local
268 wil_dbg_misc(wil, "p2p_search_expired\n"); in wil_p2p_search_expired()
270 mutex_lock(&wil->mutex); in wil_p2p_search_expired()
272 mutex_unlock(&wil->mutex); in wil_p2p_search_expired()
279 mutex_lock(&wil->vif_mutex); in wil_p2p_search_expired()
284 wil->radio_wdev = in wil_p2p_search_expired()
285 wil->main_ndev->ieee80211_ptr; in wil_p2p_search_expired()
287 mutex_unlock(&wil->vif_mutex); in wil_p2p_search_expired()
297 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_delayed_listen_work() local
300 mutex_lock(&wil->mutex); in wil_p2p_delayed_listen_work()
302 wil_dbg_misc(wil, "Checking delayed p2p listen\n"); in wil_p2p_delayed_listen_work()
306 mutex_lock(&wil->vif_mutex); in wil_p2p_delayed_listen_work()
309 mutex_unlock(&wil->vif_mutex); in wil_p2p_delayed_listen_work()
312 mutex_unlock(&wil->vif_mutex); in wil_p2p_delayed_listen_work()
316 mutex_lock(&wil->vif_mutex); in wil_p2p_delayed_listen_work()
323 wil->radio_wdev = wil->main_ndev->ieee80211_ptr; in wil_p2p_delayed_listen_work()
329 wil->radio_wdev = p2p->pending_listen_wdev; in wil_p2p_delayed_listen_work()
332 mutex_unlock(&wil->vif_mutex); in wil_p2p_delayed_listen_work()
335 mutex_unlock(&wil->mutex); in wil_p2p_delayed_listen_work()
338 void wil_p2p_stop_radio_operations(struct wil6210_priv *wil) in wil_p2p_stop_radio_operations() argument
340 struct wil6210_vif *vif = ndev_to_vif(wil->main_ndev); in wil_p2p_stop_radio_operations()
346 lockdep_assert_held(&wil->mutex); in wil_p2p_stop_radio_operations()
347 lockdep_assert_held(&wil->vif_mutex); in wil_p2p_stop_radio_operations()
349 if (wil->radio_wdev != wil->p2p_wdev) in wil_p2p_stop_radio_operations()
355 vif->scan_request->wdev == wil->p2p_wdev) in wil_p2p_stop_radio_operations()
361 mutex_unlock(&wil->vif_mutex); in wil_p2p_stop_radio_operations()
363 mutex_lock(&wil->vif_mutex); in wil_p2p_stop_radio_operations()
371 cfg80211_remain_on_channel_expired(wil->radio_wdev, in wil_p2p_stop_radio_operations()
378 wil->radio_wdev = wil->main_ndev->ieee80211_ptr; in wil_p2p_stop_radio_operations()