Commit Graph

44563 Commits

Author SHA1 Message Date
Chen Chen
c3e0a746c8 fix(i2c_slave): filter out fake request for esp32
Closes https://github.com/espressif/esp-idf/issues/18268
2026-03-03 16:14:05 +08:00
Zhang Wen Xu
92b011198b Merge branch 'feat/ensure_txpower_index_changes_linearly_v5.4' into 'release/v5.4'
feat(802.15.4): ensure 154 txpower index changes linearly (v5.4)

See merge request espressif/esp-idf!46142
2026-03-03 03:20:33 +00:00
Zhang Wen Xu
67f11f6776 Merge branch 'feat/csl_power_consumption_v5.4' into 'release/v5.4'
feat(openthread): turn off rx earlier for csl if no packet received (v5.4)

See merge request espressif/esp-idf!46194
2026-03-03 03:20:09 +00:00
Zhang Wen Xu
d39302e2ae Merge branch 'fix/fix_an_ot_config_error_v5.4' into 'release/v5.4'
fix(openthread): fix a macro error (v5.4)

See merge request espressif/esp-idf!46080
2026-03-03 03:19:20 +00:00
Jiang Jiang Jian
113efa614f Merge branch 'bugfix/free_sae_commit_queue_v5.4' into 'release/v5.4'
fix(esp_wifi): Fix memory leak for sae commit queue (v5.4)

See merge request espressif/esp-idf!45668
2026-03-03 11:16:05 +08:00
Island
4075d829de Merge branch 'bugfix/fix_read_failed_if_smp_is_disabled_v5.4' into 'release/v5.4'
fix(ble/bluedroid): Fixed read or write failed if SMP is disabled (v5.4)

See merge request espressif/esp-idf!46164
2026-03-03 11:00:16 +08:00
Jiang Jiang Jian
a84ed7cf30 Merge branch 'fix/vfs_missing_va_end_v5.4' into 'release/v5.4'
fix(storage/vfs): Remove va_end leak in ioctl caused by early return in macro (v5.4)

See merge request espressif/esp-idf!45523
2026-03-03 10:54:19 +08:00
Jiang Jiang Jian
1d684df3af Merge branch 'feat/support_allocate_memory_from_psram_for_ot_v5.4' into 'release/v5.4'
feat(openthread): support openthread heap allocation from PSRAM (v5.4)

See merge request espressif/esp-idf!45598
2026-03-03 10:48:58 +08:00
Jiang Jiang Jian
fb9c37ee48 Merge branch 'refactor/spi_flash_private_v5.4' into 'release/v5.4'
fix(spi_flash): fixed overboundary check skipping of erase and write_encrypted (v5.4)

See merge request espressif/esp-idf!45664
2026-03-03 10:48:35 +08:00
morris
070d9cdb2f Merge branch 'bugfix/esp_idf_s3_deepsleep_dead_v5.4' into 'release/v5.4'
fix(hal): fix the issue of dual-core contention for RTC_CNTL regs (v5.4)

See merge request espressif/esp-idf!41622
2026-03-02 22:45:14 +08:00
Tan Yan Quan
028e8af5d4 feat(openthread): turn off rx earlier for csl if no packet received 2026-03-02 17:00:17 +08:00
hebinglin
1d2ffd5941 fix(hal): fix the issue of dual-core contention for RTC_CNTL regs 2026-03-02 12:22:15 +08:00
Island
b291d5c0e9 Merge branch 'fix/ble_mesh_nimble_connection_failed_v5.4' into 'release/v5.4'
fix(ble_mesh):fixed nimble connection failed (v5.4)

See merge request espressif/esp-idf!46116
2026-03-02 11:12:17 +08:00
Zhi Wei Jian
3b5a95b0ae fix(ble/bluedroid): Fixed read or write failed if SMP is disabled
(cherry picked from commit 124f275bdf839b855e6af0cfb9d197f11c9a766c)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-02 10:04:19 +08:00
zhuanghang
20924ff378 feat(802.15.4): get txpower table from phylib 2026-02-28 19:16:15 +08:00
Jiang Jiang Jian
901d054301 Merge branch 'bugfix/wps_finish_bug_v5.4' into 'release/v5.4'
fix(esp_wifi): Fix bug where wps_finish is called recursively (v5.4)

See merge request espressif/esp-idf!45662
2026-02-28 16:24:06 +08:00
Shreyas Sheth
7ef69d2b59 fix(esp_wifi): Fix memory leak for sae commit queue 2026-02-28 11:48:46 +08:00
Kapil Gupta
2bc5cb0ea5 fix(esp_wifi): Fix bug where wps_finish is called recursively 2026-02-28 11:48:37 +08:00
Jiang Jiang Jian
dc8e3f72b4 Merge branch 'fix/offchan_roc_unit_test_v5.4' into 'release/v5.4'
CI : Fix offchan tx and roc related unit test case(v5.4)

