2011-09-27 16:28:46 +02:00
|
|
|
/*
|
|
|
|
* Generic advertisement service (GAS) (IEEE 802.11u)
|
|
|
|
* Copyright (c) 2009, Atheros Communications
|
2012-08-27 17:13:10 +02:00
|
|
|
* Copyright (c) 2011-2012, Qualcomm Atheros
|
2011-09-27 16:28:46 +02:00
|
|
|
*
|
2012-02-11 15:31:36 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2011-09-27 16:28:46 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GAS_H
|
|
|
|
#define GAS_H
|
|
|
|
|
2012-08-27 17:13:10 +02:00
|
|
|
struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size);
|
2011-09-27 16:28:46 +02:00
|
|
|
struct wpabuf * gas_build_comeback_req(u8 dialog_token);
|
2011-10-16 20:00:44 +02:00
|
|
|
struct wpabuf * gas_build_initial_resp(u8 dialog_token, u16 status_code,
|
|
|
|
u16 comeback_delay, size_t size);
|
2011-09-27 16:28:46 +02:00
|
|
|
struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size);
|
|
|
|
struct wpabuf * gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code,
|
|
|
|
u16 comeback_delay, size_t size);
|
|
|
|
struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token,
|
|
|
|
u16 status_code,
|
|
|
|
u16 comeback_delay,
|
|
|
|
struct wpabuf *payload);
|
|
|
|
struct wpabuf * gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code,
|
|
|
|
u8 frag_id, u8 more,
|
|
|
|
u16 comeback_delay, size_t size);
|
|
|
|
struct wpabuf * gas_anqp_build_comeback_resp_buf(u8 dialog_token,
|
|
|
|
u16 status_code,
|
|
|
|
u8 frag_id, u8 more,
|
|
|
|
u16 comeback_delay,
|
|
|
|
struct wpabuf *payload);
|
|
|
|
void gas_anqp_set_len(struct wpabuf *buf);
|
|
|
|
|
|
|
|
u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id);
|
|
|
|
void gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos);
|
|
|
|
|
|
|
|
#endif /* GAS_H */
|