Commit Graph
45523 Commits
Author SHA1 Message Date
yinqingzhao e0f5dd572c fix(wifi): optimizations of csa procedure and keep alive mechanism 2026-07-01 20:10:08 +08:00
yinqingzhao 3a5ddbc07b fix(itwt): fix flow id 0 cannot suspend in itwt example 2026-07-01 17:35:30 +08:00
yinqingzhao ddec495cf7 fix(wifi): fix scheduling issue when tasks have the same priority as the Wi-Fi task 2026-07-01 17:35:10 +08:00
yinqingzhao d51b8c26f4 fix(phy): fix still put multiple phy init date bin into flash when CONFIG_ESP_PHY_MULTIPLE_INIT_DATA_BIN_EMBED is enabled 2026-07-01 17:33:55 +08:00
yinqingzhao 302e636a13 feat(phy): support change multiple phy init bin path 2026-07-01 17:30:44 +08:00
Rahul Tank e2fcc9d55b Merge branch 'contrib/github_pr_18761_v5.4' into 'release/v5.4'
fix(nimble): initialize return value in LED characteristic access cal… (GitHub PR) (v5.4)

See merge request espressif/esp-idf!50153
2026-07-01 09:26:11 +05:30
Wang Meng Yang 1ce3dfb50c Merge branch 'bugfix/ai_review_btu_common_v5.4' into 'release/v5.4'
fix: Fix the critical issues of btu and bt_common from AI review report (v5.4)

See merge request espressif/esp-idf!50124
2026-06-30 19:24:27 +08:00
Wang Meng Yang d3d0963239 Merge branch 'bugfix/ai_review_a2dp_v5.4' into 'release/v5.4'
fix(bt): Fix the critical issues related to A2DP from AI review report (v5.4)

See merge request espressif/esp-idf!50130
2026-06-30 19:23:54 +08:00
morris 582e0d5c1d Merge branch 'refactor/jpeg_encoder_example_v5.4' into 'release/v5.4'
fix(jpeg): broken link in the example readme (v5.4)

See merge request espressif/esp-idf!50142
2026-06-30 16:18:05 +08:00
morris 8c731d258b doc(jpeg): fix broken link in the example readme 2026-06-30 13:49:22 +08:00
morris 091b0aecac Merge branch 'fix/spi_buslock_multi_dev_acq_release_issue_v5.4' into 'release/v5.4'
fix(esp_hw_support): fixed spi buslock multi dev acq/release logic issue (v5.4)

See merge request espressif/esp-idf!49172
2026-06-30 11:48:17 +08:00
morris ca4758cd00 Merge branch 'bugfix/sdio_slave_buffer_size_limit_v5.4' into 'release/v5.4'
fix(sdio_slave): align buffer size checks with descriptor limits (v5.4)

See merge request espressif/esp-idf!49901
2026-06-30 11:33:47 +08:00
Island 416cd10dd5 Merge branch 'bugfix/fix_bluedroid_static_random_conn_rpa_v5.4' into 'release/v5.4'
fix(ble/bluedroid): skip identity conversion for static random direct connect (5.4)

See merge request espressif/esp-idf!50083
2026-06-30 10:24:53 +08:00
Island 6d69f146be Merge branch 'bugfix/fix_bluedroid_rpa_whitelist_conn_v5.4' into 'release/v5.4'
Fix connection failure when using RPA with whitelist filtering(ESP32) (5.4)

See merge request espressif/esp-idf!50089
2026-06-30 10:23:14 +08:00
Shuai Wang 18ba3901d6 fix(nimble): initialize return value in LED characteristic access callback
When the NimBLE stack called this callback for a GATT Write Request, the
uninitialized stack value was interpreted as a non-zero GATT error code,
causing the stack to send BLE_ATT_ERR_UNLIKELY (0x0E) back to the client.
2026-06-29 17:30:21 +05:30
Island 06c8e4bef0 Merge branch 'feat/feat_enable_h21_light_sleep_v5.4' into 'release/v5.4'
fix(ble): disable flash pd config (5.4)

See merge request espressif/esp-idf!49214
2026-06-29 17:46:59 +08:00
Jiang Jiang Jian ba73879929 Merge branch 'bugfix/fix_smartconfig_stop_assert_issue_v5.4' into 'release/v5.4'
fix(wifi): added start check when calling smartconfig stop (v5.4)

See merge request espressif/esp-idf!49994
2026-06-29 16:27:45 +08:00
Jiang Jiang Jian e33c0635c4 Merge branch 'docs/add_semihosting_chapter_v5.4' into 'release/v5.4'
docs(jtag-debugging): add semihosting chapter (v5.4)

