esp_wifi: number of WiFi cache TX buffers should not equal 0 when enable SPIRAM

This commit is contained in:
muhaidong 2022-11-02 15:02:02 +08:00 committed by gauri patankar
parent 1362b58b58
commit 44366f57d8

View File

@ -182,6 +182,11 @@ static void esp_wifi_config_info(void)
esp_err_t esp_wifi_init(const wifi_init_config_t *config)
{
if ((config->feature_caps & CONFIG_FEATURE_CACHE_TX_BUF_BIT) && (WIFI_CACHE_TX_BUFFER_NUM == 0))
{
ESP_LOGE(TAG, "Number of WiFi cache TX buffers should not equal 0 when enable SPIRAM");
return ESP_ERR_NOT_SUPPORTED;
}
esp_wifi_power_domain_on();
#ifdef CONFIG_PM_ENABLE
if (s_wifi_modem_sleep_lock == NULL) {