2017-06-15 20:18:10 +02:00
|
|
|
/*
|
|
|
|
* wpa_supplicant - DPP
|
|
|
|
* Copyright (c) 2017, Qualcomm Atheros, Inc.
|
2020-01-27 16:04:26 +01:00
|
|
|
* Copyright (c) 2018-2020, The Linux Foundation
|
2017-06-15 20:18:10 +02:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
2019-09-15 15:19:45 +02:00
|
|
|
enum dpp_status_error;
|
|
|
|
|
2017-06-15 20:18:10 +02:00
|
|
|
int wpas_dpp_qr_code(struct wpa_supplicant *wpa_s, const char *cmd);
|
2019-12-03 17:22:36 +01:00
|
|
|
int wpas_dpp_nfc_uri(struct wpa_supplicant *wpa_s, const char *cmd);
|
2020-01-27 16:04:26 +01:00
|
|
|
int wpas_dpp_nfc_handover_req(struct wpa_supplicant *wpa_s, const char *cmd);
|
|
|
|
int wpas_dpp_nfc_handover_sel(struct wpa_supplicant *wpa_s, const char *cmd);
|
2017-06-15 20:18:12 +02: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-07-04 16:48:44 +02:00
|
|
|
int wpas_dpp_configurator_sign(struct wpa_supplicant *wpa_s, const char *cmd);
|
2017-07-02 11:36:23 +02: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 11:12:08 +01:00
|
|
|
void wpas_dpp_stop(struct wpa_supplicant *wpa_s);
|
2017-06-15 20:18:10 +02:00
|
|
|
int wpas_dpp_init(struct wpa_supplicant *wpa_s);
|
|
|
|
void wpas_dpp_deinit(struct wpa_supplicant *wpa_s);
|
2017-06-18 19:19:25 +02:00
|
|
|
int wpas_dpp_check_connect(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
|
|
|
|
struct wpa_bss *bss);
|
2019-03-24 21:17:49 +01:00
|
|
|
int wpas_dpp_controller_start(struct wpa_supplicant *wpa_s, const char *cmd);
|
2019-09-15 15:19:45 +02:00
|
|
|
void wpas_dpp_connected(struct wpa_supplicant *wpa_s);
|
|
|
|
void wpas_dpp_send_conn_status_result(struct wpa_supplicant *wpa_s,
|
|
|
|
enum dpp_status_error result);
|
2020-03-27 11:42:00 +01:00
|
|
|
int wpas_dpp_chirp(struct wpa_supplicant *wpa_s, const char *cmd);
|
|
|
|
void wpas_dpp_chirp_stop(struct wpa_supplicant *wpa_s);
|
2017-06-15 20:18:10 +02:00
|
|
|
|
|
|
|
#endif /* DPP_SUPPLICANT_H */
|