• Home
  • Raw
  • Download

Lines Matching refs:resp

28 	void (*status_cb)(void *ctx, struct wpabuf *resp, int ok);
37 struct wpabuf *resp; member
47 void (*tx)(void *ctx, int freq, const u8 *da, struct wpabuf *resp,
64 (unsigned long) wpabuf_len(response->resp)); in gas_server_response_timeout()
66 response->resp, 0); in gas_server_response_timeout()
67 response->resp = NULL; in gas_server_response_timeout()
79 wpabuf_free(response->resp); in gas_server_free_response()
92 struct wpabuf *resp; in gas_server_send_resp() local
119 resp = gas_build_initial_resp(dialog_token, WLAN_STATUS_SUCCESS, in gas_server_send_resp()
123 if (!resp) { in gas_server_send_resp()
130 wpabuf_put_u8(resp, WLAN_EID_ADV_PROTO); in gas_server_send_resp()
131 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */ in gas_server_send_resp()
132 wpabuf_put_u8(resp, 0x7f); in gas_server_send_resp()
134 wpabuf_put_data(resp, handler->adv_proto_id, handler->adv_proto_id_len); in gas_server_send_resp()
137 wpabuf_put_le16(resp, resp_frag_len); in gas_server_send_resp()
139 wpabuf_put_buf(resp, query_resp); in gas_server_send_resp()
149 response->resp = query_resp; in gas_server_send_resp()
151 gas->tx(gas->ctx, freq, da, resp, comeback_delay ? 2000 : 0); in gas_server_send_resp()
152 wpabuf_free(resp); in gas_server_send_resp()
167 struct wpabuf *resp; in gas_server_rx_initial_req() local
222 resp = handler->req_cb(handler->ctx, sa, query_req, in gas_server_rx_initial_req()
225 resp); in gas_server_rx_initial_req()
227 resp); in gas_server_rx_initial_req()
245 struct wpabuf *resp; in gas_server_handle_rx_comeback_req() local
247 remaining = wpabuf_len(response->resp) - response->offset; in gas_server_handle_rx_comeback_req()
256 resp = gas_build_comeback_resp(response->dialog_token, in gas_server_handle_rx_comeback_req()
262 if (!resp) { in gas_server_handle_rx_comeback_req()
269 wpabuf_put_u8(resp, WLAN_EID_ADV_PROTO); in gas_server_handle_rx_comeback_req()
270 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */ in gas_server_handle_rx_comeback_req()
271 wpabuf_put_u8(resp, 0x7f); in gas_server_handle_rx_comeback_req()
273 wpabuf_put_data(resp, handler->adv_proto_id, handler->adv_proto_id_len); in gas_server_handle_rx_comeback_req()
276 wpabuf_put_le16(resp, resp_frag_len); in gas_server_handle_rx_comeback_req()
277 wpabuf_put_data(resp, wpabuf_head_u8(response->resp) + response->offset, in gas_server_handle_rx_comeback_req()
282 gas->tx(gas->ctx, response->freq, response->dst, resp, in gas_server_handle_rx_comeback_req()
284 wpabuf_free(resp); in gas_server_handle_rx_comeback_req()
362 if (ack && response->offset < wpabuf_len(response->resp)) { in gas_server_handle_tx_status()
376 response->resp, ack); in gas_server_handle_tx_status()
377 response->resp = NULL; in gas_server_handle_tx_status()
466 void (*status_cb)(void *ctx, struct wpabuf *resp, in gas_server_register() argument