blob: 4c93e3114ccd18e8773f432421316e1da189ff60 [file] [log] [blame]
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -08001/*
2 * Generic advertisement service (GAS) (IEEE 802.11u)
3 * Copyright (c) 2009, Atheros Communications
Dmitry Shmidt61d9df32012-08-29 16:22:06 -07004 * Copyright (c) 2011-2012, Qualcomm Atheros
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -08005 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08006 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -08008 */
9
10#ifndef GAS_H
11#define GAS_H
12
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070013struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size);
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080014struct wpabuf * gas_build_comeback_req(u8 dialog_token);
15struct wpabuf * gas_build_initial_resp(u8 dialog_token, u16 status_code,
16 u16 comeback_delay, size_t size);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070017struct wpabuf *
18gas_build_comeback_resp(u8 dialog_token, u16 status_code, u8 frag_id, u8 more,
19 u16 comeback_delay, size_t size);
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080020struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size);
21struct wpabuf * gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code,
22 u16 comeback_delay, size_t size);
23struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token,
24 u16 status_code,
25 u16 comeback_delay,
26 struct wpabuf *payload);
27struct wpabuf * gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code,
28 u8 frag_id, u8 more,
29 u16 comeback_delay, size_t size);
30struct wpabuf * gas_anqp_build_comeback_resp_buf(u8 dialog_token,
31 u16 status_code,
32 u8 frag_id, u8 more,
33 u16 comeback_delay,
34 struct wpabuf *payload);
35void gas_anqp_set_len(struct wpabuf *buf);
36
37u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id);
38void gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos);
39
40#endif /* GAS_H */