2 * Generic advertisement service (GAS) query
3 * Copyright (c) 2009, Atheros Communications
4 * Copyright (c) 2011, Qualcomm Atheros
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
17 struct gas_query
* gas_query_init(struct wpa_supplicant
*wpa_s
);
18 void gas_query_deinit(struct gas_query
*gas
);
19 int gas_query_rx(struct gas_query
*gas
, const u8
*da
, const u8
*sa
,
20 const u8
*bssid
, u8 categ
, const u8
*data
, size_t len
,
22 int pmf_in_use(struct wpa_supplicant
*wpa_s
, const u8
*addr
);
25 * enum gas_query_result - GAS query result
27 enum gas_query_result
{
32 GAS_QUERY_INTERNAL_ERROR
,
34 GAS_QUERY_DELETED_AT_DEINIT
37 int gas_query_req(struct gas_query
*gas
, const u8
*dst
, int freq
,
38 int wildcard_bssid
, struct wpabuf
*req
,
39 void (*cb
)(void *ctx
, const u8
*dst
, u8 dialog_token
,
40 enum gas_query_result result
,
41 const struct wpabuf
*adv_proto
,
42 const struct wpabuf
*resp
, u16 status_code
),
44 int gas_query_stop(struct gas_query
*gas
, u8 dialog_token
);
46 #else /* CONFIG_GAS */
48 static inline struct gas_query
* gas_query_init(struct wpa_supplicant
*wpa_s
)
53 static inline void gas_query_deinit(struct gas_query
*gas
)
57 #endif /* CONFIG_GAS */
60 #endif /* GAS_QUERY_H */