Commit Graph
39022 Commits
Author SHA1 Message Date
Zhang Hai Peng 3f6fcd1e7a fix(ble/bluedroid): add context to GATTC reg-notify cache warning
Include client_if, handle, bd_addr, and server cache state in the
warning logged when notification registration skips handle validation.


(cherry picked from commit 1085a32be8)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:15:59 +08:00
Zhang Hai Peng 81b8b92d20 fix(ble/bluedroid): return ESP_ERR_INVALID_ARG for invalid conn params
Return ESP_ERR_INVALID_ARG instead of ESP_FAIL when connection
parameter validation fails


(cherry picked from commit 6c53838e66)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:15:58 +08:00
Zhang Hai Peng 7f3237091d fix(ble/bluedroid): reject adv data on legacy directed ext adv
(cherry picked from commit c339cec380)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:15:42 +08:00
Zhang Hai Peng de86e2f994 fix(ble/bluedroid): skip identity conversion for static random direct connect
Do not rewrite static or non-resolvable random peer addresses to
identity type 0x03 when CONFIG_BT_BLE_RPA_SUPPORTED is enabled.


(cherry picked from commit 2ef10ef488)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:15:23 +08:00
Rahul Tank 05cd7613a4 Merge branch 'bugfix/optimize_nimble_throughput_example_v5.2' into 'release/v5.2'
fix(nimble): Optimize Nimble throughput example for 1M/2M/S2/S8 (v5.2)

See merge request espressif/esp-idf!49985
2026-06-26 17:42:17 +05:30
Shu Chen dce2cbfdfe Merge branch 'feat/seperate_ot_citest_tags_v5.2' into 'release/v5.2'
ci: seperate openthread test cases (v5.2)

See merge request espressif/esp-idf!50071
2026-06-26 07:45:10 +00:00
Jiang Jiang Jian a585cd7ec4 Merge branch 'bugfix/fix_some_wifi_bugs_260625_v5.2' into 'release/v5.2'
fix(wifi): fix some wifi bugs 260625 backport v5.2

See merge request espressif/esp-idf!50041
2026-06-26 15:25:07 +08:00
yiwenxiu 8ce55d89b3 ci: seperate openthread test cases 2026-06-26 15:14:01 +08:00
Jiang Jiang Jian e29f982062 Merge branch 'bugfix/ai_review_hfp_v5.2' into 'release/v5.2'
fix(bt): Fix the critical issues related to HFP from AI review report (v5.2)

See merge request espressif/esp-idf!50011
2026-06-26 14:05:35 +08:00
Island 97e4a56c24 Merge branch 'fix/reduce_acl_event_gaps_v5.2' into 'release/v5.2'
feat(ble): updated libble to 71d180a4 for esp32h4 and esp32s31 (5.2)

See merge request espressif/esp-idf!49588
2026-06-26 10:47:09 +08:00
sibeibei 8c6d4ef633 feat(ci): add sleep cache safe check for wifi power save 2026-06-25 19:08:42 +08:00
liuning 8c6064522c fix(pm): fix coexist force wake behaviour with offchannel to optimize performance at returning home channel 2026-06-25 19:04:04 +08:00
sibeibei feb8003818 fix(wifi): IRAM for regdma path used in modem pd light sleep 2026-06-25 19:04:04 +08:00
yangfeng b14b748d07 fix(bt): Fix the critical issues related to HFP from AI review report
HFP AG:
- Fix mSBC EV3 second-packet payload length calculation to prevent OOB read and infinite loop
- Add init/deinit guards in HF AG helper functions to avoid NULL deref
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_ag_del_records
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Bound AT Dial command string copy to BTA_AG_AT_MAX_LEN
HFP Client:
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Free SDP db, collision/AT timers and queued AT cmds before scb reset on disable
- Fix mSBC EV3 second-packet payload length calculation (same as AG)
- Reject pcm_resample input smaller than overlap window (96 bytes) on filtered path
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_hf_client_del_record
2026-06-25 14:30:24 +08:00
Euripedes Rocha 5a9313eb0f Merge branch 'update_esp_mqtt_5.x_v5.2' into 'release/v5.2'
change(mqtt): Update submodule to e3ab40c (v5.2)

