2017-06-15 21:16:45 +02:00
|
|
|
/*
|
|
|
|
* hostapd / DPP integration
|
|
|
|
* Copyright (c) 2017, Qualcomm Atheros, Inc.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
|
|
|
int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd);
|
|
|
|
int hostapd_dpp_bootstrap_gen(struct hostapd_data *hapd, const char *cmd);
|
|
|
|
int hostapd_dpp_bootstrap_remove(struct hostapd_data *hapd, const char *id);
|
|
|
|
const char * hostapd_dpp_bootstrap_get_uri(struct hostapd_data *hapd,
|
|
|
|
unsigned int id);
|
2017-07-04 14:45:37 +02:00
|
|
|
int hostapd_dpp_bootstrap_info(struct hostapd_data *hapd, int id,
|
|
|
|
char *reply, int reply_size);
|
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,
|
|
|
|
const u8 *query, size_t query_len);
|
|
|
|
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-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-06-15 21:16:45 +02:00
|
|
|
int hostapd_dpp_init(struct hostapd_data *hapd);
|
|
|
|
void hostapd_dpp_deinit(struct hostapd_data *hapd);
|
|
|
|
|
|
|
|
#endif /* DPP_HOSTAPD_H */
|