esp_wifi: replace deprecated CONFIGS with their new versions. Also

fixes WiFi when SPIRAM is enabled in certain non esp-idf projects.
This commit is contained in:
Ronen Ulanovsky
2022-10-31 17:40:12 +02:00
committed by muhaidong
parent 9d93585f8e
commit ccd5a5a866
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ typedef struct {
#define WIFI_STATIC_TX_BUFFER_NUM 0
#endif
#if (CONFIG_ESP32_SPIRAM_SUPPORT || CONFIG_ESP32S2_SPIRAM_SUPPORT || CONFIG_ESP32S3_SPIRAM_SUPPORT)
#if CONFIG_SPIRAM
#define WIFI_CACHE_TX_BUFFER_NUM CONFIG_ESP32_WIFI_CACHE_TX_BUFFER_NUM
#else
#define WIFI_CACHE_TX_BUFFER_NUM 0