Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1 | /* |
| 2 | * wpa_supplicant - DPP |
| 3 | * Copyright (c) 2017, Qualcomm Atheros, Inc. |
| 4 | * |
| 5 | * This software may be distributed under the terms of the BSD license. |
| 6 | * See README for more details. |
| 7 | */ |
| 8 | |
| 9 | #ifndef DPP_SUPPLICANT_H |
| 10 | #define DPP_SUPPLICANT_H |
| 11 | |
| 12 | int wpas_dpp_qr_code(struct wpa_supplicant *wpa_s, const char *cmd); |
| 13 | int wpas_dpp_bootstrap_gen(struct wpa_supplicant *wpa_s, const char *cmd); |
| 14 | int wpas_dpp_bootstrap_remove(struct wpa_supplicant *wpa_s, const char *id); |
| 15 | const char * wpas_dpp_bootstrap_get_uri(struct wpa_supplicant *wpa_s, |
| 16 | unsigned int id); |
| 17 | int wpas_dpp_bootstrap_info(struct wpa_supplicant *wpa_s, int id, |
| 18 | char *reply, int reply_size); |
| 19 | int wpas_dpp_auth_init(struct wpa_supplicant *wpa_s, const char *cmd); |
| 20 | int wpas_dpp_listen(struct wpa_supplicant *wpa_s, const char *cmd); |
| 21 | void wpas_dpp_listen_stop(struct wpa_supplicant *wpa_s); |
| 22 | void wpas_dpp_remain_on_channel_cb(struct wpa_supplicant *wpa_s, |
| 23 | unsigned int freq); |
| 24 | void wpas_dpp_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, |
| 25 | unsigned int freq); |
| 26 | void wpas_dpp_rx_action(struct wpa_supplicant *wpa_s, const u8 *src, |
| 27 | const u8 *buf, size_t len, unsigned int freq); |
| 28 | int wpas_dpp_configurator_add(struct wpa_supplicant *wpa_s, const char *cmd); |
| 29 | int wpas_dpp_configurator_remove(struct wpa_supplicant *wpa_s, const char *id); |
| 30 | int wpas_dpp_configurator_sign(struct wpa_supplicant *wpa_s, const char *cmd); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame^] | 31 | int wpas_dpp_configurator_get_key(struct wpa_supplicant *wpa_s, unsigned int id, |
| 32 | char *buf, size_t buflen); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 33 | int wpas_dpp_pkex_add(struct wpa_supplicant *wpa_s, const char *cmd); |
| 34 | int wpas_dpp_pkex_remove(struct wpa_supplicant *wpa_s, const char *id); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame^] | 35 | void wpas_dpp_stop(struct wpa_supplicant *wpa_s); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 36 | int wpas_dpp_init(struct wpa_supplicant *wpa_s); |
| 37 | void wpas_dpp_deinit(struct wpa_supplicant *wpa_s); |
| 38 | int wpas_dpp_check_connect(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, |
| 39 | struct wpa_bss *bss); |
| 40 | |
| 41 | #endif /* DPP_SUPPLICANT_H */ |