From 6af07b800a70da78cb0b147099451cfec2c2c822 Mon Sep 17 00:00:00 2001 From: xiehang Date: Thu, 25 Jul 2019 14:37:20 +0800 Subject: [PATCH] esp_wifi: ESP32_WIFI_RX_BA_WIN should be less than ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM --- components/esp32/wifi_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/esp32/wifi_init.c b/components/esp32/wifi_init.c index bd4437a5b..7bdc01469 100644 --- a/components/esp32/wifi_init.c +++ b/components/esp32/wifi_init.c @@ -20,6 +20,14 @@ #include "soc/rtc.h" #include "esp_mesh.h" +#if (CONFIG_ESP32_WIFI_RX_BA_WIN > CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM) +#error "WiFi configuration check: WARNING, WIFI_RX_BA_WIN should not be larger than WIFI_DYNAMIC_RX_BUFFER_NUM!" +#endif + +#if (CONFIG_ESP32_WIFI_RX_BA_WIN > (CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM << 1)) +#error "WiFi configuration check: WARNING, WIFI_RX_BA_WIN should not be larger than double of the WIFI_STATIC_RX_BUFFER_NUM!" +#endif + /* mesh event callback handler */ mesh_event_cb_t g_mesh_event_cb = NULL;