9271 Commits

Author SHA1 Message Date
Jakob Hasse
908dbe0595 [doc]: NVS documentation updates
* Better comment of nvs_get_used_entry_count()
* Mention C++ example in API reference
* WIP: Used target instead of hard code ESP32
* Note that strings can only span one page
* Reflect that item types have been moved
* Some clarification about nvs_commit()
* Improved reference to the ESP Partition API
* fixed little mistake in documenting-code.rst
* Change of nvs_open_from_part() to
  nvs_open_from_partition() reflected in docs
* Corrected documentation of
  NVSHandle::get_string(), NVSHandle::get_blob()
  and NVSHandle::get_item_size().

* Closes IDF-1563
* Closes IDF-859
* Closes https://github.com/espressif/esp-idf/issues/6123
2021-12-17 16:13:23 +08:00
Konstantin Kondrashov
e6943e970c Merge branch 'bugfix/fix_esp32h2_efuse_get_ext_mac_v4.1' into 'release/v4.1'
efuse_table_gen: Fixes wrong joining fields with omitted names (v4.1)

See merge request espressif/esp-idf!15740
2021-12-15 15:33:12 +00:00
Wang Meng Yang
22d127ecc1 Merge branch 'bugfix/fix_memory_leak_controller_deinit_v4.1' into 'release/v4.1'
ESP32: Fix memory leak in controller deinit function v4.1

See merge request espressif/esp-idf!15971
2021-12-09 02:36:52 +00:00
Jiang Jiang Jian
abdad421bb Merge branch 'bugfix/fix_wifi_bugs_20211206_v4.1' into 'release/v4.1'
esp_wifi: fix wifi bugs 20211206 (Backport v4.1)

See merge request espressif/esp-idf!16271
2021-12-08 03:02:39 +00:00
zhangyanjiao
2cdf9b5d9d esp_wifi:
1. Fix airkiss and esptouch find channel crash issue
2. Fix issue of softAP not initating 4-way handshake if max length passphrase is set
3. Fix issue of esptouch find hidden AP fail
4. Clear hostpot bss when auth timeout happens
5. Fix not connect to open AP when WPA3 auth fail
6. Fix issue with hidden AP scans after connecting AP
7. Fix the watchdog issue when receiving action frame
8. Fix set config return value error
9. Fix the issue of reason code change from 15 to 204 when provide wrong password
10. Fix ampdu age timer memory leak
11. Fix issue of esp_wifi_80211_tx
12. Fix crash issue in presence of WEP AP
13. Fix the MIC comparison logic AES-128-CMAC decryption
14. Fix issue of setting incorrect log_length of NVS misc log
15. Fix SoftAP crash by handling public action frames
16. Fix a bug that Wi-Fi stack may crash when receive AMSDU length bigger then 3200
2021-12-07 14:22:24 +08:00
Rahul Tank
ecbf1e398a ESP32: Fix memory leak in controller deinit function
Added change to dealloc s_pm_lock in controller deinit as it gets allocated
during init procedure.
2021-12-07 11:34:37 +05:30
Jiang Jiang Jian
6ce71ecacf Merge branch 'bugfix/link_spi_flash_rom_func_in_bootloader_stage_v4.1' into 'release/v4.1'
esp_rom: link rom spi flash functions in bootloader stage (v4.1)

See merge request espressif/esp-idf!15259
2021-12-07 03:37:57 +00:00
Jiang Jiang Jian
cce06a33ed Merge branch 'bugfix/psram_fix_bootloader_v4.1' into 'release/v4.1'
bootloader: disable psram cache bug fix for bootloader (v4.1)

See merge request espressif/esp-idf!15807
2021-12-07 03:37:35 +00:00
Jiang Jiang Jian
c7af5d8ce9 Merge branch 'feature/adds_fault_injection_protection_for_check_anti_rollback_v4.1' into 'release/v4.1'
bootloader_support: Adds fault injection protection for check_anti_rollback (v4.1)

See merge request espressif/esp-idf!16182
2021-12-07 03:33:11 +00:00
Jiang Jiang Jian
9fe266f18e Merge branch 'bugfix/fix_modem_sleep_hw_error_mr_4.1' into 'release/v4.1'
fix modem sleep hw error

See merge request espressif/esp-idf!16020
2021-12-07 03:32:50 +00:00
Yang Zhao
22096945d8 1.fix the issue create Connection request is not properly terminated
which blocks BlueZ from reconnecting
2.fix the issue bt_spp_acceptor example fails when SPP is initiated
  on a windows machine using Realtek Bluetooth adapter
3.fix the issue HCI_Read_Clock failed read local Bluetooth Clock
4.It is abnormal when getting the deep sleep state bit. So we need to
  check the state again and run the "ble_master_soft_rst()" if neesed.
