blob: 3ef7c14567e887bc407846c57f6c12c5927e5f69 [file] [log] [blame]
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001/*
2 * hostapd / DPP integration
3 * Copyright (c) 2017, Qualcomm Atheros, Inc.
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#ifndef DPP_HOSTAPD_H
10#define DPP_HOSTAPD_H
11
12int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd);
13int hostapd_dpp_bootstrap_gen(struct hostapd_data *hapd, const char *cmd);
14int hostapd_dpp_bootstrap_remove(struct hostapd_data *hapd, const char *id);
15const char * hostapd_dpp_bootstrap_get_uri(struct hostapd_data *hapd,
16 unsigned int id);
17int hostapd_dpp_bootstrap_info(struct hostapd_data *hapd, int id,
18 char *reply, int reply_size);
19int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd);
Roshan Pius3a1667e2018-07-03 15:17:14 -070020int hostapd_dpp_listen(struct hostapd_data *hapd, const char *cmd);
21void hostapd_dpp_listen_stop(struct hostapd_data *hapd);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070022void hostapd_dpp_rx_action(struct hostapd_data *hapd, const u8 *src,
23 const u8 *buf, size_t len, unsigned int freq);
24void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst,
25 const u8 *data, size_t data_len, int ok);
26struct wpabuf *
27hostapd_dpp_gas_req_handler(struct hostapd_data *hapd, const u8 *sa,
28 const u8 *query, size_t query_len);
Roshan Pius3a1667e2018-07-03 15:17:14 -070029void hostapd_dpp_gas_status_handler(struct hostapd_data *hapd, int ok);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070030int hostapd_dpp_configurator_add(struct hostapd_data *hapd, const char *cmd);
31int hostapd_dpp_configurator_remove(struct hostapd_data *hapd, const char *id);
Roshan Pius3a1667e2018-07-03 15:17:14 -070032int hostapd_dpp_configurator_sign(struct hostapd_data *hapd, const char *cmd);
33int hostapd_dpp_configurator_get_key(struct hostapd_data *hapd, unsigned int id,
34 char *buf, size_t buflen);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070035int hostapd_dpp_pkex_add(struct hostapd_data *hapd, const char *cmd);
36int hostapd_dpp_pkex_remove(struct hostapd_data *hapd, const char *id);
Roshan Pius3a1667e2018-07-03 15:17:14 -070037void hostapd_dpp_stop(struct hostapd_data *hapd);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070038int hostapd_dpp_init(struct hostapd_data *hapd);
39void hostapd_dpp_deinit(struct hostapd_data *hapd);
Roshan Pius3a1667e2018-07-03 15:17:14 -070040void hostapd_dpp_init_global(struct hapd_interfaces *ifaces);
41void hostapd_dpp_deinit_global(struct hapd_interfaces *ifaces);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070042
43#endif /* DPP_HOSTAPD_H */