From 6a99e86b2fb01b595456eadc4a83c16303e79f1e Mon Sep 17 00:00:00 2001
From: Gunar Schorcht <gunar@schorcht.net>
Date: Thu, 17 Jan 2019 03:41:10 +0100
Subject: [PATCH] cpu/esp32: fix stability issues of esp_wifi

ESP-IDF heap handling has to be used for esp_wifi for stability reasons. Otherwise, heap is corrupted sporadically
---
 cpu/esp32/Makefile.dep | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpu/esp32/Makefile.dep b/cpu/esp32/Makefile.dep
index af918d6664..c5d8e58038 100644
--- a/cpu/esp32/Makefile.dep
+++ b/cpu/esp32/Makefile.dep
@@ -28,6 +28,7 @@ endif
 
 ifneq (,$(filter esp_wifi_any,$(USEMODULE)))
     # add additional modules used for any WiFi interface
+    USEMODULE += esp_idf_heap
     USEMODULE += esp_idf_wpa_supplicant_crypto
     USEMODULE += esp_idf_wpa_supplicant_port
     USEMODULE += esp_idf_nvs_flash
-- 
GitLab