Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1 | /* |
| 2 | * hostapd / DPP integration |
| 3 | * Copyright (c) 2017, Qualcomm Atheros, Inc. |
Ahmed ElArabawy | 0ff61c5 | 2019-12-26 12:38:39 -0800 | [diff] [blame] | 4 | * Copyright (c) 2018-2019, The Linux Foundation |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 5 | * |
| 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 | |
| 13 | int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd); |
Ahmed ElArabawy | 0ff61c5 | 2019-12-26 12:38:39 -0800 | [diff] [blame] | 14 | int hostapd_dpp_nfc_uri(struct hostapd_data *hapd, const char *cmd); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 15 | int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 16 | int hostapd_dpp_listen(struct hostapd_data *hapd, const char *cmd); |
| 17 | void hostapd_dpp_listen_stop(struct hostapd_data *hapd); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 18 | void hostapd_dpp_rx_action(struct hostapd_data *hapd, const u8 *src, |
| 19 | const u8 *buf, size_t len, unsigned int freq); |
| 20 | void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst, |
| 21 | const u8 *data, size_t data_len, int ok); |
| 22 | struct wpabuf * |
| 23 | hostapd_dpp_gas_req_handler(struct hostapd_data *hapd, const u8 *sa, |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 24 | const u8 *query, size_t query_len, |
| 25 | const u8 *data, size_t data_len); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 26 | void hostapd_dpp_gas_status_handler(struct hostapd_data *hapd, int ok); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 27 | int hostapd_dpp_configurator_add(struct hostapd_data *hapd, const char *cmd); |
| 28 | int hostapd_dpp_configurator_remove(struct hostapd_data *hapd, const char *id); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 29 | int hostapd_dpp_configurator_sign(struct hostapd_data *hapd, const char *cmd); |
| 30 | int hostapd_dpp_configurator_get_key(struct hostapd_data *hapd, unsigned int id, |
| 31 | char *buf, size_t buflen); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 32 | int hostapd_dpp_pkex_add(struct hostapd_data *hapd, const char *cmd); |
| 33 | int hostapd_dpp_pkex_remove(struct hostapd_data *hapd, const char *id); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 34 | void hostapd_dpp_stop(struct hostapd_data *hapd); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 35 | int hostapd_dpp_init(struct hostapd_data *hapd); |
| 36 | void hostapd_dpp_deinit(struct hostapd_data *hapd); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 37 | void hostapd_dpp_init_global(struct hapd_interfaces *ifaces); |
| 38 | void hostapd_dpp_deinit_global(struct hapd_interfaces *ifaces); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 39 | |
| 40 | #endif /* DPP_HOSTAPD_H */ |