1 /* 2 * wpa_supplicant - DPP 3 * Copyright (c) 2017, Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2020, The Linux Foundation 5 * Copyright (c) 2022, Qualcomm Innovation Center, Inc. 6 * 7 * This software may be distributed under the terms of the BSD license. 8 * See README for more details. 9 */ 10 11 #ifndef DPP_SUPPLICANT_H 12 #define DPP_SUPPLICANT_H 13 14 enum dpp_status_error; 15 16 int wpas_dpp_qr_code(struct wpa_supplicant *wpa_s, const char *cmd); 17 int wpas_dpp_nfc_uri(struct wpa_supplicant *wpa_s, const char *cmd); 18 int wpas_dpp_nfc_handover_req(struct wpa_supplicant *wpa_s, const char *cmd); 19 int wpas_dpp_nfc_handover_sel(struct wpa_supplicant *wpa_s, const char *cmd); 20 int wpas_dpp_auth_init(struct wpa_supplicant *wpa_s, const char *cmd); 21 int wpas_dpp_listen(struct wpa_supplicant *wpa_s, const char *cmd); 22 void wpas_dpp_listen_stop(struct wpa_supplicant *wpa_s); 23 void wpas_dpp_remain_on_channel_cb(struct wpa_supplicant *wpa_s, 24 unsigned int freq, unsigned int duration); 25 void wpas_dpp_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, 26 unsigned int freq); 27 void wpas_dpp_tx_wait_expire(struct wpa_supplicant *wpa_s); 28 void wpas_dpp_rx_action(struct wpa_supplicant *wpa_s, const u8 *src, 29 const u8 *buf, size_t len, unsigned int freq); 30 int wpas_dpp_configurator_sign(struct wpa_supplicant *wpa_s, const char *cmd); 31 int wpas_dpp_pkex_add(struct wpa_supplicant *wpa_s, const char *cmd); 32 int wpas_dpp_pkex_remove(struct wpa_supplicant *wpa_s, const char *id); 33 void wpas_dpp_stop(struct wpa_supplicant *wpa_s); 34 int wpas_dpp_init(struct wpa_supplicant *wpa_s); 35 void wpas_dpp_deinit(struct wpa_supplicant *wpa_s); 36 int wpas_dpp_check_connect(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, 37 struct wpa_bss *bss); 38 int wpas_dpp_controller_start(struct wpa_supplicant *wpa_s, const char *cmd); 39 void wpas_dpp_connected(struct wpa_supplicant *wpa_s); 40 void wpas_dpp_send_conn_status_result(struct wpa_supplicant *wpa_s, 41 enum dpp_status_error result); 42 int wpas_dpp_chirp(struct wpa_supplicant *wpa_s, const char *cmd); 43 void wpas_dpp_chirp_stop(struct wpa_supplicant *wpa_s); 44 int wpas_dpp_reconfig(struct wpa_supplicant *wpa_s, const char *cmd); 45 int wpas_dpp_ca_set(struct wpa_supplicant *wpa_s, const char *cmd); 46 int wpas_dpp_conf_set(struct wpa_supplicant *wpa_s, const char *cmd); 47 int wpas_dpp_push_button(struct wpa_supplicant *wpa_s, const char *cmd); 48 void wpas_dpp_push_button_stop(struct wpa_supplicant *wpa_s); 49 50 #endif /* DPP_SUPPLICANT_H */ 51