Commit Graph

29433 Commits

Author SHA1 Message Date
Wang Meng Yang
97b1c64b67 Merge branch 'bugfix/ai_review_a2dp_v5.3' into 'release/v5.3'
fix(bt): Fix the critical issues related to A2DP from AI review report (v5.3)

See merge request espressif/esp-idf!50131
2026-06-30 19:23:18 +08:00
Island
c43788173b Merge branch 'bugfix/fix_bluedroid_static_random_conn_rpa_v5.3' into 'release/v5.3'
fix(ble/bluedroid): skip identity conversion for static random direct connect (5.3)

See merge request espressif/esp-idf!50082
2026-06-30 10:25:01 +08:00
Island
90491f8457 Merge branch 'bugfix/fix_bluedroid_rpa_whitelist_conn_v5.3' into 'release/v5.3'
Fix connection failure when using RPA with whitelist filtering(ESP32) (5.3)

See merge request espressif/esp-idf!50088
2026-06-30 10:23:56 +08:00
Jiang Jiang Jian
de77e11ec6 Merge branch 'feat/optimize_154_debug_v5.3' into 'release/v5.3'
feat(802.15.4): avoid missing abort reason for multievents in 154 debug (v5.3)

See merge request espressif/esp-idf!50114
2026-06-29 16:50:13 +08:00
Jiang Jiang Jian
a750c9ec6a Merge branch 'fix/lp_uart_data_bits_v5.3' into 'release/v5.3'
fix(ulp/lp_core): fix LP UART data_bits validation and add full word-length test coverage (v5.3)

See merge request espressif/esp-idf!48034
2026-06-29 15:22:31 +08:00
Jiang Jiang Jian
195f0487e3 Merge branch 'fix/freertos_delete_with_caps_smp_race_v5.3' into 'release/v5.3'
fix(freertos): close vTaskDeleteWithCaps cross-core delete race on SMP preview kernel (v5.3)

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

See merge request espressif/esp-idf!48563
2026-06-29 15:12:34 +08:00
yangfeng
a099dd706e 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
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:12:33 +08:00
Rahul Tank
e9604aa3b0 Merge branch 'bugfix/fix_gatt_crash_v5.3' into 'release/v5.3'
fix(nimble): Add npl locks to avoid race condition (v5.3)

See merge request espressif/esp-idf!50069
2026-06-29 10:21:13 +05:30
zhuanghang
56a2d897cb feat(802.15.4): avoid missing abort reason for multievents in 154 debug 2026-06-29 10:54:20 +08:00
zhanghaipeng
f582365c84 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:57 +08:00
Jin Cheng
dc65ed2a64 fix(bt/controller): fixed several BR/EDR controller bugs found by WVT regression tests on ESP32 2026-06-29 10:43:54 +08:00
Island
dc5b776305 Merge branch 'feat/add_ble_core_6x_feature_for_bluedroid_v5.3' into 'release/v5.3'
Feat/add ble core 6x feature for bluedroid (5.3)

See merge request espressif/esp-idf!50050
2026-06-29 10:31:45 +08:00
Zhang Hai Peng
1824570f90 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:46 +08:00
Zhang Hai Peng
b416e7f61b 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:24 +08:00
Zhang Hai Peng
1130ad21f8 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:07 +08:00
Zhang Hai Peng
6ac3fd1a18 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:50 +08:00
Zhang Hai Peng
7400a89196 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:28 +08:00
Zhang Hai Peng
ee46100f53 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:40 +08:00
Zhang Hai Peng
47d267a365 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:22 +08:00
Zhang Hai Peng
fd6a76d00d 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:03 +08:00
Zhang Hai Peng
f052415e45 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:03 +08:00
Zhang Hai Peng
2888b48bea 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:02 +08:00
Zhang Hai Peng
96bac63edb 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:45 +08:00
Zhang Hai Peng
d9300e1364 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:26 +08:00
Jiang Jiang Jian
9f37971f8d Merge branch 'bugfix/fix_some_wifi_bugs_260625_v5.3' into 'release/v5.3'
fix(wifi): fix some wifi bugs 260625 backport v5.3