See merge request espressif/esp-idf!49882
2026-06-24 20:47:11 +02:00
Euripedes Rocha Filho 294134f0c9 change(mqtt): Update submodule to e3ab40c
* Update submodule: git log --oneline cac1552e..e3ab40c8

Detailed description of the changes:
* MR: Backport v5x
  - See merge request espressif/esp-mqtt!314
  - fix(mqtt5): Sanitize propery len/types to harden mqtt5-msg (espressif/esp-mqtt@ccded7e)
  - fix(mqtt5): Fix UB in variable len processing (espressif/esp-mqtt@c3f1ede)
* MR: ci: Simplify gitlab ci for v5.x backport branch
  - See merge request espressif/esp-mqtt!317
  - ci: Simplify gitlab ci for v5.x backport branch (espressif/esp-mqtt@d28a5c8)
2026-06-24 18:14:44 +02:00
Jiang Jiang Jian 0468e5fe76 Merge branch 'bugfix/ag_unknown_codec_vv5.2' into 'release/v5.2'
fix(bt): skip unknown codecs when parsing AT+BAC(v5.2)

See merge request espressif/esp-idf!49838
2026-06-24 20:23:53 +08:00
Mayank Tyagi ca2129bda3 fix(nimble): Optimize Nimble throughput example for 1M/2M/S2/S8 2026-06-24 17:31:38 +05:30
Island a4cff77013 Merge branch 'feat/spi_log_qa_frame_check_v5.2' into 'release/v5.2'
feat(ble_log): add FINAL_STAT session-end frame and flush hook before controller restart (5.2)

See merge request espressif/esp-idf!49954
2026-06-24 19:51:08 +08:00
Zhang Wen Xu 9dc8258f5c Merge branch 'fix/initialize_s_spi_transaction_to_0_v5.2' into 'release/v5.2'
fix(openthread): replace all malloc calls with calloc to avoid hidden uninitialized memory issues (v5.2)

See merge request espressif/esp-idf!49971
2026-06-24 10:45:42 +00:00
Xu Si Yu dda714521b fix(openthread): replace all malloc calls with calloc to avoid hidden uninitialized memory issues 2026-06-24 16:15:42 +08:00
Guo Zifan c18f7607f9 feat(ble_log): Add frame check support for restart flow
(cherry picked from commit a81322a2ce)

Co-authored-by: guozifan <guozifan@espressif.com>
2026-06-24 11:25:22 +08:00
Island 023ba762fc Merge branch 'change/ble_update_lib_20260612_v5.2' into 'release/v5.2'
change(ble): [AUTO_MR] 20260612 - Update ESP BLE Controller Lib (5.2)

See merge request espressif/esp-idf!49606
2026-06-24 10:45:26 +08:00
Zhou Xiao 7bd84966e3 change(ble): [AUTO_MR] Update lib_esp32c2 to 750d4902
(cherry picked from commit 897f3b2af1)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-06-23 15:27:16 +08:00
xiongweichao 46ca4c24f5 fix(bt): skip unknown codecs when parsing AT+BAC
Peers may report custom or non-standard codec UUIDs in AT+BAC alongside
CVSD/mSBC. Returning BTA_AG_CODEC_NONE on the first unknown entry
discarded already-parsed standard codecs. Log unknown UUIDs and continue
parsing so negotiated capabilities still reflect supported codecs.
2026-06-23 07:24:30 +00:00
morris cffa1bd1e3 Merge branch 'bugfix/sdio_slave_buffer_size_limit_v5.2' into 'release/v5.2'
fix(sdio_slave): align buffer size checks with descriptor limits (v5.2)

See merge request espressif/esp-idf!49903
2026-06-23 11:45:18 +08:00
Jiang Jiang Jian cf1fc5e228 Merge branch 'bugfix/supp_pmk_cache_v5.2' into 'release/v5.2'
fix(wifi): Fix skipping usage of supp pmk caching for some cases

