Lines Matching full:handler
44 struct gas_server_handler *handler;
71 response->handler->status_cb(response->handler->ctx,
95 struct gas_server_handler *handler = response->handler;
97 size_t hdr_len = 24 + 2 + 5 + 3 + handler->adv_proto_id_len + 2;
124 handler->adv_proto_id_len +
135 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */
138 wpabuf_put_data(resp, handler->adv_proto_id, handler->adv_proto_id_len);
173 struct gas_server_handler *handler;
226 dl_list_for_each(handler, &gas->handlers, struct gas_server_handler,
230 if (adv_proto_len < 1 + handler->adv_proto_id_len ||
231 os_memcmp(adv_proto + 1, handler->adv_proto_id,
232 handler->adv_proto_id_len) != 0)
236 response->handler = handler;
242 "GAS: Calling handler for the requested Advertisement Protocol ID");
243 resp = handler->req_cb(handler->ctx, response, sa, query_req,
245 wpa_hexdump_buf(MSG_MSGDUMP, "GAS: Response from the handler",
249 "GAS: Handler requested short delay before sending out the initial response");
254 "GAS: Handler requested comeback delay: %u TU",
261 "GAS: No registered handler for the requested Advertisement Protocol ID");
270 struct gas_server_handler *handler = response->handler;
271 struct gas_server *gas = handler->gas;
273 size_t hdr_len = 24 + 2 + 6 + 3 + handler->adv_proto_id_len + 2;
282 handler->adv_proto_id_len);
291 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */
294 wpabuf_put_data(resp, handler->adv_proto_id,
295 handler->adv_proto_id_len);
315 handler->adv_proto_id_len +
325 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */
328 wpabuf_put_data(resp, handler->adv_proto_id, handler->adv_proto_id_len);
440 response->handler->status_cb(response->handler->ctx,
571 struct gas_server_handler *handler, *tmp;
577 dl_list_for_each_safe(handler, tmp, &gas->handlers,
579 dl_list_del(&handler->list);
580 os_free(handler);
603 struct gas_server_handler *handler;
607 handler = os_zalloc(sizeof(*handler));
608 if (!handler)
611 os_memcpy(handler->adv_proto_id, adv_proto_id, adv_proto_id_len);
612 handler->adv_proto_id_len = adv_proto_id_len;
613 handler->req_cb = req_cb;
614 handler->status_cb = status_cb;
615 handler->ctx = ctx;
616 handler->gas = gas;
617 dl_list_add(&gas->handlers, &handler->list);