1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

cpu/esp32/esp_wifi: changes for wpa_supplicant in WPA2 Enterprise mode

`nvs_flash` functions have to be set to 0 if module `esp_idf_nvs_flash` is not enabled. Otherwise wpa_supplicant will crash in WPA2 Enterprise mode.
This commit is contained in:
Gunar Schorcht 2019-08-16 15:45:16 +02:00
parent 98277b0d3b
commit 202758f400
2 changed files with 18 additions and 1 deletions

View File

@ -157,7 +157,9 @@ extern "C" {
#define CONFIG_ESP32_WIFI_CSI_ENABLED 0
#define CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_0 1
#define CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1 0
#define CONFIG_ESP32_WIFI_NVS_ENABLED 0
#if MODULE_ESP_IDF_NVS_ENABLED
#define CONFIG_ESP32_WIFI_NVS_ENABLED 1
#endif
/**
* PHY configuration

View File

@ -476,6 +476,7 @@ wifi_osi_funcs_t g_wifi_osi_funcs = {
._periph_module_enable = periph_module_enable,
._periph_module_disable = periph_module_disable,
._esp_timer_get_time = esp_timer_get_time,
#if MODULE_ESP_IDF_NVS_FLASH
._nvs_set_i8 = nvs_set_i8,
._nvs_get_i8 = nvs_get_i8,
._nvs_set_u8 = nvs_set_u8,
@ -488,6 +489,20 @@ wifi_osi_funcs_t g_wifi_osi_funcs = {
._nvs_set_blob = nvs_set_blob,
._nvs_get_blob = nvs_get_blob,
._nvs_erase_key = nvs_erase_key,
#else
._nvs_set_i8 = NULL,
._nvs_get_i8 = NULL,
._nvs_set_u8 = NULL,
._nvs_get_u8 = NULL,
._nvs_set_u16 = NULL,
._nvs_get_u16 = NULL,
._nvs_open = NULL,
._nvs_close = NULL,
._nvs_commit = NULL,
._nvs_set_blob = NULL,
._nvs_get_blob = NULL,
._nvs_erase_key = NULL,
#endif
._get_random = os_get_random,
._get_time = get_time_wrapper,
._random = os_random,