1*a1157835SDaniel Fojt /* 2*a1157835SDaniel Fojt * hostapd / DPP integration 3*a1157835SDaniel Fojt * Copyright (c) 2017, Qualcomm Atheros, Inc. 4*a1157835SDaniel Fojt * 5*a1157835SDaniel Fojt * This software may be distributed under the terms of the BSD license. 6*a1157835SDaniel Fojt * See README for more details. 7*a1157835SDaniel Fojt */ 8*a1157835SDaniel Fojt 9*a1157835SDaniel Fojt #ifndef DPP_HOSTAPD_H 10*a1157835SDaniel Fojt #define DPP_HOSTAPD_H 11*a1157835SDaniel Fojt 12*a1157835SDaniel Fojt int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd); 13*a1157835SDaniel Fojt int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd); 14*a1157835SDaniel Fojt int hostapd_dpp_listen(struct hostapd_data *hapd, const char *cmd); 15*a1157835SDaniel Fojt void hostapd_dpp_listen_stop(struct hostapd_data *hapd); 16*a1157835SDaniel Fojt void hostapd_dpp_rx_action(struct hostapd_data *hapd, const u8 *src, 17*a1157835SDaniel Fojt const u8 *buf, size_t len, unsigned int freq); 18*a1157835SDaniel Fojt void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst, 19*a1157835SDaniel Fojt const u8 *data, size_t data_len, int ok); 20*a1157835SDaniel Fojt struct wpabuf * 21*a1157835SDaniel Fojt hostapd_dpp_gas_req_handler(struct hostapd_data *hapd, const u8 *sa, 22*a1157835SDaniel Fojt const u8 *query, size_t query_len, 23*a1157835SDaniel Fojt const u8 *data, size_t data_len); 24*a1157835SDaniel Fojt void hostapd_dpp_gas_status_handler(struct hostapd_data *hapd, int ok); 25*a1157835SDaniel Fojt int hostapd_dpp_configurator_add(struct hostapd_data *hapd, const char *cmd); 26*a1157835SDaniel Fojt int hostapd_dpp_configurator_remove(struct hostapd_data *hapd, const char *id); 27*a1157835SDaniel Fojt int hostapd_dpp_configurator_sign(struct hostapd_data *hapd, const char *cmd); 28*a1157835SDaniel Fojt int hostapd_dpp_configurator_get_key(struct hostapd_data *hapd, unsigned int id, 29*a1157835SDaniel Fojt char *buf, size_t buflen); 30*a1157835SDaniel Fojt int hostapd_dpp_pkex_add(struct hostapd_data *hapd, const char *cmd); 31*a1157835SDaniel Fojt int hostapd_dpp_pkex_remove(struct hostapd_data *hapd, const char *id); 32*a1157835SDaniel Fojt void hostapd_dpp_stop(struct hostapd_data *hapd); 33*a1157835SDaniel Fojt int hostapd_dpp_init(struct hostapd_data *hapd); 34*a1157835SDaniel Fojt void hostapd_dpp_deinit(struct hostapd_data *hapd); 35*a1157835SDaniel Fojt void hostapd_dpp_init_global(struct hapd_interfaces *ifaces); 36*a1157835SDaniel Fojt void hostapd_dpp_deinit_global(struct hapd_interfaces *ifaces); 37*a1157835SDaniel Fojt 38*a1157835SDaniel Fojt #endif /* DPP_HOSTAPD_H */ 39