See merge request espressif/esp-idf!49890
2026-06-29 15:27:07 +08:00
Jiang Jiang Jian d4ae0eb41e Merge branch 'fix/disable_i2c_master_clk_while_hw_hop_processing_v5.4' into 'release/v5.4'
fix(esp_phy): check hw freq hop done before disabling common clock (v5.4)

See merge request espressif/esp-idf!48560
2026-06-29 15:12:07 +08:00
Jiang Jiang Jian f553992912 Merge branch 'feat/optimize_154_debug_v5.4' into 'release/v5.4'
feat(802.15.4): avoid missing abort reason for multievents in 154 debug (v5.4)

See merge request espressif/esp-idf!50113
2026-06-29 15:08:43 +08:00
yangfeng f164a75569 fix(bt): Fix the critical issues related to A2DP from AI review report
AVDT:
- Roll back CCB allocation when cmd/rsp queue creation fails
- Free media packet on invalid handle in AVDT_WriteReqOpt
- Zero-init timeout failure message before GETCAP callback
- Initialize lcid_tbl to 0xFF to avoid mapping to tc_tbl[0]
BTA/AVRCP:
- Use size_t for AVRC message copy buffer allocation
- Allocate before register in BTA_AvEnable
- Guard BTA_AvRegister callback when enable never completed
- Remove invalid free of inline Cover Art image_descriptor
A2DP BTC/API:
- Default g_a2dp_on_deinit to true before profile init
- Add shutdown state check in btc_a2dp_sink_shutdown
- Guard A2DP source timer against freed dynamic local param
2026-06-29 15:06:38 +08:00
yangfeng 3437c34c17 fix: Fix the critical issues of btu and bt_common from AI review report
- advance connect queue on synchronous connect_cb failure
- lock bta_alarm_hash_map in all BTA timer APIs
- free controller params after stack disable; cleanup on init fail
- handle BTE_InitStack failure and signal init future
- validate HCI remote name event length before parse
- drop stale L2CAP quick-timer alarm events
2026-06-29 14:49:19 +08:00
cjin ed4965a39c fix(ble): remove chip id macro for ble sample codes 2026-06-29 14:22:29 +08:00
Rahul Tank 5770e5bb97 Merge branch 'bugfix/fix_gatt_crash_v5.4' into 'release/v5.4'
fix(nimble): Add npl locks to avoid race condition (v5.4)

See merge request espressif/esp-idf!50068
2026-06-29 10:23:00 +05:30
morris 4c6e7502b7 Merge branch 'fix/jpeg_over_size_v5.4' into 'release/v5.4'
fix(jpeg): Fix the jpeg size might exceed the buffer size (backport v5.4)

See merge request espressif/esp-idf!50030
2026-06-29 11:02:49 +08:00
zhuanghang e2807d393e feat(802.15.4): avoid missing abort reason for multievents in 154 debug 2026-06-29 10:54:13 +08:00
zhanghaipeng fac1e10fb8 fix(bt): update ESP32 libbtdm_app.a to 4a0f94d5
- Fix connection failure when using RPA with whitelist filtering
- Fix disconnect with reason 0x08 during full scan
- Fix peer RPA resolution failure when advertising with a local identity address
2026-06-29 10:43:14 +08:00
Jin Cheng e2ddb61266 fix(bt/controller): fixed several BR/EDR controller bugs found by WVT regression tests on ESP32 2026-06-29 10:43:10 +08:00
Island 69e4299be6 Merge branch 'feat/add_ble_core_6x_feature_for_bluedroid_v5.4' into 'release/v5.4'
Feat/add ble core 6x feature for bluedroid (5.4)

See merge request espressif/esp-idf!50051
2026-06-29 10:31:46 +08:00
Island 75e9e4cdaf Merge branch 'feat/support_ble_uart_more_interfaces_v5.4' into 'release/v5.4'
feat(bt/ble_uart): Support ble uart more interfaces (5.4)

See merge request espressif/esp-idf!50045
2026-06-29 10:31:45 +08:00
cjin 73ce68e992 fix(ble): use default frequency for ble power save example 2026-06-29 10:30:49 +08:00
Zhi Wei Jian 1b340fe82b feat(ble/bluedroid): add CS Security Requirements host support (Core 6.3)
(cherry picked from commit 919622c01c)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 20:37:44 +08:00
Zhi Wei Jian aed8603a42 feat(ble/bluedroid): add LE UTP host support (Core 6.2)
(cherry picked from commit 3844e24207)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 20:37:44 +08:00
Zhi Wei JianandCursor 661e297e87 feat(ble/bluedroid): add Shorter Connection Intervals host support (Core 6.2)
Co-authored-by: Cursor <cursoragent@cursor.com>


