2017-06-15 21:16:45 +02:00
|
|
|
/*
|
|
|
|
* hostapd / DPP integration
|
|
|
|
* Copyright (c) 2017, Qualcomm Atheros, Inc.
|
2020-01-27 16:04:26 +01:00
|
|
|
* Copyright (c) 2018-2020, The Linux Foundation
|
2017-06-15 21:16:45 +02:00
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DPP_HOSTAPD_H
|
|
|
|
#define DPP_HOSTAPD_H
|
|
|
|
|
2020-05-13 16:11:40 +02:00
|
|
|
struct dpp_bootstrap_info;
|
|
|
|
|
2017-06-15 21:16:45 +02:00
|
|
|
int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd);
|
2019-12-03 17:22:36 +01:00
|
|
|
int hostapd_dpp_nfc_uri(struct hostapd_data *hapd, const char *cmd);
|
2020-01-27 16:04:26 +01:00
|
|
|
int hostapd_dpp_nfc_handover_req(struct hostapd_data *hapd, const char *cmd);
|
|
|
|
int hostapd_dpp_nfc_handover_sel(struct hostapd_data *hapd, const char *cmd);
|
2017-06-15 21:16:45 +02:00
|
|
|
int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd);
|
2017-11-04 10:27:00 +01:00
|
|
|
int hostapd_dpp_listen(struct hostapd_data *hapd, const char *cmd);
|
|
|
|
void hostapd_dpp_listen_stop(struct hostapd_data *hapd);
|
2017-06-15 21:16:45 +02:00
|
|
|
void hostapd_dpp_rx_action(struct hostapd_data *hapd, const u8 *src,
|
|
|
|
const u8 *buf, size_t len, unsigned int freq);
|
|
|
|
void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst,
|
|
|
|
const u8 *data, size_t data_len, int ok);
|
2017-07-03 11:56:48 +02:00
|
|
|
struct wpabuf *
|
|
|
|
hostapd_dpp_gas_req_handler(struct hostapd_data *hapd, const u8 *sa,
|
2019-03-24 21:17:49 +01:00
|
|
|
const u8 *query, size_t query_len,
|
|
|
|
const u8 *data, size_t data_len);
|
2017-11-27 19:33:43 +01:00
|
|
|
void hostapd_dpp_gas_status_handler(struct hostapd_data *hapd, int ok);
|
2017-07-03 11:56:48 +02:00
|
|
|
int hostapd_dpp_configurator_add(struct hostapd_data *hapd, const char *cmd);
|
|
|
|
int hostapd_dpp_configurator_remove(struct hostapd_data *hapd, const char *id);
|
2017-11-27 11:43:40 +01:00
|
|
|
int hostapd_dpp_configurator_sign(struct hostapd_data *hapd, const char *cmd);
|
2018-03-16 11:04:21 +01:00
|
|
|
int hostapd_dpp_configurator_get_key(struct hostapd_data *hapd, unsigned int id,
|
|
|
|
char *buf, size_t buflen);
|
2017-07-02 11:36:48 +02:00
|
|
|
int hostapd_dpp_pkex_add(struct hostapd_data *hapd, const char *cmd);
|
|
|
|
int hostapd_dpp_pkex_remove(struct hostapd_data *hapd, const char *id);
|
2017-11-13 11:12:08 +01:00
|
|
|
void hostapd_dpp_stop(struct hostapd_data *hapd);
|
2017-06-15 21:16:45 +02:00
|
|
|
int hostapd_dpp_init(struct hostapd_data *hapd);
|
|
|
|
void hostapd_dpp_deinit(struct hostapd_data *hapd);
|
2017-11-27 12:22:32 +01:00
|
|
|
void hostapd_dpp_init_global(struct hapd_interfaces *ifaces);
|
|
|
|
void hostapd_dpp_deinit_global(struct hapd_interfaces *ifaces);
|
2017-06-15 21:16:45 +02:00
|
|
|
|
2020-08-25 14:53:08 +02:00
|
|
|
int hostapd_dpp_controller_start(struct hostapd_data *hapd, const char *cmd);
|
2020-05-13 16:11:40 +02:00
|
|
|
int hostapd_dpp_chirp(struct hostapd_data *hapd, const char *cmd);
|
|
|
|
void hostapd_dpp_chirp_stop(struct hostapd_data *hapd);
|
|
|
|
void hostapd_dpp_remove_bi(void *ctx, struct dpp_bootstrap_info *bi);
|
2022-07-07 23:12:07 +02:00
|
|
|
int hostapd_dpp_push_button(struct hostapd_data *hapd, const char *cmd);
|
2022-07-06 16:11:12 +02:00
|
|
|
void hostapd_dpp_push_button_stop(struct hostapd_data *hapd);
|
2022-07-23 15:54:47 +02:00
|
|
|
bool hostapd_dpp_configurator_connectivity(struct hostapd_data *hapd);
|
2022-07-23 16:41:00 +02:00
|
|
|
int hostapd_dpp_add_controller(struct hostapd_data *hapd, const char *cmd);
|
|
|
|
void hostapd_dpp_remove_controller(struct hostapd_data *hapd, const char *cmd);
|
2020-05-13 16:11:40 +02:00
|
|
|
|
2017-06-15 21:16:45 +02:00
|
|
|
#endif /* DPP_HOSTAPD_H */
|