Lines Matching refs:lwork
2416 static void wpas_p2p_listen_work_free(struct wpas_p2p_listen_work *lwork)
2418 if (lwork == NULL)
2420 wpabuf_free(lwork->probe_resp_ie);
2421 os_free(lwork);
2427 struct wpas_p2p_listen_work *lwork;
2432 lwork = wpa_s->p2p_listen_work->ctx;
2433 wpas_p2p_listen_work_free(lwork);
2442 struct wpas_p2p_listen_work *lwork = work->ctx;
2450 wpas_p2p_listen_work_free(lwork);
2456 wpa_drv_set_ap_wps_ie(wpa_s, NULL, lwork->probe_resp_ie, NULL);
2465 wpa_s->pending_listen_freq = lwork->freq;
2466 wpa_s->pending_listen_duration = lwork->duration;
2468 duration = lwork->duration;
2477 if (wpa_drv_remain_on_channel(wpa_s, lwork->freq, duration) < 0) {
2480 "state", lwork->freq);
2486 wpa_s->roc_waiting_drv_freq = lwork->freq;
2495 struct wpas_p2p_listen_work *lwork;
2502 lwork = os_zalloc(sizeof(*lwork));
2503 if (lwork == NULL)
2505 lwork->freq = freq;
2506 lwork->duration = duration;
2508 lwork->probe_resp_ie = wpabuf_dup(probe_resp_ie);
2509 if (lwork->probe_resp_ie == NULL) {
2510 wpas_p2p_listen_work_free(lwork);
2516 lwork) < 0) {
2517 wpas_p2p_listen_work_free(lwork);