gas.h revision 1f69aa52ea2e0a73ac502565df8c666ee49cab6a
1/* 2 * Generic advertisement service (GAS) (IEEE 802.11u) 3 * Copyright (c) 2009, Atheros Communications 4 * Copyright (c) 2011, Qualcomm Atheros 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 * 10 * Alternatively, this software may be distributed under the terms of BSD 11 * license. 12 * 13 * See README and COPYING for more details. 14 */ 15 16#ifndef GAS_H 17#define GAS_H 18 19struct wpabuf * gas_build_comeback_req(u8 dialog_token); 20struct wpabuf * gas_build_initial_resp(u8 dialog_token, u16 status_code, 21 u16 comeback_delay, size_t size); 22struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size); 23struct wpabuf * gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code, 24 u16 comeback_delay, size_t size); 25struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token, 26 u16 status_code, 27 u16 comeback_delay, 28 struct wpabuf *payload); 29struct wpabuf * gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code, 30 u8 frag_id, u8 more, 31 u16 comeback_delay, size_t size); 32struct wpabuf * gas_anqp_build_comeback_resp_buf(u8 dialog_token, 33 u16 status_code, 34 u8 frag_id, u8 more, 35 u16 comeback_delay, 36 struct wpabuf *payload); 37void gas_anqp_set_len(struct wpabuf *buf); 38 39u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id); 40void gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos); 41 42#endif /* GAS_H */ 43