1/* 2 * Generic advertisement service (GAS) (IEEE 802.11u) 3 * Copyright (c) 2009, Atheros Communications 4 * Copyright (c) 2011, Qualcomm Atheros 5 * 6 * This software may be distributed under the terms of the BSD license. 7 * See README for more details. 8 */ 9 10#ifndef GAS_H 11#define GAS_H 12 13struct wpabuf * gas_build_comeback_req(u8 dialog_token); 14struct wpabuf * gas_build_initial_resp(u8 dialog_token, u16 status_code, 15 u16 comeback_delay, size_t size); 16struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size); 17struct wpabuf * gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code, 18 u16 comeback_delay, size_t size); 19struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token, 20 u16 status_code, 21 u16 comeback_delay, 22 struct wpabuf *payload); 23struct wpabuf * gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code, 24 u8 frag_id, u8 more, 25 u16 comeback_delay, size_t size); 26struct wpabuf * gas_anqp_build_comeback_resp_buf(u8 dialog_token, 27 u16 status_code, 28 u8 frag_id, u8 more, 29 u16 comeback_delay, 30 struct wpabuf *payload); 31void gas_anqp_set_len(struct wpabuf *buf); 32 33u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id); 34void gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos); 35 36#endif /* GAS_H */ 37