1 /* 2 * WPA Supplicant - Glue code to setup EAPOL and RSN modules 3 * Copyright (c) 2003-2008, 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 9 #ifndef WPAS_GLUE_H 10 #define WPAS_GLUE_H 11 12 enum wpa_ctrl_req_type; 13 14 int wpa_supplicant_init_eapol(struct wpa_supplicant *wpa_s); 15 int wpa_supplicant_init_wpa(struct wpa_supplicant *wpa_s); 16 void wpa_supplicant_rsn_supp_set_config(struct wpa_supplicant *wpa_s, 17 struct wpa_ssid *ssid); 18 int wpa_ether_send(struct wpa_supplicant *wpa_s, const u8 *dest, 19 u16 proto, const u8 *buf, size_t len); 20 21 const char * wpa_supplicant_ctrl_req_to_string(enum wpa_ctrl_req_type field, 22 const char *default_txt, 23 const char **txt); 24 25 enum wpa_ctrl_req_type wpa_supplicant_ctrl_req_from_string(const char *field); 26 27 void wpas_send_ctrl_req(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, 28 const char *field_name, const char *txt); 29 30 #endif /* WPAS_GLUE_H */ 31