(cherry picked from commit 2a8a96d650)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 20:37:44 +08:00
Zhi Wei Jian c72a639097 feat(ble/bluedroid): add LL Extended Feature Set host support (Core 6.0)
(cherry picked from commit d568f2f151)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 20:37:44 +08:00
Zhi Wei JianandCursor 4812d74f48 feat(ble/bluedroid): add Frame Space Update host support (Core 6.0)
Co-authored-by: Cursor <cursoragent@cursor.com>


(cherry picked from commit 5372ce03a3)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 20:37:44 +08:00
Zhi Wei Jian 5cff20ac8f feat(ble/bluedroid): add DBAF host support (Core 6.0)
(cherry picked from commit e20d3f0197)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 20:37:44 +08:00
Zhang Hai Peng ae071465e5 fix(ble/bluedroid): preserve HCI status on BLE 4.2 GAP failures
Return BTM_HCI_ERROR | hci_status from legacy BLE 4.2 GAP HCI command
paths instead of mapping failures to BTM_ILLEGAL_VALUE or
BTM_NO_RESOURCES. Add btm_ble_status_from_hci() helper and propagate
real status through scan start/stop completion callbacks.


(cherry picked from commit 47dd785a18)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:24:48 +08:00
Zhang Hai Peng 6d33df6d6b feat(ble/bluedroid): Optimize Bluedroid memory usage
- Delete unused device records (~356B each)


(cherry picked from commit 7d1c0e9a32)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:24:27 +08:00
Zhang Hai Peng d70c7c117b fix(ble/bluedroid): cap Read By Type response length at ATT maximum
Read By Type Response Length is one octet (max 255). When MTU was
large enough to return a long characteristic value in one pair, the
server wrote (UINT8)(value_len + 2) and overflowed (e.g. 513 -> 1),
so the client rejected the PDU as GATT_INVALID_PDU (0x04).

Cap server value to 253 bytes per pair, clamp the length byte, and
continue long reads via Read Blob when the capped size is returned.


(cherry picked from commit 97905afccc)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:24:09 +08:00
Zhang Hai Peng af18806c6a fix(ble/bluedroid): Fixed potential double Execute Write Response
(cherry picked from commit 0a93ccd3b3)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:23:52 +08:00
Zhang Hai Peng e3adb11acf fix(ble/bluedroid): preserve ATT error on prepare write completion
Skip prepare-write echo validation when the GATT stack reports a
non-success status. ATT Error Response carries no prepare-write echo
body (rsp_len=0), so the check incorrectly overwrote errors such as
GATT_INSUF_AUTHENTICATION (0x05) with GATT_INVALID_PDU (0x04).


(cherry picked from commit d5b9350d0f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:23:31 +08:00
Zhang Hai Peng 4e8432580a fix(ble/bluedroid): unblock sync HCI cmd on Command Status error
Release the BLE sync semaphore and record HCI status when a
synchronous command is rejected via Command Status, since no
Command Complete event follows.


(cherry picked from commit 29ae92f4ef)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:16:43 +08:00
Zhang Hai Peng 989a673a6f fix(ble/bluedroid): set REQ_WAITING before GATTC service-change rediscovery
When service change cancels in-progress discovery, bta_gattc_disc_cmpl()
re-triggers discovery without marking auto_update as REQ_WAITING. If a
client command is queued in p_q_cmd, bta_gattc_start_discover() refuses
to restart and the command is never dispatched.


(cherry picked from commit 13926bb9bc)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:16:25 +08:00
Zhang Hai Peng 91db334490 fix(ble/bluedroid): report conn param update failure for unknown BD_ADDR
Route unknown BD_ADDR and other immediate failures through the existing
need_cb path so ESP_GAP_BLE_UPDATE_CONN_PARAMS_EVT is always delivered.


(cherry picked from commit f9eaeb5e84)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-26 20:16:07 +08:00
Zhang Hai Peng ff8df1d5df 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:16:06 +08:00
Zhang Hai Peng 3017a78c1a 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:16:06 +08:00
Zhang Hai Peng 865a25c05a 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:47 +08:00
Zhang Hai Peng debbf336f4 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:28 +08:00
Rahul Tank 30a2a5a8b2 Merge branch 'bugfix/optimize_nimble_throughput_example_v5.4' into 'release/v5.4'
fix(nimble): Optimize Nimble throughput example for 1M/2M/S2/S8 (v5.4)

See merge request espressif/esp-idf!49983
2026-06-26 17:41:10 +05:30