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 __ESP_WPA_H__ 16 #define __ESP_WPA_H__ 17 18 #include <stdint.h> 19 #include <stdbool.h> 20 #include "esp_err.h" 21 #include "esp_wifi_crypto_types.h" 22 #include "esp_wifi_types.h" 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 /** \defgroup WiFi_APIs WiFi Related APIs 29 * @brief WiFi APIs 30 */ 31 32 /** @addtogroup WiFi_APIs 33 * @{ 34 */ 35 36 /** \defgroup WPA_APIs WPS APIs 37 * @brief ESP32 Supplicant APIs 38 * 39 */ 40 41 /** @addtogroup WPA_APIs 42 * @{ 43 */ 44 /* Crypto callback functions */ 45 // const wpa_crypto_funcs_t g_wifi_default_wpa_crypto_funcs; 46 /* Mesh crypto callback functions */ 47 // const mesh_crypto_funcs_t g_wifi_default_mesh_crypto_funcs; 48 49 /** 50 * @brief Supplicant initialization 51 * 52 * @return 53 * - ESP_OK : succeed 54 * - ESP_ERR_NO_MEM : out of memory 55 */ 56 esp_err_t esp_supplicant_init(void); 57 58 /** 59 * @brief Supplicant deinitialization 60 * 61 * @return 62 * - ESP_OK : succeed 63 * - others: failed 64 */ 65 esp_err_t esp_supplicant_deinit(void); 66 67 /** 68 * @} 69 */ 70 71 /** 72 * @} 73 */ 74 75 #ifdef __cplusplus 76 } 77 #endif 78 79 #endif /* __ESP_WPA_H__ */ 80