Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame^] | 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 | |
| 19 | struct wpabuf * gas_build_comeback_req(u8 dialog_token); |
| 20 | struct wpabuf * gas_build_initial_resp(u8 dialog_token, u16 status_code, |
| 21 | u16 comeback_delay, size_t size); |
| 22 | struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size); |
| 23 | struct wpabuf * gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code, |
| 24 | u16 comeback_delay, size_t size); |
| 25 | struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token, |
| 26 | u16 status_code, |
| 27 | u16 comeback_delay, |
| 28 | struct wpabuf *payload); |
| 29 | struct 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); |
| 32 | struct 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); |
| 37 | void gas_anqp_set_len(struct wpabuf *buf); |
| 38 | |
| 39 | u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id); |
| 40 | void gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos); |
| 41 | |
| 42 | #endif /* GAS_H */ |