Skip to content

Commit

Permalink
esp_wifi: number of WiFi cache TX buffers should not equal 0 when ena…
Browse files Browse the repository at this point in the history
…ble SPIRAM
  • Loading branch information
muhaidong committed Nov 7, 2022
1 parent ccd5a5a commit 4953f59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/esp_wifi/src/wifi_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4953f59

Please sign in to comment.