See merge request espressif/esp-idf!49884
2026-06-23 11:40:00 +08:00
Jiang Jiang Jian 2341c79e2f Merge branch 'fix-malloc_pm_lock_in_internal_mem_v5.2' into 'release/v5.2'
fix(esp_pm): malloc pm_lock in internal mem (v5.2)

See merge request espressif/esp-idf!49685
2026-06-23 10:57:22 +08:00
Jiang Jiang Jian 63bfea2eb1 Merge branch 'fix/use_unilock_for_sleep_process_v5.2' into 'release/v5.2'
fix(esp_hw_support): use same lock for lightsleep/deepsleep process (v5.2)

See merge request espressif/esp-idf!49844
2026-06-23 10:57:11 +08:00
Shreyas Sheth f892fa3f27 fix(wifi): Fix skipping usage of supp pmk caching for some cases 2026-06-23 10:48:24 +08:00
Mahavir Jain b50a0fd029 Merge branch 'fix/disable_secure_boot_v2_ecdsa_v5.2' into 'release/v5.2'
Fix/disable secure boot v2 ecdsa (v5.2)

See merge request espressif/esp-idf!49475
2026-06-22 21:26:33 +05:30
morrisandCursor 650cfd2b01 fix(sdio_slave): align buffer size checks with descriptor limits
Define per-target SDIO slave descriptor buffer limits in the LL layer and validate queued send buffers against the 4-byte aligned effective maximum. Update the public docs to describe the chip-dependent limit instead of hardcoding 4092 bytes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 23:25:48 +08:00
Island b376d3c11d Merge branch 'fix/ble_mesh_bug_report_v2_v5.2' into 'release/v5.2'
fix(ble_mesh): Miscellaneous bugfixes according to our internal bug report (v2)

See merge request espressif/esp-idf!49320
2026-06-22 22:29:40 +08:00
Rahul Tank d5848c3a43 Merge branch 'feat/throughput_l2cap_coc_v5.2' into 'release/v5.2'
Added l2cap_coc example for throughput (v5.2)

See merge request espressif/esp-idf!49743
2026-06-22 19:47:01 +05:30
Mahavir Jain d945534a1a Merge branch 'fix/ecdsa_ecc_hw_input_validation_v5.2' into 'release/v5.2'
Validate ECDSA signature range and harden ECC memory power-down (v5.2)

See merge request espressif/esp-idf!49446
2026-06-22 18:24:33 +05:30
Jiang Jiang Jian 7b6a7d0659 Merge branch 'fix/scan_authmode_fixes_v5.2_part2' into 'release/v5.2'
fix(wifi): backport scan and NAN timer fixes (Backport v5.2: Part 2)

See merge request espressif/esp-idf!49585
2026-06-22 19:32:44 +08:00
Astha Verma e08b2eefa6 fix(nimble): Added l2cap_coc throughput examples 2026-06-22 11:49:55 +05:30
wuzhenghui 119f25b8e6 fix(esp_hw_support): use same lock for lightsleep/deepsleep process 2026-06-22 11:51:21 +08:00
Island 75a5c91e7a Merge branch 'feat/ble-smp-multi-adv-static-random-address_v5.2' into 'release/v5.2'
feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses (5.2)

See merge request espressif/esp-idf!49785
2026-06-22 10:35:20 +08:00
Aditya Patwardhan 7022ce26c1 change(secure_boot): mark ECDSA based Secure Boot V2 as insecure on affected SoCs
ECDSA based Secure Boot V2 is not functional for certain input vectors on
ESP32-C5/C61/H2/P4 and on the preview targets ESP32-H4/H21. RSA based Secure
Boot V2 is the recommended scheme where the SoC supports it. This issue will be
fixed in a future hardware ECO revision; more details will be shared through the
hardware errata document.