See merge request espressif/esp-idf!50040
2026-06-26 16:45:21 +08:00
Sumeet Singh
959fa33438 fix(nimble): Add npl locks to avoid race condition (v5.3) 2026-06-26 12:29:36 +05:30
Jiang Jiang Jian
1874d5ba0d Merge branch 'bugfix/ai_review_hfp_v5.3' into 'release/v5.3'
fix(bt): Fix the critical issues related to HFP from AI review report (v5.3)

See merge request espressif/esp-idf!50010
2026-06-26 14:06:41 +08:00
morris
dc5bff51ca Merge branch 'fix/adc_monitor_error_on_ch8_9_on_s3_v5.3' into 'release/v5.3'
Fix ADC Continuous Monitor Callback Failure for ADC1 Channels 8/9 on ESP32-S3 (v5.3)

See merge request espressif/esp-idf!49508
2026-06-26 11:13:31 +08:00
Island
bdbe3ee28e Merge branch 'fix/reduce_acl_event_gaps_v5.3' into 'release/v5.3'
feat(ble): updated libble to 71d180a4 for esp32h4 and esp32s31 (5.3)

See merge request espressif/esp-idf!49589
2026-06-26 10:47:12 +08:00
Zhi Wei Jian
a842d54f4d 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 09:08:17 +08:00
Zhi Wei Jian
ea68f1efd1 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 09:08:16 +08:00
Zhi Wei Jian
90dbfc2777 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 09:08:16 +08:00
Zhi Wei Jian
22840d0259 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 09:08:15 +08:00
Zhi Wei Jian
03f7c04406 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 09:08:15 +08:00
Zhi Wei Jian
1d5d127881 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 09:08:14 +08:00
liuning
3dfdc82bf0 fix(pm): fix coexist force wake behaviour with offchannel to optimize performance at returning home channel 2026-06-25 17:03:29 +08:00
sibeibei
d4ee734365 fix(wifi): IRAM for regdma path used in modem pd light sleep 2026-06-25 16:55:00 +08:00
gaoxu
9bab3a823a ci(adc): remove ADC runner and move ADC tests to generic 2026-06-25 16:54:15 +08:00
yangfeng
1b62ff0703 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:28:17 +08:00
Euripedes Rocha Filho
c98139f38d 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 15:11:13 +02:00
Island
7a86eb2966 Merge branch 'feat/spi_log_qa_frame_check_v5.3' into 'release/v5.3'
feat(ble_log): add FINAL_STAT session-end frame and flush hook before controller restart (5.3)

See merge request espressif/esp-idf!49955
2026-06-24 19:51:12 +08:00
Xu Si Yu
54a63358cb fix(openthread): replace all malloc calls with calloc to avoid hidden uninitialized memory issues 2026-06-24 16:15:33 +08:00
Guo Zifan
0a2e3d0b0c 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:24 +08:00
Island
0ebc9b6e69 Merge branch 'change/ble_update_lib_20260612_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20260612 - Update ESP BLE Controller Lib (5.3)

See merge request espressif/esp-idf!49607
2026-06-24 10:45:22 +08:00
wanckl
3dfe2bdecc fix(ci): twai test close board to fixed ci jobs pullotion 2026-06-23 16:07:04 +08:00
igor.udot
3350c3207d ci: twai runner setup 2026-06-23 16:06:51 +08:00
Mahavir Jain
7e04a1b9c8 Merge branch 'fix/disable_secure_boot_v2_ecdsa_v5.3' into 'release/v5.3'
Fix/disable secure boot v2 ecdsa (v5.3)

See merge request espressif/esp-idf!49474
2026-06-23 11:10:38 +05:30
morris
3a1859ece7 Merge branch 'bugfix/sdio_slave_buffer_size_limit_v5.3' into 'release/v5.3'
fix(sdio_slave): align buffer size checks with descriptor limits (v5.3)

See merge request espressif/esp-idf!49902
2026-06-23 11:45:29 +08:00
Jiang Jiang Jian
8cf2c2c738 Merge branch 'fix-malloc_pm_lock_in_internal_mem_v5.3' into 'release/v5.3'
fix(esp_pm): malloc pm_lock in internal mem (v5.3)

See merge request espressif/esp-idf!49686
2026-06-23 11:00:45 +08:00