1 /* 2 * SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef WPAS_GLUE_H 8 #define WPAS_GLUE_H 9 10 u8 *wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type, 11 const void *data, u16 data_len, 12 size_t *msg_len, void **data_pos); 13 14 int wpa_sm_mlme_setprotection(struct wpa_sm *sm, const u8 *addr, 15 int protect_type, int key_type); 16 17 void wpa_sm_deauthenticate(struct wpa_sm *sm, u8 reason_code); 18 19 void wpa_sm_disassociate(struct wpa_sm *sm, int reason_code); 20 21 int wpa_sm_get_beacon_ie(struct wpa_sm *sm); 22 23 void wpa_sm_free_eapol(u8 *buffer); 24 25 u8 *wpa_alloc_eapol(void *sm, u8 type, 26 const void *data, u16 data_len, 27 size_t *msg_len, void **data_pos); 28 29 void wpa_free_eapol(u8 *buffer); 30 31 int wpa_ether_send(void *ctx, const u8 *dest, u16 proto, 32 const u8 *data, size_t data_len); 33 34 void wpa_supplicant_transition_disable(void *sm, u8 bitmap); 35 36 int hostapd_send_eapol(const u8 *source, const u8 *sta_addr, 37 const u8 *data, size_t data_len); 38 #endif /* WPAS_GLUE_H */ 39