2021-12-06 17:37:49 +08:00
xiehang
d23be33b0d esp_wifi: Add beacon timeout event 2021-12-06 15:16:37 +08:00
“YangZhao”
dea009aa62 Fix the high-impact issues from the code analysis report from customer.
For the CID10564,10384,10280,10098,10038,The memory was released in other place.
For the CID10365,it release the memory in the function when sent successfully.
For the CID10268,10011, we need not change the code.
2021-12-06 14:04:05 +08:00
Jiang Jiang Jian
488930b9f7 Merge branch 'bugfix/enable_gpio_20_v4.1' into 'release/v4.1'
gpio: Enable IO20 on ESP32 (backport v4.1)

See merge request espressif/esp-idf!15024
2021-12-03 03:37:33 +00:00
Jiang Jiang Jian
8c6853bbc1 Merge branch 'bugfix/lwip_config_dhcp_client_id_v4.1' into 'release/v4.1'
lw-ip: Add config for DHCP client id; Fix DNS server idx assert issue (v4.1)

See merge request espressif/esp-idf!16175
2021-12-03 03:33:51 +00:00
Jiang Jiang Jian
70fbcbddc8 Merge branch 'bugfix/eap_client_iot_issues_v4.1' into 'release/v4.1'
ESP_WiFi: Fix some wpa enterprise issue (backport V4.1)

See merge request espressif/esp-idf!15574
2021-12-03 03:30:59 +00:00
Jiang Jiang Jian
31203908a3 Merge branch 'bugfix/fix_adc-dma_reading_gap_for_esp32_backport_v4.1' into 'release/v4.1'
bugfix(adc): missing ranges of ADC codes in ESP32 (backport v4.1)

See merge request espressif/esp-idf!12878
2021-12-03 03:26:04 +00:00
Jiang Jiang Jian
2da581f82f Merge branch 'bugfix/pm_dump_format_v4.1' into 'release/v4.1'
esp_pm: fix formatting issues in esp_pm_dump_locks (backport v4.1)

See merge request espressif/esp-idf!12023
2021-12-03 03:23:54 +00:00
Mahavir Jain
48cac250c7 bootloader: add anti-FI checks around secure version in anti-rollback scheme 2021-11-29 18:50:01 +05:30
David Cermak
8bf61c289a lwip: Add config for DHCP client id; Fix DNS server idx assert issue
This commit brings two esp-lwip fixes to IDF:

1) Add configuration to disable DHCP client identification
2195f7416f
This config could be used to disable option 61 in DHCP packets, so that
clients will be identified by their  chaddr only.
(This is the lwip upstream original behaviour)

2) Fix server_idx increasing to DNS_MAX_SERVERS and trigger the LWIP_ASSERT
5a567d52f7
When lwip doesn't have DNS server and resolve a domain address, the server_idx
will increase to DNS_MAX_SERVERS, which will trigger the LWIP_ASSERT and make device crash.

Closes https://github.com/espressif/esp-idf/issues/6878
2021-11-29 11:18:54 +01:00
Roland Dobai
f3b823381b Merge branch 'bugfix/coredump_esp_panic_reason_v4.1' into 'release/v4.1'
coredump: Fixes ESP-specific panic reasons handling (v4.1)

See merge request espressif/esp-idf!16068
2021-11-26 11:03:57 +00:00
Gustavo Henrique Nihei
7e17bd8eb3 bootloader_support: Fix and re-enable bootloader_debug_buffer function
The body of the bootloader_debug_buffer function was conditioned to
macros that were never defined, resulting in deactivated code.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-26 13:19:18 +08:00
Alexey Gerenkov
719974ac88 coredump: Fixes ESP-specific panic reasons handling 2021-11-25 09:43:32 +01:00
shenjun
56a1a74492 esp_wifi_mesh: add esp_mesh_send_block_time to set blocking time of esp_mesh_send
1. add esp_mesh_send_block_time to set blocking time of esp_mesh_send
2. fix the issue that layer2 node connect to lower-layer node when FIXED-ROOT root disappeared
2021-11-25 14:02:03 +08:00
Roland Dobai
81517ead9e Merge branch 'feature/gcov_dump_in_thread_v4.1' into 'release/v4.1'
Feature/gcov dump in thread v4.1

