1 /* 2 * WPA Supplicant 3 * Copyright (c) 2003-2016, Jouni Malinen <j@w1.fi> 4 * 5 * This software may be distributed under the terms of the BSD license. 6 * See README for more details. 7 * 8 * This file implements functions for registering and unregistering 9 * %wpa_supplicant interfaces. In addition, this file contains number of 10 * functions for managing network connections. 11 */ 12 13 #ifndef _WPA_SUPPLICANT_H_ 14 #define _WPA_SUPPLICANT_H_ 15 16 #include "wpa_supplicant_i.h" 17 #include "wifi_api.h" 18 19 extern int g_sta_delay_report_flag; 20 extern unsigned int g_wpataskid; 21 22 void wpa_supplicant_main(const char *ifname); 23 24 void los_wpa_supplicant_exit(void); 25 int wpa_supplicant_main_task(void *param); 26 char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s, char *buf, size_t *resp_len); 27 void wpa_supplicant_reconnect_timeout(void *eloop_ctx, void *timeout_ctx); 28 void wpa_supplicant_reconnect_restart(void *eloop_ctx, void *timeout_ctx); 29 int wpa_check_reconnect_timeout_match(const struct wpa_supplicant *wpa_s); 30 void wpa_send_disconnect_delay_report_events(void); 31 void wpa_save_disconnect_event(const struct wpa_supplicant *wpa_s, const u8 *bssid, u16 reason_code); 32 void wpa_sta_delay_report_deinit(const struct ext_wifi_dev *wifi_dev); 33 void wpa_register_timeout_periodic_cleanup(struct wpa_supplicant *wpa_s); 34 struct wpa_global * wpa_supplicant_get_wpa_global(void); 35 void wpa_supplicant_global_deinit(void); 36 int wpa_is_sta(const struct wpa_supplicant *wpa_s); 37 void wpa_clear_passphrase(struct wpa_supplicant *wpa_s); 38 #endif /* _WPA_SUPPLICANT_H_ */ 39