Merge branch 'bugfix/fix_some_wifi_bugs_0703_v4.0' into 'release/v4.0'

fix some wifi bugs 0703 (v4.0)

See merge request espressif/esp-idf!9532
This commit is contained in:
Jiang Jiang Jian 2020-07-12 20:30:52 +08:00
commit 0b3954c0c3
5 changed files with 18 additions and 2 deletions

View File

@ -555,7 +555,7 @@ wifi_osi_funcs_t g_wifi_osi_funcs = {
._malloc = malloc,
._free = free,
._event_post = esp_event_post_wrapper,
._get_free_heap_size = esp_get_free_heap_size,
._get_free_heap_size = esp_get_free_internal_heap_size,
._rand = esp_random,
._dport_access_stall_other_cpu_start_wrap = esp_dport_access_stall_other_cpu_start_wrap,
._dport_access_stall_other_cpu_end_wrap = esp_dport_access_stall_other_cpu_end_wrap,

View File

@ -340,6 +340,11 @@ uint32_t esp_get_free_heap_size( void )
return heap_caps_get_free_size( MALLOC_CAP_DEFAULT );
}
uint32_t esp_get_free_internal_heap_size( void )
{
return heap_caps_get_free_size( MALLOC_CAP_8BIT | MALLOC_CAP_DMA | MALLOC_CAP_INTERNAL );
}
uint32_t esp_get_minimum_free_heap_size( void )
{
return heap_caps_get_minimum_free_size( MALLOC_CAP_DEFAULT );

View File

@ -113,6 +113,16 @@ esp_reset_reason_t esp_reset_reason(void);
*/
uint32_t esp_get_free_heap_size(void);
/**
* @brief Get the size of available internal heap.
*
* Note that the returned value may be larger than the maximum contiguous block
* which can be allocated.
*
* @return Available internal heap size, in bytes.
*/
uint32_t esp_get_free_internal_heap_size(void);
/**
* @brief Get the minimum heap that has ever been available
*

View File

@ -94,6 +94,7 @@ typedef enum {
WIFI_REASON_ASSOC_FAIL = 203,
WIFI_REASON_HANDSHAKE_TIMEOUT = 204,
WIFI_REASON_CONNECTION_FAIL = 205,
WIFI_REASON_AP_TSF_RESET = 206,
} wifi_err_reason_t;
typedef enum {

@ -1 +1 @@
Subproject commit 6f8c549517a5a0c7c9202e1fe06cff2f85a2bc6e
Subproject commit fb16d9213d97aa4b6478f76d105ed46b7f1dbe80