Commit Graph

45505 Commits

Author SHA1 Message Date
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
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
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 Jian
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 Jian
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
Shu Chen
a34f9d02ce Merge branch 'feat/seperate_ot_citest_tags_v5.4' into 'release/v5.4'
ci: seperate openthread test cases (v5.4)

See merge request espressif/esp-idf!50064
2026-06-26 08:21:28 +00:00
yiwenxiu
8f8e3cbda0 ci: seperate openthread test cases 2026-06-26 15:01:12 +08:00
Sumeet Singh
384ebee8d9 fix(nimble): Add npl locks to avoid race condition (v5.4) 2026-06-26 12:26:50 +05:30
Jiang Jiang Jian
2a082e4815 Merge branch 'bugfix/ai_review_hfp_v5.4' into 'release/v5.4'
fix(bt): Fix the critical issues related to HFP from AI review report (v5.4)

See merge request espressif/esp-idf!50009
2026-06-26 14:08:19 +08:00
Jiang Jiang Jian
b9ce92430f Merge branch 'bugfix/ai_review_avrcp_v5.4' into 'release/v5.4'
fix(bt): Fix the critical and high issues related to AVRCP from AI review report (v5.4)

See merge request espressif/esp-idf!50022
2026-06-26 14:07:59 +08:00
zhangyanjiao
834c24c1fe fix(wifi): added start check when calling smartconfig stop 2026-06-26 11:45:03 +08:00
Jiang Jiang Jian
1be49e9b05 Merge branch 'bugfix/supp_pmk_cache_v5.4' into 'release/v5.4'
fix(wifi): Fix skipping usage of supp pmk caching for some cases

See merge request espressif/esp-idf!49879
2026-06-26 11:24:25 +08:00
C.S.M
2aa4cdf9a5 fix(jpeg): Fix the jpeg size might exceed the buffer size 2026-06-26 11:07:04 +08:00
Island
72dfea0762 Merge branch 'fix/reduce_acl_event_gaps_v5.4' into 'release/v5.4'
feat(ble): updated libble to 71d180a4 for esp32h4 and esp32s31 (5.4)

See merge request espressif/esp-idf!49590
2026-06-26 10:47:14 +08:00
Jin Chen
291d492ffb feat(ble): update ble power save sdkconfig on ESP32-c5
(cherry picked from commit 3fdabaedaa)

Co-authored-by: cjin <jinchen@espressif.com>
2026-06-26 10:08:51 +08:00
Jin Chen
439284b7d3 feat(ble): update ble power save sdkconfig on ESP32-C61
(cherry picked from commit e603f41667)

Co-authored-by: cjin <jinchen@espressif.com>
2026-06-26 10:08:51 +08:00
Zhi Wei Jian
c6bbef1dc5 feat(bt/ble_uart): Support ble uart more interfaces
- Added tagged event API (ble_uart_evt_t / on_event)
- Added bond management APIs
- Supported custom adv_data / scan_rsp_data
- Validate device_name length synchronously
- Added ble_uart_close_async() and EVT_CLOSED
- Added granular security config (security struct)
- Supported Passkey Entry and Numeric Comparison


(cherry picked from commit f1d9c994d2)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 09:07:56 +08:00
yangfeng
2184fae05b fix(bt): Fix the high issues related to AVRCP from AI review report
- SDP/registration: handle SDP record creation and discovery failures safely
- AVRC stack: fix packet checks, fragment leaks, response build, and compile guards
- BTC AVRCP: fix return codes, connection state, metadata parsing, and memory leaks
- AVCTP: fix event passing, L2CAP conflicts, TX queue leaks, and disconnect handling
- Example: remove TG RN capability setup before initialization
2026-06-25 14:58:17 +08:00
yangfeng
6c34f8140d fix(bt): Fix the critical issues related to AVRCP from AI review report
- recalculate len_left per attribute in avrc_bld_app_setting_text_rsp
- abort fragmented message reassembly when reassembly buffer alloc fails
2026-06-25 14:52:36 +08:00
yangfeng
8f4c343386 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:25:13 +08:00