1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 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 * Description: WAPI APIs 15 */ 16 17 #ifndef WAPI_API_H 18 #define WAPI_API_H 19 20 #include "wpa_supplicant_i.h" 21 22 int wapi_init_iface(struct wpa_supplicant *wpa); 23 int wapi_deinit_iface(struct wpa_supplicant *wpa); 24 int wapi_parse_wapi_ie(const unsigned char *wapi_ie, unsigned int ie_len, 25 struct wpa_ie_data *ie_data); 26 int wapi_asue_event_assoc(struct wpa_supplicant *wpa, 27 struct wpa_bss *bss, struct wpa_ssid *ssid, 28 struct wpa_driver_associate_params *params); 29 int wapi_asue_event_disassoc(struct wpa_supplicant *wpa, 30 unsigned short reason); 31 int wapi_asue_event(struct wpa_supplicant *wpa, 32 enum wpa_event_type event, void *data); 33 char * wpa_supplicant_wapi_ie_txt(char *pos, char *end, 34 const unsigned char *ie, size_t ie_len); 35 36 #endif /* end of WAPI_API_H */ 37