1 /* 2 * wpa_supplicant - DPP 3 * Copyright (c) 2017, Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2020, The Linux Foundation 5 * 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 13 enum dpp_status_error; 14 15 int wpas_dpp_qr_code(struct wpa_supplicant *wpa_s, const char *cmd); 16 int wpas_dpp_nfc_uri(struct wpa_supplicant *wpa_s, const char *cmd); 17 int wpas_dpp_nfc_handover_req(struct wpa_supplicant *wpa_s, const char *cmd); 18 int wpas_dpp_nfc_handover_sel(struct wpa_supplicant *wpa_s, const char *cmd); 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, unsigned int duration); 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_sign(struct wpa_supplicant *wpa_s, const char *cmd); 29 int wpas_dpp_pkex_add(struct wpa_supplicant *wpa_s, const char *cmd); 30 int wpas_dpp_pkex_remove(struct wpa_supplicant *wpa_s, const char *id); 31 void wpas_dpp_stop(struct wpa_supplicant *wpa_s); 32 int wpas_dpp_init(struct wpa_supplicant *wpa_s); 33 void wpas_dpp_deinit(struct wpa_supplicant *wpa_s); 34 int wpas_dpp_check_connect(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, 35 struct wpa_bss *bss); 36 int wpas_dpp_controller_start(struct wpa_supplicant *wpa_s, const char *cmd); 37 void wpas_dpp_connected(struct wpa_supplicant *wpa_s); 38 void wpas_dpp_send_conn_status_result(struct wpa_supplicant *wpa_s, 39 enum dpp_status_error result); 40 int wpas_dpp_chirp(struct wpa_supplicant *wpa_s, const char *cmd); 41 void wpas_dpp_chirp_stop(struct wpa_supplicant *wpa_s); 42 int wpas_dpp_reconfig(struct wpa_supplicant *wpa_s, const char *cmd); 43 int wpas_dpp_ca_set(struct wpa_supplicant *wpa_s, const char *cmd); 44 45 #endif /* DPP_SUPPLICANT_H */ 46