Lines Matching refs:lwork

2409 static void wpas_p2p_listen_work_free(struct wpas_p2p_listen_work *lwork)  in wpas_p2p_listen_work_free()  argument
2411 if (lwork == NULL) in wpas_p2p_listen_work_free()
2413 wpabuf_free(lwork->probe_resp_ie); in wpas_p2p_listen_work_free()
2414 os_free(lwork); in wpas_p2p_listen_work_free()
2420 struct wpas_p2p_listen_work *lwork; in wpas_p2p_listen_work_done() local
2425 lwork = wpa_s->p2p_listen_work->ctx; in wpas_p2p_listen_work_done()
2426 wpas_p2p_listen_work_free(lwork); in wpas_p2p_listen_work_done()
2435 struct wpas_p2p_listen_work *lwork = work->ctx; in wpas_start_listen_cb() local
2443 wpas_p2p_listen_work_free(lwork); in wpas_start_listen_cb()
2449 wpa_drv_set_ap_wps_ie(wpa_s, NULL, lwork->probe_resp_ie, NULL); in wpas_start_listen_cb()
2458 wpa_s->pending_listen_freq = lwork->freq; in wpas_start_listen_cb()
2459 wpa_s->pending_listen_duration = lwork->duration; in wpas_start_listen_cb()
2461 duration = lwork->duration; in wpas_start_listen_cb()
2470 if (wpa_drv_remain_on_channel(wpa_s, lwork->freq, duration) < 0) { in wpas_start_listen_cb()
2473 "state", lwork->freq); in wpas_start_listen_cb()
2479 wpa_s->roc_waiting_drv_freq = lwork->freq; in wpas_start_listen_cb()
2488 struct wpas_p2p_listen_work *lwork; in wpas_start_listen() local
2495 lwork = os_zalloc(sizeof(*lwork)); in wpas_start_listen()
2496 if (lwork == NULL) in wpas_start_listen()
2498 lwork->freq = freq; in wpas_start_listen()
2499 lwork->duration = duration; in wpas_start_listen()
2501 lwork->probe_resp_ie = wpabuf_dup(probe_resp_ie); in wpas_start_listen()
2502 if (lwork->probe_resp_ie == NULL) { in wpas_start_listen()
2503 wpas_p2p_listen_work_free(lwork); in wpas_start_listen()
2509 lwork) < 0) { in wpas_start_listen()
2510 wpas_p2p_listen_work_free(lwork); in wpas_start_listen()