Commit Graph

42051 Commits

Author SHA1 Message Date
Rahul Tank
8fbee1da23 Merge branch 'bugfix/proximity_example_issue_v5.3' into 'release/v5.3'
fix(nimble): Fix prox service to handle negative values (v5.3)

See merge request espressif/esp-idf!47539
2026-04-15 09:25:16 +05:30
morris
5f2ec0d750 Merge branch 'fix/i2c_null_check_v5.3' into 'release/v5.3'
fix(i2c): add NULL check and correct log (v5.3)

See merge request espressif/esp-idf!46689
2026-04-15 11:08:59 +08:00
morris
54e35df531 Merge branch 'doc/i2c_master_probe_comment_update_v5.3' into 'release/v5.3'
docs(i2c): update i2c_master_probe parameter comment (v5.3)

See merge request espressif/esp-idf!47514
2026-04-15 11:06:24 +08:00
Island
78dea1940b Merge branch 'fix/add-scheduler-suspended-check-in-ble-log_v5.3' into 'release/v5.3'
fix: BLE Log Module Issues 20260407 (5.3)

See merge request espressif/esp-idf!47556
2026-04-15 10:45:22 +08:00
Rahul Tank
3623daf53e Merge branch 'bugfix/fix_nimble_eg_readme_v5.3' into 'release/v5.3'
fix(nimble): Update example READMEs with correct console log information (v5.3)

See merge request espressif/esp-idf!47603
2026-04-14 21:43:44 +05:30
Rahul Tank
240c346737 fix(nimble): Update example READMEs with correct console log information 2026-04-14 17:42:45 +05:30
Rahul Tank
58966957f5 fix(nimble): Fix prox service to handle negative values 2026-04-14 14:30:03 +05:30
Rahul Tank
7674277692 Merge branch 'bugfix/fix_debug_assert_lock_v5.3' into 'release/v5.3'
fix(nimble): Resolve host lock assert in DEBUG mode (v5.3)

See merge request espressif/esp-idf!47472
2026-04-14 14:16:33 +05:30
Zhang Wen Xu
b1411fd0cb Merge branch 'feat/radio_spinel_driver_interface_optimization_v5.3' into 'release/v5.3'
feat(openthread): optimize radio spinel uart interface (v5.3)

See merge request espressif/esp-idf!47413
2026-04-14 07:55:58 +00:00
Xu Si Yu
63fe722a3b feat(openthread): optimize radio spinel uart interface 2026-04-14 14:20:27 +08:00
Jiang Jiang Jian
1483b53e00 Merge branch 'fix/sae_identifier_pmk_cache_v5.3' into 'release/v5.3'
Add conditions to check pmk flushing for similar ssid(v5.3)

See merge request espressif/esp-idf!47520
2026-04-14 13:37:11 +08:00
Zhou Xiao
9a3b71f6cd fix(ble_log): ensure BLE Log IRAM functions are placed in IRAM on ESP32C2
On ESP32C2 with BT_CTRL_RUN_IN_FLASH_ONLY, the bt_default linker scheme
routes .iram1 sections to flash_text, causing BLE_LOG_IRAM_ATTR functions
to end up in flash instead of IRAM. Define a dedicated .ble_log_iram1
section for ESP32C2 and route it to iram0_bt_text unconditionally.


(cherry picked from commit a9b93ca0e5)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:13:47 +08:00
Zhou Xiao
6a16b680fc fix(ble_log): improve robustness with atomics, macro hygiene, and IRAM
- Use __atomic_fetch_add for stat_mgr counters to prevent lost updates
  under concurrent ISR/task access (H1)
- Use __atomic_load_n with ACQUIRE ordering for ref_count spin-loops (L1)
- Remove unnecessary BLE_LOG_IRAM_ATTR from ble_log_rt_task since it
  calls flash-resident functions and cannot run during flash ops (L3)
- Add parentheses to BLE_LOG_TRANS_FREE_SPACE and BLE_LOG_MAKE_FRAME_META
  macro parameters to prevent operator precedence bugs (M6)


(cherry picked from commit 59536316c9)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:13:47 +08:00
Zhou Xiao
1d755f5a8b fix(ble_log): fix deinit race and concurrent flush deadlock
- Reorder deinit: stop RT task before destroying peripheral driver to
  prevent sending transports to a NULL dev_handle on dual-core (H2)
- Drain remaining queue items in rt_deinit to clean up transport state
- Add atomic flush_in_progress guard to prevent two concurrent
  ble_log_flush() callers from deadlocking on ref_count spin-wait (H5)


(cherry picked from commit 1275b78ad6)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:13:46 +08:00
Zhou Xiao
15423ec16a fix(ble_log): fix crash and resource issues in peripheral drivers
- Handle scheduler-suspended and ISR context in UART redirect path
  to prevent xSemaphoreTake crash during light sleep (C1)
- Check uart_driver_install return value before setting inited flag (M1)
- Always clean up SPI device handle in deinit even if acquire_bus fails (M4)


