Lines Matching refs:handler

41 	struct gas_server_handler *handler;
65 response->handler->status_cb(response->handler->ctx,
85 gas_server_send_resp(struct gas_server *gas, struct gas_server_handler *handler,
90 size_t hdr_len = 24 + 2 + 5 + 3 + handler->adv_proto_id_len + 2;
106 response->handler = handler;
121 handler->adv_proto_id_len +
131 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */
134 wpabuf_put_data(resp, handler->adv_proto_id, handler->adv_proto_id_len);
166 struct gas_server_handler *handler;
213 dl_list_for_each(handler, &gas->handlers, struct gas_server_handler,
215 if (adv_proto_len < 1 + handler->adv_proto_id_len ||
216 os_memcmp(adv_proto + 1, handler->adv_proto_id,
217 handler->adv_proto_id_len) != 0)
221 "GAS: Calling handler for the requested Advertisement Protocol ID");
222 resp = handler->req_cb(handler->ctx, sa, query_req,
224 wpa_hexdump_buf(MSG_MSGDUMP, "GAS: Response from the handler",
226 gas_server_send_resp(gas, handler, sa, freq, dialog_token,
232 "GAS: No registered handler for the requested Advertisement Protocol ID");
240 struct gas_server_handler *handler = response->handler;
241 struct gas_server *gas = handler->gas;
243 size_t hdr_len = 24 + 2 + 6 + 3 + handler->adv_proto_id_len + 2;
260 handler->adv_proto_id_len +
270 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */
273 wpabuf_put_data(resp, handler->adv_proto_id, handler->adv_proto_id_len);
375 response->handler->status_cb(response->handler->ctx,
439 struct gas_server_handler *handler, *tmp;
445 dl_list_for_each_safe(handler, tmp, &gas->handlers,
447 dl_list_del(&handler->list);
448 os_free(handler);
470 struct gas_server_handler *handler;
474 handler = os_zalloc(sizeof(*handler));
475 if (!handler)
478 os_memcpy(handler->adv_proto_id, adv_proto_id, adv_proto_id_len);
479 handler->adv_proto_id_len = adv_proto_id_len;
480 handler->req_cb = req_cb;
481 handler->status_cb = status_cb;
482 handler->ctx = ctx;
483 handler->gas = gas;
484 dl_list_add(&gas->handlers, &handler->list);