A new hidden Kconfig option SECURE_BOOT_V2_ECDSA_INSECURE marks the affected
mass-production SoCs (ESP32-C5/C61/H2/P4). On these SoCs, when hardware Secure
Boot V2 is enabled, the ECDSA (V2) signing scheme is no longer offered by
default; it must be turned on explicitly via SECURE_BOOT_V2_FORCE_ENABLE_ECDSA
under "Allow potentially insecure options" (CONFIG_SECURE_BOOT_INSECURE). App
signing without hardware Secure Boot is not affected. Note that ESP32-C61 has no
RSA based Secure Boot V2, so it has no Secure Boot scheme enabled by default.

The preview targets ESP32-H4 and ESP32-H21 mark ECDSA Secure Boot V2 as not
supported in their SoC capabilities instead of using the option above. As
ESP32-H4 has no other Secure Boot V2 scheme, Secure Boot is disabled entirely on
it; ESP32-H21 retains RSA based Secure Boot V2.

The security documentation keeps the ECDSA Secure Boot V2 content visible and
adds a warning describing the limitation (including that ECDSA Secure Boot V2 on
ESP32-C61 is not recommended for production). CI apps that exercise ECDSA Secure
Boot V2 on the affected SoCs set CONFIG_SECURE_BOOT_V2_FORCE_ENABLE_ECDSA
accordingly.
2026-06-19 15:24:54 +05:30
Rahul Tank 08d9fe6262 Merge branch 'bugfix/fix_log_performance_v5.2' into 'release/v5.2'
fix(nimble): Guard ble_hs_log_mbuf/flat_buf against non-DEBUG log level (v5.2)

See merge request espressif/esp-idf!49732
2026-06-18 21:39:23 +05:30
harshal.patil 81f43c0ffb fix(esp_common/esp_fault): make ESP_FAULT_ASSERT survive optimization
ESP_FAULT_ASSERT(C) was silently deleted by the optimizer when C is a cached
flag/status already proven by a preceding `if (!C) return/goto`: the compiler
folds C to a constant and drops all three checks, removing the fault-injection
protection with no warning.
2026-06-18 21:13:50 +05:30
Zhang Hai Peng b35182d6f2 feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses
(cherry picked from commit 7986e2faa8)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-18 10:24:45 +08:00
Marius Vikhammer bb0dcaad77 Merge branch 'fix/efuse_damaged_reading_virtual_blocks_v5.2' into 'release/v5.2'
fix(efuse): erase virtual blocks before burn in damaged-reading test (v5.2)

See merge request espressif/esp-idf!49723
2026-06-17 18:21:12 +08:00
Island be7754ce17 Merge branch 'feat/format_bt_hci_to_btsnoop_v5.2' into 'release/v5.2'
refactor(bt): migrate bt_hci_to_btsnoop to esp-pylib (5.2)

See merge request espressif/esp-idf!49706
2026-06-17 14:43:46 +08:00
Rahul Tank d045ed9bb4 fix(nimble): Gaurd ble_hs_log_mbuf/flat_buf against non-DEBUG log level 2026-06-16 16:36:52 +05:30
wuzhenghui 8c7fa16c96 fix(esp_pm): malloc pm_lock in internal mem 2026-06-16 17:57:26 +08:00
Konstantin Kondrashov 6ea717e163 fix(efuse): erase virtual blocks before burn in damaged-reading test
Some chip may have BLOCK3 in use so we need to erase it before test.
2026-06-16 12:49:43 +03:00
harshal.patil c19a35990f fix(secure_boot): range-check ECDSA r,s in bootloader before ROM verify 2026-06-16 15:17:49 +05:30
harshal.patil 6d25d74aa6 fix(esp_common): Add esp_fault_internal.h for use by G0 components
In release/v5.x, esp_fault.h resides in the esp_hw_support (G1)
component, so the G0 components (hal, esp_rom) must not depend on it.
Copy its contents to esp_common as esp_fault_internal.h, keep
esp_fault.h as a compatibility wrapper around it, and switch the hal
and esp_rom ECDSA/ECC code to the internal header.
2026-06-16 15:17:49 +05:30