Lines Matching refs:lwork
2569 static void wpas_p2p_listen_work_free(struct wpas_p2p_listen_work *lwork) in wpas_p2p_listen_work_free() argument
2571 if (lwork == NULL) in wpas_p2p_listen_work_free()
2573 wpabuf_free(lwork->probe_resp_ie); in wpas_p2p_listen_work_free()
2574 os_free(lwork); in wpas_p2p_listen_work_free()
2580 struct wpas_p2p_listen_work *lwork; in wpas_p2p_listen_work_done() local
2585 lwork = wpa_s->p2p_listen_work->ctx; in wpas_p2p_listen_work_done()
2586 wpas_p2p_listen_work_free(lwork); in wpas_p2p_listen_work_done()
2595 struct wpas_p2p_listen_work *lwork = work->ctx; in wpas_start_listen_cb() local
2603 wpas_p2p_listen_work_free(lwork); in wpas_start_listen_cb()
2609 wpa_drv_set_ap_wps_ie(wpa_s, NULL, lwork->probe_resp_ie, NULL); in wpas_start_listen_cb()
2618 wpa_s->pending_listen_freq = lwork->freq; in wpas_start_listen_cb()
2619 wpa_s->pending_listen_duration = lwork->duration; in wpas_start_listen_cb()
2621 duration = lwork->duration; in wpas_start_listen_cb()
2630 if (wpa_drv_remain_on_channel(wpa_s, lwork->freq, duration) < 0) { in wpas_start_listen_cb()
2633 "state", lwork->freq); in wpas_start_listen_cb()
2639 wpa_s->roc_waiting_drv_freq = lwork->freq; in wpas_start_listen_cb()
2648 struct wpas_p2p_listen_work *lwork; in wpas_start_listen() local
2655 lwork = os_zalloc(sizeof(*lwork)); in wpas_start_listen()
2656 if (lwork == NULL) in wpas_start_listen()
2658 lwork->freq = freq; in wpas_start_listen()
2659 lwork->duration = duration; in wpas_start_listen()
2661 lwork->probe_resp_ie = wpabuf_dup(probe_resp_ie); in wpas_start_listen()
2662 if (lwork->probe_resp_ie == NULL) { in wpas_start_listen()
2663 wpas_p2p_listen_work_free(lwork); in wpas_start_listen()
2669 lwork) < 0) { in wpas_start_listen()
2670 wpas_p2p_listen_work_free(lwork); in wpas_start_listen()