2 * Generic advertisement service (GAS) query
3 * Copyright (c) 2009, Atheros Communications
4 * Copyright (c) 2011-2017, Qualcomm Atheros
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
10 #ifndef GAS_QUERY_AP_H
11 #define GAS_QUERY_AP_H
15 struct gas_query_ap
* gas_query_ap_init(struct hostapd_data
*hapd
,
17 void gas_query_ap_deinit(struct gas_query_ap
*gas
);
18 int gas_query_ap_rx(struct gas_query_ap
*gas
, const u8
*sa
, u8 categ
,
19 const u8
*data
, size_t len
, int freq
);
22 * enum gas_query_ap_result - GAS query result
24 enum gas_query_ap_result
{
28 GAS_QUERY_AP_PEER_ERROR
,
29 GAS_QUERY_AP_INTERNAL_ERROR
,
30 GAS_QUERY_AP_DELETED_AT_DEINIT
33 int gas_query_ap_req(struct gas_query_ap
*gas
, const u8
*dst
, int freq
,
35 void (*cb
)(void *ctx
, const u8
*dst
, u8 dialog_token
,
36 enum gas_query_ap_result result
,
37 const struct wpabuf
*adv_proto
,
38 const struct wpabuf
*resp
, u16 status_code
),
40 void gas_query_ap_tx_status(struct gas_query_ap
*gas
, const u8
*dst
,
41 const u8
*data
, size_t data_len
, int ok
);
43 #endif /* GAS_QUERY_AP_H */