blob: 607036a38205794c34d9763017fd465eebbce17c [file] [log] [blame]
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001/*
2 * wpa_supplicant - DPP
3 * Copyright (c) 2017, Qualcomm Atheros, Inc.
Hai Shalomc3565922019-10-28 11:58:20 -07004 * Copyright (c) 2018-2019, The Linux Foundation
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005 *
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
8 */
9
10#ifndef DPP_SUPPLICANT_H
11#define DPP_SUPPLICANT_H
12
Hai Shalomc3565922019-10-28 11:58:20 -070013enum dpp_status_error;
14
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070015int wpas_dpp_qr_code(struct wpa_supplicant *wpa_s, const char *cmd);
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080016int wpas_dpp_nfc_uri(struct wpa_supplicant *wpa_s, const char *cmd);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070017int wpas_dpp_auth_init(struct wpa_supplicant *wpa_s, const char *cmd);
18int wpas_dpp_listen(struct wpa_supplicant *wpa_s, const char *cmd);
19void wpas_dpp_listen_stop(struct wpa_supplicant *wpa_s);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070020void wpas_dpp_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
21 unsigned int freq);
22void wpas_dpp_rx_action(struct wpa_supplicant *wpa_s, const u8 *src,
23 const u8 *buf, size_t len, unsigned int freq);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070024int wpas_dpp_configurator_sign(struct wpa_supplicant *wpa_s, const char *cmd);
25int wpas_dpp_pkex_add(struct wpa_supplicant *wpa_s, const char *cmd);
26int wpas_dpp_pkex_remove(struct wpa_supplicant *wpa_s, const char *id);
Roshan Pius3a1667e2018-07-03 15:17:14 -070027void wpas_dpp_stop(struct wpa_supplicant *wpa_s);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070028int wpas_dpp_init(struct wpa_supplicant *wpa_s);
29void wpas_dpp_deinit(struct wpa_supplicant *wpa_s);
30int wpas_dpp_check_connect(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
31 struct wpa_bss *bss);
Hai Shalom81f62d82019-07-22 12:10:00 -070032int wpas_dpp_controller_start(struct wpa_supplicant *wpa_s, const char *cmd);
Hai Shalomc3565922019-10-28 11:58:20 -070033void wpas_dpp_connected(struct wpa_supplicant *wpa_s);
34void wpas_dpp_send_conn_status_result(struct wpa_supplicant *wpa_s,
35 enum dpp_status_error result);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070036
37#endif /* DPP_SUPPLICANT_H */