Lines Matching refs:lwork
2466 static void wpas_p2p_listen_work_free(struct wpas_p2p_listen_work *lwork)
2468 if (lwork == NULL)
2470 wpabuf_free(lwork->probe_resp_ie);
2471 os_free(lwork);
2477 struct wpas_p2p_listen_work *lwork;
2482 lwork = wpa_s->p2p_listen_work->ctx;
2483 wpas_p2p_listen_work_free(lwork);
2492 struct wpas_p2p_listen_work *lwork = work->ctx;
2500 wpas_p2p_listen_work_free(lwork);
2506 wpa_drv_set_ap_wps_ie(wpa_s, NULL, lwork->probe_resp_ie, NULL);
2515 wpa_s->pending_listen_freq = lwork->freq;
2516 wpa_s->pending_listen_duration = lwork->duration;
2518 duration = lwork->duration;
2527 if (wpa_drv_remain_on_channel(wpa_s, lwork->freq, duration) < 0) {
2530 "state", lwork->freq);
2536 wpa_s->roc_waiting_drv_freq = lwork->freq;
2545 struct wpas_p2p_listen_work *lwork;
2552 lwork = os_zalloc(sizeof(*lwork));
2553 if (lwork == NULL)
2555 lwork->freq = freq;
2556 lwork->duration = duration;
2558 lwork->probe_resp_ie = wpabuf_dup(probe_resp_ie);
2559 if (lwork->probe_resp_ie == NULL) {
2560 wpas_p2p_listen_work_free(lwork);
2566 lwork) < 0) {
2567 wpas_p2p_listen_work_free(lwork);