Lines Matching defs:p2p

18 	struct wil_p2p_info *p2p = &vif->p2p;
19 u8 channel = p2p->listen_chan.hw_value;
42 INIT_WORK(&p2p->discovery_expired_work, wil_p2p_listen_expired);
43 mod_timer(&p2p->discovery_timer,
44 jiffies + msecs_to_jiffies(p2p->listen_duration));
64 struct wil_p2p_info *p2p = &vif->p2p;
70 if (p2p->discovery_started) {
112 p2p->discovery_started = 1;
113 INIT_WORK(&p2p->discovery_expired_work, wil_p2p_search_expired);
114 mod_timer(&p2p->discovery_timer,
130 struct wil_p2p_info *p2p = &vif->p2p;
140 if (p2p->discovery_started) {
146 memcpy(&p2p->listen_chan, chan, sizeof(*chan));
147 *cookie = ++p2p->cookie;
148 p2p->listen_duration = duration;
152 wil_dbg_misc(wil, "Delaying p2p listen until scan done\n");
153 p2p->pending_listen_wdev = wdev;
154 p2p->discovery_started = 1;
165 p2p->discovery_started = 1;
179 struct wil_p2p_info *p2p = &vif->p2p;
180 u8 started = p2p->discovery_started;
182 if (p2p->discovery_started) {
183 if (p2p->pending_listen_wdev) {
185 p2p->pending_listen_wdev = NULL;
187 timer_delete_sync(&p2p->discovery_timer);
190 p2p->discovery_started = 0;
199 struct wil_p2p_info *p2p = &vif->p2p;
204 if (cookie != p2p->cookie) {
206 p2p->cookie, cookie);
222 p2p->cookie,
223 &p2p->listen_chan,
233 struct wil_p2p_info *p2p = container_of(work,
235 struct wil6210_vif *vif = container_of(p2p,
236 struct wil6210_vif, p2p);
251 p2p->cookie,
252 &p2p->listen_chan,
261 struct wil_p2p_info *p2p = container_of(work,
263 struct wil6210_vif *vif = container_of(p2p,
264 struct wil6210_vif, p2p);
293 struct wil_p2p_info *p2p = container_of(work,
295 struct wil6210_vif *vif = container_of(p2p,
296 struct wil6210_vif, p2p);
302 wil_dbg_misc(wil, "Checking delayed p2p listen\n");
303 if (!p2p->discovery_started || !p2p->pending_listen_wdev)
318 cfg80211_remain_on_channel_expired(p2p->pending_listen_wdev,
319 p2p->cookie,
320 &p2p->listen_chan,
325 cfg80211_ready_on_channel(p2p->pending_listen_wdev, p2p->cookie,
326 &p2p->listen_chan,
327 p2p->listen_duration, GFP_KERNEL);
329 wil->radio_wdev = p2p->pending_listen_wdev;
331 p2p->pending_listen_wdev = NULL;
341 struct wil_p2p_info *p2p = &vif->p2p;
352 if (!p2p->discovery_started) {
353 /* Regular scan on the p2p device */
360 /* Search or listen on p2p device */
372 p2p->cookie,
373 &p2p->listen_chan,