2017-06-15 14:18:10 -04:00
|
|
|
/*
|
|
|
|
* wpa_supplicant - DPP
|
|
|
|
* 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_SUPPLICANT_H
|
|
|
|
#define DPP_SUPPLICANT_H
|
|
|
|
|
|
|
|
int wpas_dpp_qr_code(struct wpa_supplicant *wpa_s, const char *cmd);
|
|
|
|
int wpas_dpp_bootstrap_gen(struct wpa_supplicant *wpa_s, const char *cmd);
|
|
|
|
int wpas_dpp_bootstrap_remove(struct wpa_supplicant *wpa_s, const char *id);
|
|
|
|
const char * wpas_dpp_bootstrap_get_uri(struct wpa_supplicant *wpa_s,
|
|
|
|
unsigned int id);
|
2017-06-22 07:51:21 -04:00
|
|
|
int wpas_dpp_bootstrap_info(struct wpa_supplicant *wpa_s, int id,
|
|
|
|
char *reply, int reply_size);
|
2017-06-15 14:18:12 -04:00
|
|
|
int wpas_dpp_auth_init(struct wpa_supplicant *wpa_s, const char *cmd);
|
|
|
|
int wpas_dpp_listen(struct wpa_supplicant *wpa_s, const char *cmd);
|
|
|
|
void wpas_dpp_listen_stop(struct wpa_supplicant *wpa_s);
|
|
|
|
void wpas_dpp_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
|
|
|
|
unsigned int freq);
|
|
|
|
void wpas_dpp_rx_action(struct wpa_supplicant *wpa_s, const u8 *src,
|
|
|
|
const u8 *buf, size_t len, unsigned int freq);
|
2017-06-15 14:18:15 -04:00
|
|
|
int wpas_dpp_configurator_add(struct wpa_supplicant *wpa_s, const char *cmd);
|
|
|
|
int wpas_dpp_configurator_remove(struct wpa_supplicant *wpa_s, const char *id);
|
2017-07-04 10:48:44 -04:00
|
|
|
int wpas_dpp_configurator_sign(struct wpa_supplicant *wpa_s, const char *cmd);
|
2018-03-16 06:04:21 -04:00
|
|
|
int wpas_dpp_configurator_get_key(struct wpa_supplicant *wpa_s, unsigned int id,
|
|
|
|
char *buf, size_t buflen);
|
2017-07-02 05:36:23 -04:00
|
|
|
int wpas_dpp_pkex_add(struct wpa_supplicant *wpa_s, const char *cmd);
|
|
|
|
int wpas_dpp_pkex_remove(struct wpa_supplicant *wpa_s, const char *id);
|
2017-11-13 05:12:08 -05:00
|
|
|
void wpas_dpp_stop(struct wpa_supplicant *wpa_s);
|
2017-06-15 14:18:10 -04:00
|
|
|
int wpas_dpp_init(struct wpa_supplicant *wpa_s);
|
|
|
|
void wpas_dpp_deinit(struct wpa_supplicant *wpa_s);
|
2017-06-18 13:19:25 -04:00
|
|
|
int wpas_dpp_check_connect(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
|
|
|
|
struct wpa_bss *bss);
|
2017-06-15 14:18:10 -04:00
|
|
|
|
|
|
|
#endif /* DPP_SUPPLICANT_H */
|