See merge request espressif/esp-idf!45475
2026-02-28 11:47:06 +08:00
Jiang Jiang Jian
b38c9e86ab Merge branch 'fix/fix_p4_lp_adc_unavailable_in_sleep_v5.4' into 'release/v5.4'
feat(esp_hw_support): support ESP_SLEEP_USE_ADC_TSEN_MONITOR_MODE for esp32p4 (v5.4)

See merge request espressif/esp-idf!45530
2026-02-28 11:46:30 +08:00
Jiang Jiang Jian
2ceca64af3 Merge branch 'fix/fix_i2c_modem_clock_ref_count_mismatch_v5.4' into 'release/v5.4'
fix: add reference count control for modem clock devices (v5.4)

See merge request espressif/esp-idf!45535
2026-02-28 11:46:11 +08:00
Jiang Jiang Jian
b6cd80f2f2 Merge branch 'bugfix/wps_disable_at_timeout_v5.4' into 'release/v5.4'
fix(wifi): Disable wps in eloop context during wps abort (v5.4)

See merge request espressif/esp-idf!45842
2026-02-28 11:45:45 +08:00
Jiang Jiang Jian
7fcb97ff35 Merge branch 'fix/fix_io_wakeup_issues_v5.4' into 'release/v5.4'
fix(esp_hw_support): make esp_deep_sleep_enable_gpio_wakeup available to PD_TOP lightsleep (v5.4)

See merge request espressif/esp-idf!45872
2026-02-28 11:45:23 +08:00
Jiang Jiang Jian
c241dbbaca Merge branch 'bugfix/eloop_mem_leak_v5.4' into 'release/v5.4'
fix(esp_wifi): Fix memory leak caused due to eloop (v5.4)

See merge request espressif/esp-idf!45904
2026-02-28 11:44:55 +08:00
morris
4c559da828 Merge branch 'feat/lcd_example_add_rd_v5.4' into 'release/v5.4'
docs(lcd): update rd pin description for i80_controller example (v5.4)

See merge request espressif/esp-idf!46109
2026-02-28 11:27:40 +08:00
Luo Xu
327bd13fa0 fix(ble_mesh):fixed nimble connection failed
(cherry picked from commit 2af193dac4)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-02-27 17:43:21 +08:00
Chen Chen
93fde65311 docs(lcd): update rd pin description for i80_controller example
Closes https://github.com/espressif/esp-idf/issues/18277
2026-02-27 16:24:04 +08:00
Island
5d83bd2106 Merge branch 'change/ble_update_lib_20260127_v5.4' into 'release/v5.4'
change(ble): [AUTO_MR] 20260127 - Update ESP BLE Controller Lib (v5.4)

See merge request espressif/esp-idf!45676
2026-02-27 15:30:05 +08:00
Mahavir Jain
d780a2e946 Merge branch 'bugfix/esp_local_ctrl_arg_check_v5.4' into 'release/v5.4'
fix(esp_local_ctrl): validate payload_case matches msg_type in command dispatcher (v5.4)

See merge request espressif/esp-idf!45926
2026-02-27 09:43:23 +05:30
Xu Si Yu
1930e527f4 fix(openthread): fix a macro error 2026-02-26 18:17:01 +08:00
Rahul Tank
c4010662c9 Merge branch 'bugfix/improve_nimble_examples_v5.4' into 'release/v5.4'
fix(nimble): Improve safety, fix bugs, and update docs across NimBLE examples (v5.4)

See merge request espressif/esp-idf!45975
2026-02-25 17:29:36 +05:30
morris
591dfac895 Merge branch 'bugfix/uart_tx_fifo_empty_threshold_v5.4' into 'release/v5.4'
fix(uart): tx write bytes fails to use non-default tx fifo empty threshold (v5.4)

See merge request espressif/esp-idf!45891
2026-02-25 16:11:06 +08:00
Rahul Tank
649740afe2 fix(nimble): Improve safety, fix bugs, and update docs across NimBLE examples
- Remove unused headers from examples
- Improve periodic adv/sync example functionality and readability
- Use ble_hs_id_infer_auto() instead of hardcoded BLE_OWN_ADDR_PUBLIC/RANDOM
- Add ble_hs_util_ensure_addr() calls in on_sync for proper address setup
- Use correct ext adv instance (0 instead of 1) in phy_prph, l2cap_coc, multi_conn
- Fix struct name: ble_gap_periodic_adv_enable_params -> ble_gap_periodic_adv_start_params
- Add CONFIG_BT_NIMBLE_GAP_SERVICE guards around ble_svc_gap_device_name_set
- Fix unsafe AD data parsing with bounds checks in central examples
- Fix UUID matching bugs (off-by-one loop condition and byte order) in
  phy_cent, htp_cent, and proximity_sensor_cent