(cherry picked from commit 3f8cfc5b1d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:13:41 +08:00
Zhou Xiao
c426736f4b fix(ble_log): handle scheduler-suspended state in ble_log_rt_queue_trans
During light sleep transitions, the FreeRTOS scheduler is suspended but
xPortInIsrContext() returns false, causing xQueueSend with portMAX_DELAY
to hit a configASSERT. Add a check for taskSCHEDULER_SUSPENDED and use
a non-blocking send with rollback on queue-full to avoid resource leaks.


(cherry picked from commit 92979706d7)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:13:40 +08:00
Mahavir Jain
2deca28df5 Merge branch 'fix/fix_possible_null_dereference_wifi_provisioning_v5.3' into 'release/v5.3'
fix(wifi_provisioning): fixes potential null dereference on malformed packet (v5.3)

See merge request espressif/esp-idf!47453
2026-04-14 10:22:02 +05:30
Rahul Tank
c8d85df00d fix(nimble): Resolve host lock assert in DEBUG mode 2026-04-13 16:18:44 +05:30
tarun.kumar
cea9451b77 fix(wifi) : Add conditions to check pmk flushing for similar ssid 2026-04-13 15:07:49 +05:30
Marius Vikhammer
e1afd74d74 Merge branch 'docs/refresh-broken-links_v5.3' into 'release/v5.3'
docs: refresh broken documentation links (v5.3)

See merge request espressif/esp-idf!47496
2026-04-13 16:31:03 +08:00
Chen Chen
f22dc4828a docs(i2c): update i2c_master_probe parameter comment
closes https://github.com/espressif/esp-idf/issues/18442
2026-04-13 15:13:44 +08:00
morris
06faa8fad5 Merge branch 'bugfix/flash_user_command_with_pms_v5.3' into 'release/v5.3'
fix(flash): flash erase operation may fail to raise PMS exception (v5.3)

See merge request espressif/esp-idf!47457
2026-04-13 11:42:45 +08:00
Marius Vikhammer
f8a6fc15d1 docs: refresh broken documentation links 2026-04-13 09:50:16 +08:00
Jiang Jiang Jian
734142bff5 Merge branch 'bugfix/fix_some_bt_coex_bugs_v5.3' into 'release/v5.3'
fix(coex): fix some esp32 coexistence bugs (Backport v5.3)

See merge request espressif/esp-idf!47408
2026-04-12 14:46:22 +08:00
morris
e257814407 Merge branch 'fix/tsens_float_isr_v5.3' into 'release/v5.3'
fix(temperature_sensor): Fix the float calculation in temperature sensor isr (backport v5.3)

See merge request espressif/esp-idf!46951
2026-04-10 18:35:25 +08:00
Song Ruo Jing
5ed65cab1a fix(flash): flash erase operation may fail to raise PMS exception 2026-04-10 15:45:24 +08:00
Island
fa3e43c27c Merge branch 'change/ble_update_lib_20260409_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20260409 - Update ESP BLE Controller Lib (5.3)

See merge request espressif/esp-idf!47416
2026-04-10 15:43:26 +08:00
Shu Chen
4375aa07bd Merge branch 'fix/update_ot_mbedtls_version_v5.3' into 'release/v5.3'
ci(openthread): include mbedtls in openthread dependencies (v5.3)

See merge request espressif/esp-idf!47447
2026-04-10 07:28:54 +00:00
Ashish Sharma
f81c7d8695 fix(wifi_provisioning): fixes memory leak on OOM 2026-04-10 14:38:11 +08:00
Ashish Sharma
36a5cee91b fix(wifi_provisioning): fixes potential null dereference on malformed packet 2026-04-10 12:33:00 +08:00
Tan Yan Quan
cdb2bd6595 ci(openthread): include mbedtls in openthread dependencies 2026-04-10 11:23:39 +08:00
Jiang Jiang Jian
62af48a98f Merge branch 'bugfix/oob_read_in_continue_packet_v5.3' into 'release/v5.3'
fix(bt/bluedroid): fix ACL reassembly dropping valid continuation fragments (v5.3)

See merge request espressif/esp-idf!47381
2026-04-10 10:19:06 +08:00
linruihao
91e2fc2233 fix(coex): fix some esp32 coexistence bugs
- fix ble scan may restart twice in coex scenarios
- fix bredr page/pscan coex request/release not match
- fix bredr incorrect inquiry length calculation
- update bredr page/inquiry pti
- add coex pti protection for entire page/inquiry event
2026-04-10 10:18:40 +08:00
Jiang Jiang Jian
00089c5948 Merge branch 'fix/ot_mbedtls_version_check_v5.3' into 'release/v5.3'
fix(openthread): update OT upstream to b1a37932b to fix mbedtls version check (v5.3)

See merge request espressif/esp-idf!47428
2026-04-10 10:15:52 +08:00
Tan Yan Quan
e7ef7b5246 fix(openthread): update OT upstream to b1a37932b to fix mbedtls version check 2026-04-09 19:51:22 +08:00
Zhao Wei Liang
56002730f3 feat(ble): add adv tx options on ESP32-H2
(cherry picked from commit 8ef46541cd)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-09 16:17:53 +08:00
Zhao Wei Liang
e0da34a00f feat(ble): add adv tx options on ESP32-C6
(cherry picked from commit e85bb5cca8)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-09 16:17:48 +08:00
Zhao Wei Liang
5e93f583e8 change(ble): [AUTO_MR] Update lib_esp32c6 to c9fbba6f
(cherry picked from commit 24d0f0fad1)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-09 16:17:47 +08:00
Zhao Wei Liang
d051d699c9 change(ble): [AUTO_MR] Update lib_esp32h2 to c9fbba6f
(cherry picked from commit 9bfcc76221)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-09 16:17:47 +08:00
morris
ecf2c653cf Merge branch 'fix/fix_mmu_dirom_reserve_search_logic_v5.3' into 'release/v5.3'
mmu: fixed drom/irom reservation bus cap search logic (v5.3)

See merge request espressif/esp-idf!47392
2026-04-09 15:23:22 +08:00
Island
47e27d5d2b Merge branch 'fix/ble_mesh_bug_report_v5.3' into 'release/v5.3'
Fix/ble mesh bug report (v5.3)

See merge request espressif/esp-idf!46104
2026-04-09 11:20:30 +08:00
armando
56e0dc6f02 fix(mmu): fixed drom/irom reservation bus cap search logic 2026-04-09 11:04:24 +08:00
Shu Chen
2d4c022a88 Merge branch 'bugfix/fix_ot_ci_testcases_v5.3' into 'release/v5.3'
ci: improve BR host related test cases (v5.3)

See merge request espressif/esp-idf!47264
2026-04-09 02:36:41 +00:00
morris
8ec55e6867 Merge branch 'fix/usb_iad_length_backport_v5.3' into 'release/v5.3'
fix(usb/host): Fix incorrect IAD descriptor length (backport v5.3)

See merge request espressif/esp-idf!47375
2026-04-08 21:15:18 +08:00
Jin Cheng
b40629ed55 fix(bt/bluedroid): moved L2CAP length check into start packets only 2026-04-08 20:42:17 +08:00
Jon Gilmore
54d5714190 fix(bt/bluedroid): fix ACL reassembly dropping valid continuation fragments
The minimum length check in `reassemble_and_dispatch()` applied the START packet minimum (`HCI_ACL_PREAMBLE_SIZE + L2CAP_LENGTH_SIZE` = 8 bytes) to **all** ACL packets, including continuation fragments. Continuation fragments only carry the 4-byte ACL preamble (handle + length) with no L2CAP header, so small but valid continuations (5-7 bytes) were incorrectly rejected as "too short."

This caused the first L2CAP PDU in a rapid burst of BLE GATT indications to be silently dropped. The partial reassembly was orphaned, then discarded when the next indication's START fragment arrived, producing:

```
E BT_HCI: ACL packet too short (len=5)
W BT_HCI: reassemble_and_dispatch found unfinished packet for handle with start packet. Dropping old.
```

Parse the ACL preamble first (requires only 4 bytes) to determine the boundary flag, then apply the L2CAP length check only to START packets. Continuation packets are now accepted with the correct minimum of `HCI_ACL_PREAMBLE_SIZE` (4 bytes).

- ESP32-S3 connected to a BLE peripheral that fragments indications at 40 bytes per L2CAP PDU
- Peripheral sends 8+ indications within ~200ms (burst of state changes)
- The final continuation fragment of the first indication is small (5-6 bytes after type stripping)
- 100% reproducible on every burst; confirmed on ESP-IDF 5.5.3, 5.5.4, and 6.0.0

Verified on ESP32-S3 with a Sub-Zero wall oven (SO3050PESP, firmware 8.5):
- **Before fix:** First indication in every burst lost (ACL reassembly failure)
- **After fix:** All indications in burst delivered correctly, including when the final continuation fragment is 5-6 bytes

Closes https://github.com/espressif/esp-idf/issues/18414
2026-04-08 20:42:17 +08:00
Liu Linyan
a657c4e132 fix(ble_mesh): Miscellaneous bugfixes according to our internal bug report 2026-04-08 20:02:55 +08:00
Tomas Rezucha
216c6d2ff6 fix(usb/host): Fix incorrect IAD descriptor length 2026-04-08 12:56:21 +02:00
Shu Chen
eeae3ab2fa Merge branch 'feat/update_ot_jan2026_v5.3' into 'release/v5.3'
feat(openthread): update OT to 9b887f6bd (v5.3)

See merge request espressif/esp-idf!46761
2026-04-08 09:42:51 +00:00
Wang Meng Yang
9f53b38c4c Merge branch 'bugfix/btm_sec_free_dev_v5.3' into 'release/v5.3'
fix(bt): avoid deleting device record on partial transport cleanup(v5.3)

See merge request espressif/esp-idf!47309
2026-04-08 14:51:44 +08:00