wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gas_serv.h
Go to the documentation of this file.
1 
5 #ifndef GAS_SERV_H
6 #define GAS_SERV_H
7 
8 #define ANQP_REQ_CAPABILITY_LIST \
9  (1 << (ANQP_CAPABILITY_LIST - ANQP_QUERY_LIST))
10 #define ANQP_REQ_VENUE_NAME \
11  (1 << (ANQP_VENUE_NAME - ANQP_QUERY_LIST))
12 #define ANQP_REQ_NETWORK_AUTH_TYPE \
13  (1 << (ANQP_NETWORK_AUTH_TYPE - ANQP_QUERY_LIST))
14 #define ANQP_REQ_ROAMING_CONSORTIUM \
15  (1 << (ANQP_ROAMING_CONSORTIUM - ANQP_QUERY_LIST))
16 #define ANQP_REQ_IP_ADDR_TYPE_AVAILABILITY \
17  (1 << (ANQP_IP_ADDR_TYPE_AVAILABILITY - ANQP_QUERY_LIST))
18 #define ANQP_REQ_NAI_REALM \
19  (1 << (ANQP_NAI_REALM - ANQP_QUERY_LIST))
20 #define ANQP_REQ_3GPP_CELLULAR_NETWORK \
21  (1 << (ANQP_3GPP_CELLULAR_NETWORK - ANQP_QUERY_LIST))
22 #define ANQP_REQ_DOMAIN_NAME \
23  (1 << (ANQP_DOMAIN_NAME - ANQP_QUERY_LIST))
24 #define ANQP_REQ_HS_CAPABILITY_LIST \
25  (0x10000 << HS20_STYPE_CAPABILITY_LIST)
26 #define ANQP_REQ_OPERATOR_FRIENDLY_NAME \
27  (0x10000 << HS20_STYPE_OPERATOR_FRIENDLY_NAME)
28 #define ANQP_REQ_WAN_METRICS \
29  (0x10000 << HS20_STYPE_WAN_METRICS)
30 #define ANQP_REQ_CONNECTION_CAPABILITY \
31  (0x10000 << HS20_STYPE_CONNECTION_CAPABILITY)
32 #define ANQP_REQ_NAI_HOME_REALM \
33  (0x10000 << HS20_STYPE_NAI_HOME_REALM_QUERY)
34 #define ANQP_REQ_OPERATING_CLASS \
35  (0x10000 << HS20_STYPE_OPERATING_CLASS)
36 #define ANQP_REQ_OSU_PROVIDERS_LIST \
37  (0x10000 << HS20_STYPE_OSU_PROVIDERS_LIST)
38 #define ANQP_REQ_ICON_REQUEST \
39  (0x10000 << HS20_STYPE_ICON_REQUEST)
40 
42  u8 valid;
43  struct wpabuf *sd_resp; /* Fragmented response */
44  u8 dialog_token;
45  size_t sd_resp_pos; /* Offset in sd_resp */
46  u8 sd_frag_id;
47  int prot; /* whether Protected Dual of Public Action frame is used */
48 };
49 
50 struct hostapd_data;
51 
52 struct gas_dialog_info *
53 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr,
54  u8 dialog_token);
55 void gas_serv_dialog_clear(struct gas_dialog_info *dialog);
56 
57 int gas_serv_init(struct hostapd_data *hapd);
58 void gas_serv_deinit(struct hostapd_data *hapd);
59 
60 #endif /* GAS_SERV_H */
Definition: wpabuf.h:16
Definition: gas_serv.h:41
hostapd per-BSS data structure
Definition: hostapd.h:103