- Fix ble_multi_conn_cent address type to use dynamic inference
- Remove contradictory sm_sc=0 after sm_sc=1 in ble_multi_adv
- Add CONFIG_BT_NIMBLE_EXT_ADV=y to ble_multi_adv sdkconfig defaults
- Check return values for ble_gap_set_host_feat, nimble_port_init
- Update tutorials and READMEs to match code changes
2026-02-25 13:02:58 +05:30
Rahul Tank
6e3a739678 Merge branch 'bugfix/fix_host_nimble_fixes_v5.4' into 'release/v5.4'
fix(nimble): Fix various issues for security/vulnerability in host (v5.4)

See merge request espressif/esp-idf!45993
2026-02-25 12:48:10 +05:30
Wang Meng Yang
6819bf02cf Merge branch 'bugfix/lc_not_wakeup_v5.4' into 'release/v5.4'
fix(ble): Fix restore write-back error caused by memory allocated in PSRAM(v5.4)

See merge request espressif/esp-idf!46002
2026-02-25 14:06:07 +08:00
Song Ruo Jing
e801bde973 fix(uart): Avoid division by zero error when calling uart_get_baudrate
If uart_driver_install is not called before uart_get_baudrate,
the UART port may not be ready. In such cases, the register values
cannot be read out, leading to a division by zero error in uart_ll_get_baudrate.
This commit adds a check to ensure the UART port is enabled before
attempting to read its registers.

Closes https://github.com/espressif/esp-idf/issues/17513
2026-02-25 11:31:44 +08:00
Song Ruo Jing
b1bb83df2b fix(uart): tx write bytes fails to use non-default tx fifo empty threshold
Users may see tx write bytes fails to feed data into tx fifo in time
even if the tx fifo empty threshold has been set to a large value.
2026-02-25 11:31:44 +08:00
Rahul Tank
68382f6a1f fix(nimble): Fix various issues for security/vulnerability in host 2026-02-24 15:57:31 +05:30
Mahavir Jain
88aeae0f63 Merge branch 'contrib/github_pr_18241_v5.4' into 'release/v5.4'
fix(esp_https_server): SSL context leak when HTTPS server fails to start (GitHub PR) (v5.4)

See merge request espressif/esp-idf!45990
2026-02-24 13:35:47 +05:30
morris
6ee1f8d69b Merge branch 'fix/fix_i80lcd_stuck_on_high_pckl_v5.4' into 'release/v5.4'
fix(i80_lcd): fix dma stuck with high pclk (v5.4)

See merge request espressif/esp-idf!45855
2026-02-24 11:26:30 +08:00
xiongweichao
c9ea57b795 fix(ble): Fix restore write-back error caused by memory allocated in PSRAM 2026-02-24 10:30:34 +08:00
David Slay
2ce0aaf6e1 fix(esp_https_server): SSL context leak when HTTPS server fails to start 2026-02-23 17:17:54 +08:00
Rahul Tank
223de94067 Merge branch 'bugfix/fix_nimble_issues_11022026_v5.4' into 'release/v5.4'
fix(nimble): Bugfix/fix nimble issues 11022026 (v5.4)

See merge request espressif/esp-idf!45909
2026-02-18 09:23:43 +05:30
Mahavir Jain
f0706727a4 docs(protocomm): recommend using security2 scheme for production purpose 2026-02-17 11:47:24 +05:30
Mahavir Jain
6111a7825e fix(esp_local_ctrl): validate payload_case matches msg_type in command dispatcher
The command dispatcher routed handlers based solely on msg_type without
verifying that the protobuf payload_case field matched. A crafted message
with mismatched msg_type and payload_case could cause type confusion,
leading to an out-of-bounds read or NULL pointer dereference.

Add expected_payload_case to the command table and validate it in the
dispatcher before invoking any handler.

Please note that this issue was applicable for authenticated clients
only (with security1/2 scheme) and hence the impact is on lower side.
2026-02-17 11:47:24 +05:30
Astha Verma
c877120167 fix(nimble): Fix memory leak when enabling gatt caching 2026-02-16 11:20:39 +05:30
Rahul Tank
873323e242 fix(nimble): Fix tinycrypt compilation issues when enabled 2026-02-16 11:20:01 +05:30
Rahul Tank
9c97056612 fix(nimble): Fix to not send legacy command incorrectly 2026-02-16 11:19:46 +05:30
Rahul Tank
bea3933381 fix(nimble): Handle scenario of simultaneous connect 2026-02-16 11:19:25 +05:30
Rahul Tank
a759a4b476 fix(nimble): Add support to allow multiple ext adv 2026-02-16 11:18:26 +05:30