2 * Generic advertisement service (GAS) (IEEE 802.11u)
3 * Copyright (c) 2009, Atheros Communications
4 * Copyright (c) 2011-2012, Qualcomm Atheros
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
13 struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size);
14 struct wpabuf * gas_build_comeback_req(u8 dialog_token);
15 struct wpabuf * gas_build_initial_resp(u8 dialog_token, u16 status_code,
16 u16 comeback_delay, size_t size);
17 struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size);
18 struct wpabuf * gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code,
19 u16 comeback_delay, size_t size);
20 struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token,
23 struct wpabuf *payload);
24 struct wpabuf * gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code,
26 u16 comeback_delay, size_t size);
27 struct wpabuf * gas_anqp_build_comeback_resp_buf(u8 dialog_token,
31 struct wpabuf *payload);
32 void gas_anqp_set_len(struct wpabuf *buf);
34 u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id);
35 void gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos);