wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gas.h
Go to the documentation of this file.
1 
6 #ifndef GAS_H
7 #define GAS_H
8 
9 struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size);
10 struct wpabuf * gas_build_comeback_req(u8 dialog_token);
11 struct wpabuf * gas_build_initial_resp(u8 dialog_token, u16 status_code,
12  u16 comeback_delay, size_t size);
13 struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size);
14 struct wpabuf * gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code,
15  u16 comeback_delay, size_t size);
16 struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token,
17  u16 status_code,
18  u16 comeback_delay,
19  struct wpabuf *payload);
20 struct wpabuf * gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code,
21  u8 frag_id, u8 more,
22  u16 comeback_delay, size_t size);
23 struct wpabuf * gas_anqp_build_comeback_resp_buf(u8 dialog_token,
24  u16 status_code,
25  u8 frag_id, u8 more,
26  u16 comeback_delay,
27  struct wpabuf *payload);
28 void gas_anqp_set_len(struct wpabuf *buf);
29 
30 u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id);
31 void gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos);
32 
33 #endif /* GAS_H */
void gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos)
Update ANQP element Length field.
Definition: gas.c:266
void gas_anqp_set_len(struct wpabuf *buf)
Set Query Request/Response Length.
Definition: gas.c:213
Definition: wpabuf.h:16
u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id)
Add ANQP element header.
Definition: gas.c:251