blob: b1fa99ed0bc29856d8b67b2a5a7e1e2a4a232469 [file] [log] [blame]
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001/*
2 * hostapd / DPP integration
3 * Copyright (c) 2017, Qualcomm Atheros, Inc.
Hai Shalomfdcde762020-04-02 11:19:20 -07004 * Copyright (c) 2018-2020, The Linux Foundation
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005 *
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
8 */
9
10#ifndef DPP_HOSTAPD_H
11#define DPP_HOSTAPD_H
12
13int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd);
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080014int hostapd_dpp_nfc_uri(struct hostapd_data *hapd, const char *cmd);
Hai Shalomfdcde762020-04-02 11:19:20 -070015int hostapd_dpp_nfc_handover_req(struct hostapd_data *hapd, const char *cmd);
16int hostapd_dpp_nfc_handover_sel(struct hostapd_data *hapd, const char *cmd);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070017int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd);
Roshan Pius3a1667e2018-07-03 15:17:14 -070018int hostapd_dpp_listen(struct hostapd_data *hapd, const char *cmd);
19void hostapd_dpp_listen_stop(struct hostapd_data *hapd);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070020void hostapd_dpp_rx_action(struct hostapd_data *hapd, const u8 *src,
21 const u8 *buf, size_t len, unsigned int freq);
22void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst,
23 const u8 *data, size_t data_len, int ok);
24struct wpabuf *
25hostapd_dpp_gas_req_handler(struct hostapd_data *hapd, const u8 *sa,
Hai Shalom81f62d82019-07-22 12:10:00 -070026 const u8 *query, size_t query_len,
27 const u8 *data, size_t data_len);
Roshan Pius3a1667e2018-07-03 15:17:14 -070028void hostapd_dpp_gas_status_handler(struct hostapd_data *hapd, int ok);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070029int hostapd_dpp_configurator_add(struct hostapd_data *hapd, const char *cmd);
30int hostapd_dpp_configurator_remove(struct hostapd_data *hapd, const char *id);
Roshan Pius3a1667e2018-07-03 15:17:14 -070031int hostapd_dpp_configurator_sign(struct hostapd_data *hapd, const char *cmd);
32int hostapd_dpp_configurator_get_key(struct hostapd_data *hapd, unsigned int id,
33 char *buf, size_t buflen);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070034int hostapd_dpp_pkex_add(struct hostapd_data *hapd, const char *cmd);
35int hostapd_dpp_pkex_remove(struct hostapd_data *hapd, const char *id);
Roshan Pius3a1667e2018-07-03 15:17:14 -070036void hostapd_dpp_stop(struct hostapd_data *hapd);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070037int hostapd_dpp_init(struct hostapd_data *hapd);
38void hostapd_dpp_deinit(struct hostapd_data *hapd);
Roshan Pius3a1667e2018-07-03 15:17:14 -070039void hostapd_dpp_init_global(struct hapd_interfaces *ifaces);
40void hostapd_dpp_deinit_global(struct hapd_interfaces *ifaces);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070041
42#endif /* DPP_HOSTAPD_H */