1 // Copyright 2019 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #ifndef WPAS_GLUE_H 16 #define WPAS_GLUE_H 17 18 u8 *wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type, 19 const void *data, u16 data_len, 20 size_t *msg_len, void **data_pos); 21 22 int wpa_sm_mlme_setprotection(struct wpa_sm *sm, const u8 *addr, 23 int protect_type, int key_type); 24 25 void wpa_sm_deauthenticate(struct wpa_sm *sm, u8 reason_code); 26 27 void wpa_sm_disassociate(struct wpa_sm *sm, int reason_code); 28 29 int wpa_sm_get_beacon_ie(struct wpa_sm *sm); 30 31 void wpa_sm_free_eapol(u8 *buffer); 32 33 #endif /* WPAS_GLUE_H */ 34