See merge request espressif/esp-idf!15918
2021-11-23 07:55:11 +00:00
Erhan Kurubas
08ef49e478 gcov: enable gcov in single core 2021-11-12 22:35:52 +03:00
Gustavo Henrique Nihei
8e03ec2253 efuse: Enable C++ linkage for the include headers on esp_efuse.h
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-12 13:30:37 -03:00
Gustavo Henrique Nihei
c72930f726 efuse: Add missing stdbool.h include file
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-12 13:30:36 -03:00
Erhan Kurubas
3277ff6856 gcov: ipc component name changei 2021-11-12 19:28:07 +03:00
Erhan Kurubas
3830ac21e2 esp_ipc: fix race condition in ipc task 2021-11-12 00:33:01 +03:00
Erhan Kurubas
9681fb3d71 ipc: enable ipc task at single core for gcov dump 2021-11-12 00:32:43 +03:00
Erhan Kurubas
1d987334d3 gcov: add stub table size entry 2021-11-12 00:32:43 +03:00
Erhan Kurubas
fd8b943619 gcov: add gcov callback into the ipc task 2021-11-12 00:32:39 +03:00
Erhan Kurubas
357e938298 gcov: dump in a special thread 2021-11-12 00:31:17 +03:00
Erhan Kurubas
1a40148be0 gcov: added dbg stub capabilites and magic number entry to keep backward compatible 2021-11-12 00:29:57 +03:00
boarchuz
59a37806e7 fix bootloader build with rom flash driver
Closes https://github.com/espressif/esp-idf/pull/7508
Closes https://github.com/espressif/esp-idf/issues/6849
2021-11-08 14:14:14 +08:00
xiewenxiang
7b18c32ad2 component/bt: fix crash when shutdown bt(backport v4.1) 2021-11-08 10:43:15 +08:00
Island
25ce06d32e Merge branch 'bugfix/ble_mesh_host_init_v4.1' into 'release/v4.1'
ble_mesh: nimble: return error if init host twice (v4.1)

See merge request espressif/esp-idf!15790
2021-11-05 03:12:34 +00:00
Island
30450b456f Merge branch 'bugfix/sig_ble_mesh_errata_e16350_v4.1' into 'release/v4.1'
ble_mesh: stack: Apply the errata E16350 from Bluetooth SIG (v4.1)

See merge request espressif/esp-idf!15786
2021-11-05 03:09:32 +00:00
Marius Vikhammer
0e3ebe868f bootloader: disable psram cache bug fix for bootloader
The psram cache bug fix was also being applied to the bootloader binary (for cmake),
which doesnt do any psram access.

Applying this fix would increase the binary size, as much as 300 bytes in worst case scenarios
2021-11-04 11:32:19 +08:00
lly
2f0fbfa3ef ble_mesh: nimble: return error if init host twice 2021-11-03 19:22:00 +08:00
lly
68d902e9c8 ble_mesh: stack: Apply the errata E16350 from Bluetooth SIG 2021-11-03 19:07:08 +08:00
Chinmay Chhajed
5bf675ea4f BLE: Set connection max latency value to 499. 2021-11-01 16:39:13 +05:30
KonstantinKondrashov
104dc63c85 efuse_table_gen: Fixes wrong joining fields with omitted names
The issue is related to the non-sequential way of description when
such fields going together sequential.

Related to esp32h2 chip for eFuses: MAC_FACTORY and MAC_EXT.
The issue is in wrong indexes of MAC_EXT.
MAC_EXT got indexes like it is joined to MAC_FACTORY.

const esp_efuse_desc_t* ESP_EFUSE_MAC_FACTORY[] = {
    &MAC_FACTORY[0],
    &MAC_FACTORY[1],
    &MAC_FACTORY[2],
    &MAC_FACTORY[3],
    &MAC_FACTORY[4],
    &MAC_FACTORY[5],
    NULL
};

const esp_efuse_desc_t* ESP_EFUSE_MAC_EXT[] = {
    &MAC_EXT[6],
    &MAC_EXT[7],
    NULL
};

This commit fixed it to:

const esp_efuse_desc_t* ESP_EFUSE_MAC_EXT[] = {
    &MAC_EXT[0],
    &MAC_EXT[1],
    NULL
};
2021-10-29 19:37:35 +08:00
yuanjm
4b8a5ff153 esp_http_client: Fix HEAD request will affect the all next HTTP requests unless we close the HTTP request
Closes https://github.com/espressif/esp-idf/issues/7777
2021-10-29 10:21:07 +08:00
Kapil Gupta
bd716b6fa1 wpa_supplicant: Add missing cflag for legacy makefile 2021-10-28 16:55:50 +05:30
Kapil Gupta
c4b411cbb2 wpa_supplicant: Update internal tls client with sha384/sha512 support 2021-10-28 16:55:14 +05:30
Kapil Gupta
04d02e5b52 esp_wifi: Fix interoperability issue with windows 2008 2021-10-28 16:07:01 +08:00
Mahavir Jain
f9327b9d82 Merge branch 'bugfix/select_boot_app_v4.1' into 'release/v4.1'
partition_table: Fix case when a few similar to otadata partitions in the table (v4.1)

See merge request espressif/esp-idf!15650
2021-10-28 05:38:23 +00:00
Island
2a455d7d5e Merge branch 'bugfix/heartbeat_filter_with_acceptlist_v4.1' into 'release/v4.1'
ble_mesh: stack: Fix heartbeat filter with accept list (v4.1)

See merge request espressif/esp-idf!15678
2021-10-28 02:58:47 +00:00