Lines Matching refs:vif

15 static int wil_p2p_start_listen(struct wil6210_vif *vif)  in wil_p2p_start_listen()  argument
17 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_start_listen()
18 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_start_listen()
24 rc = wmi_p2p_cfg(vif, channel, P2P_DEFAULT_BI); in wil_p2p_start_listen()
30 rc = wmi_set_ssid(vif, strlen(P2P_WILDCARD_SSID), P2P_WILDCARD_SSID); in wil_p2p_start_listen()
36 rc = wmi_start_listen(vif); in wil_p2p_start_listen()
47 wmi_stop_discovery(vif); in wil_p2p_start_listen()
59 int wil_p2p_search(struct wil6210_vif *vif, in wil_p2p_search() argument
62 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_search()
64 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_search()
76 rc = wmi_p2p_cfg(vif, P2P_DMG_SOCIAL_CHANNEL, P2P_DEFAULT_BI); in wil_p2p_search()
82 rc = wmi_set_ssid(vif, strlen(P2P_WILDCARD_SSID), P2P_WILDCARD_SSID); in wil_p2p_search()
89 rc = wmi_set_ie(vif, WMI_FRAME_PROBE_REQ, in wil_p2p_search()
99 rc = wmi_set_ie(vif, WMI_FRAME_PROBE_RESP, in wil_p2p_search()
106 rc = wmi_start_search(vif); in wil_p2p_search()
119 wmi_stop_discovery(vif); in wil_p2p_search()
129 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_p2p_listen() local
130 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_listen()
151 if (vif->scan_request) { in wil_p2p_listen()
161 rc = wil_p2p_start_listen(vif); in wil_p2p_listen()
166 if (vif->mid == 0) in wil_p2p_listen()
177 u8 wil_p2p_stop_discovery(struct wil6210_vif *vif) in wil_p2p_stop_discovery() argument
179 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_stop_discovery()
188 wmi_stop_discovery(vif); in wil_p2p_stop_discovery()
196 int wil_p2p_cancel_listen(struct wil6210_vif *vif, u64 cookie) in wil_p2p_cancel_listen() argument
198 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_cancel_listen()
199 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_cancel_listen()
211 started = wil_p2p_stop_discovery(vif); in wil_p2p_cancel_listen()
221 cfg80211_remain_on_channel_expired(vif_to_radio_wdev(wil, vif), in wil_p2p_cancel_listen()
225 if (vif->mid == 0) in wil_p2p_cancel_listen()
235 struct wil6210_vif *vif = container_of(p2p, in wil_p2p_listen_expired() local
237 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_listen_expired()
243 started = wil_p2p_stop_discovery(vif); in wil_p2p_listen_expired()
250 cfg80211_remain_on_channel_expired(vif_to_radio_wdev(wil, vif), in wil_p2p_listen_expired()
254 if (vif->mid == 0) in wil_p2p_listen_expired()
263 struct wil6210_vif *vif = container_of(p2p, in wil_p2p_search_expired() local
265 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_search_expired()
271 started = wil_p2p_stop_discovery(vif); in wil_p2p_search_expired()
280 if (vif->scan_request) { in wil_p2p_search_expired()
281 cfg80211_scan_done(vif->scan_request, &info); in wil_p2p_search_expired()
282 vif->scan_request = NULL; in wil_p2p_search_expired()
283 if (vif->mid == 0) in wil_p2p_search_expired()
295 struct wil6210_vif *vif = container_of(p2p, in wil_p2p_delayed_listen_work() local
297 struct wil6210_priv *wil = vif_to_wil(vif); in wil_p2p_delayed_listen_work()
307 if (vif->scan_request) { in wil_p2p_delayed_listen_work()
314 rc = wil_p2p_start_listen(vif); in wil_p2p_delayed_listen_work()
322 if (vif->mid == 0) in wil_p2p_delayed_listen_work()
328 if (vif->mid == 0) in wil_p2p_delayed_listen_work()
340 struct wil6210_vif *vif = ndev_to_vif(wil->main_ndev); in wil_p2p_stop_radio_operations() local
341 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_stop_radio_operations()
354 if (vif->scan_request && in wil_p2p_stop_radio_operations()
355 vif->scan_request->wdev == wil->p2p_wdev) in wil_p2p_stop_radio_operations()
356 wil_abort_scan(vif, true); in wil_p2p_stop_radio_operations()
362 wil_p2p_stop_discovery(vif); in wil_p2p_stop_radio_operations()
365 if (vif->scan_request) { in wil_p2p_stop_radio_operations()
367 cfg80211_scan_done(vif->scan_request, &info); in wil_p2p_stop_radio_operations()
368 vif->scan_request = NULL; in wil_p2p_stop_radio_operations()