esp-hal icon indicating copy to clipboard operation
esp-hal copied to clipboard

Validate wifi configuration

Open bugadani opened this issue 1 year ago • 1 comments

esp-idf does some validation on the configuration, e.g.


#if (CONFIG_ESP_WIFI_RX_BA_WIN > CONFIG_ESP_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_ESP_WIFI_RX_BA_WIN > (CONFIG_ESP_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

It might be helpful to do the same in esp-wifi, too.

bugadani avatar Oct 27 '23 18:10 bugadani