Commit Graph

5900 Commits

Author SHA1 Message Date
Luo Xu
3821e89347 fix(ble_mesh): fixed BLE-Mesh NimBLE extended-adv reassembly buffer overflow on COMPLETE fragment
(cherry picked from commit 1b22467f63)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:44:34 +08:00
Luo Xu
be19bf858d fix(ble_mesh): fixed BLE-Mesh GATTS read-callback error
(cherry picked from commit 00adfb3cbc)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:44:34 +08:00
Jiang Jiang Jian
76f1151d72 Merge branch 'fix/ble-log-64-bit-io-setup-support_v6.1' into 'release/v6.1'
fix(ble_log): use BIT64 over BIT to support 64-bit IO setup (6.1)

See merge request espressif/esp-idf!50332
2026-07-06 15:51:27 +08:00
Rahul Tank
e44969a390 fix(nimble): Fix ble_chan_sound_reflector compilation issue 2026-07-06 07:52:43 +05:30
Jiang Jiang Jian
07c6d5eacf Merge branch 'change/ble_update_lib_20260610_v6.1' into 'release/v6.1'
change(ble): [AUTO_MR] 20260610 - Update ESP BLE Controller Lib (6.1)

See merge request espressif/esp-idf!50227
2026-07-03 21:52:31 +08:00
Jiang Jiang Jian
d35c053e92 Merge branch 'idf/ble_iso_sec_fixes_v6.1' into 'release/v6.1'
Idf/ble iso sec fixes (v6.1)

See merge request espressif/esp-idf!50231
2026-07-03 20:30:21 +08:00
Jiang Jiang Jian
25c546c1a8 Merge branch 'bugfix/bbp_issues_v6.1' into 'release/v6.1'
Bugfix/bbp issues v6.1

See merge request espressif/esp-idf!50188
2026-07-03 20:29:55 +08:00
Jiang Jiang Jian
7089584a34 Merge branch 'idf/ble_audio_4.4.1_v6.1' into 'release/v6.1'
feat(ble_audio): Support Zephyr LE Audio v4.4.1 (v6.1)

See merge request espressif/esp-idf!50187
2026-07-03 20:28:32 +08:00
Jiang Jiang Jian
901b57c86c Merge branch 'feature/added_qa_related_vs_cmd_v6.1' into 'release/v6.1'
feat(ble): Updated libble to 6bbfb64 on ESP32-S31 and ESP32-H4 (6.1)

See merge request espressif/esp-idf!50270
2026-07-03 20:02:49 +08:00
Jin Chen
e439903965 fix(ble): fixed reconfig uart pin build error on ESP32-S31
(cherry picked from commit e92c6f7c4c)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-07-03 14:35:46 +08:00
Zhou Xiao
4432f11023 fix(ble_log): use BIT64 over BIT to support 64-bit IO setup
(cherry picked from commit a2876d304e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-03 12:05:01 +08:00
ShenWeilong
ef702ca257 feat(ble): Updated libble to 6bbfb64 on ESP32-S31 and ESP32-H4 2026-07-01 21:06:50 +08:00
Sudeep Mohanty
93b5785aba fix(bt): declare esp_event as a private requirement
bt sources include esp_wifi_types.h via esp_blufi_api.h, which
transitively includes esp_event_base.h from the esp_event component.
2026-07-01 19:59:05 +08:00
Liu Linyan
ec4aa2fa75 fix(ble_iso): Fix null dereference may happened during BIG/CIG creation 2026-07-01 11:59:45 +08:00
Linyan Liu
5aa4edacdb fix(ble_iso): Fix ISO SDU header pulled without minimum length check 2026-07-01 11:52:34 +08:00
Zhou Xiao
89a4da5083 change(ble): [AUTO_MR] Update lib_esp32c6 to a6519790
(cherry picked from commit 226a0483b1)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-01 10:35:37 +08:00
Zhou Xiao
9af79c18e3 change(ble): [AUTO_MR] Update lib_esp32c5 to a6519790
(cherry picked from commit a43358587c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-01 10:35:37 +08:00
Zhou Xiao
4e625df6ec change(ble): [AUTO_MR] Update lib_esp32h2 to a6519790
(cherry picked from commit 8a744e8e93)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-01 10:35:36 +08:00
Jiang Jiang Jian
f71890ccec Merge branch 'bugfix/ai_review_btu_common_v6.1' into 'release/v6.1'
fix: Fix the critical issues of btu and bt_common from AI review report (v6.1)

See merge request espressif/esp-idf!50121
2026-06-30 17:37:34 +08:00
luoxu
942d513c27 fix(ble_mesh): Disable warning logging when advertising packets are discarded 2026-06-30 16:59:58 +08:00
Liu Linyan
9b415a7d1f feat(ble_audio): Support Zephyr LE Audio v4.4.1 2026-06-30 15:17:24 +08:00
Jin Cheng
85d56bcd26 fix(bt/bluedroid): fixed possible OOB write in btc_a2dp_sink_handle_inc_media 2026-06-30 14:42:00 +08:00
Jin Cheng
1f3f53d226 fix(bt/bluedroid): fixed possible OOB read/write in process_l2cap_cmd 2026-06-30 14:41:52 +08:00
Jiang Jiang Jian
24d35f4c04 Merge branch 'bugfix/ai_review_a2dp_v6.1' into 'release/v6.1'
fix(bt): Fix the critical issues related to A2DP from AI review report (v6.1)

See merge request espressif/esp-idf!50127
2026-06-30 14:24:19 +08:00
Jiang Jiang Jian
8264c9589c Merge branch 'bugfix/fix_bluedroid_rpa_whitelist_conn_v6.1' into 'release/v6.1'
Fix connection failure when using RPA with whitelist filtering(ESP32) (6.1)

See merge request espressif/esp-idf!50092
2026-06-30 14:23:29 +08:00
Jiang Jiang Jian
b0cd9819ee Merge branch 'bugfix/fix_bluedroid_static_random_conn_rpa_v6.1' into 'release/v6.1'
fix(ble/bluedroid): skip identity conversion for static random direct connect (6.1)

See merge request espressif/esp-idf!50086
2026-06-30 14:23:18 +08:00
Jiang Jiang Jian
6e1ac00adb Merge branch 'feat/add_ble_core_6x_feature_for_bluedroid_v6.1' into 'release/v6.1'
Feat/add ble core 6x feature for bluedroid (6.1)

See merge request espressif/esp-idf!50054
2026-06-30 14:21:41 +08:00
Jiang Jiang Jian
7219860f52 Merge branch 'bugfix/ai_review_avrcp_v6.1' into 'release/v6.1'
fix(bt): Fix the critical and high issues related to AVRCP from AI review report (v6.1)

See merge request espressif/esp-idf!50019
2026-06-30 14:20:16 +08:00
Jiang Jiang Jian
e2a7c8b36c Merge branch 'bugfix/ai_review_hfp_v6.1' into 'release/v6.1'
fix(bt): Fix the critical issues related to HFP from AI review report (v6.1)

See merge request espressif/esp-idf!50006
2026-06-30 14:19:53 +08:00
Jiang Jiang Jian
74402d2c43 Merge branch 'feat/spi_log_qa_frame_check_v6.1' into 'release/v6.1'
feat(ble_log): add FINAL_STAT session-end frame and flush hook before controller restart (6.1)

See merge request espressif/esp-idf!49959
2026-06-30 14:18:54 +08:00
Jiang Jiang Jian
6d69cde133 Merge branch 'bugfix/ag_unknown_codec_v6.1' into 'release/v6.1'
fix(bt): skip unknown codecs when parsing AT+BAC(v6.1)

See merge request espressif/esp-idf!49839
2026-06-30 14:16:32 +08:00
Jiang Jiang Jian
9d36edbe30 Merge branch 'feat/ble-smp-multi-adv-static-random-address_v6.1' into 'release/v6.1'
feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses (6.1)

See merge request espressif/esp-idf!49790
2026-06-30 14:15:32 +08:00
Jiang Jiang Jian
03f0364c0c Merge branch 'idf/ble_audio_mcc_fixes_v6.1' into 'release/v6.1'
fix(ble_audio): Fix mcc read may enter BUSY state while multiple notifications are received (v6.1)

See merge request espressif/esp-idf!49776
2026-06-30 14:15:10 +08:00
Jiang Jiang Jian
f1a8184bfa Merge branch 'bugfix/bbp_isses_v6.1' into 'release/v6.1'
Bugfix/bbp isses v6.1

See merge request espressif/esp-idf!49623
2026-06-30 14:11:03 +08:00
Jiang Jiang Jian
2841ad761e Merge branch 'fix/add_remaining_vars_to_heap_v6.1' into 'release/v6.1'
fix(nimble): Change remaining vars from Static to Dynamic (v6.1)

See merge request espressif/esp-idf!49279
2026-06-30 14:02:41 +08:00
yangfeng
9517a7b93b 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
- Reject source audio send when A2DP is deiniting
- Add shutdown state check in btc_a2dp_sink_shutdown
- Guard A2DP source timer against freed dynamic local param
2026-06-29 14:57:22 +08:00
yangfeng
57f28af482 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:45:46 +08:00
zhanghaipeng
c69d150565 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:38:51 +08:00
Jin Cheng
e44fcbd35f fix(bt/controller): fixed several BR/EDR controller bugs found by WVT regression tests on ESP32 2026-06-29 10:38:34 +08:00
Zhang Hai Peng
59a740ca12 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:54 +08:00
Zhang Hai Peng
e9fce74445 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:34 +08:00
Zhang Hai Peng
7b2b31bb0d 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:16 +08:00
Zhang Hai Peng
54e7b74cc1 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:59 +08:00
Zhang Hai Peng
f00c216ce2 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:38 +08:00
Zhang Hai Peng
4bf3d52183 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:49 +08:00
Zhang Hai Peng
fab51c7925 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:32 +08:00
Zhang Hai Peng
50c719356c 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:14 +08:00
Zhang Hai Peng
95c5099ed9 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:14 +08:00
Zhang Hai Peng
feb1da9239 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:13 +08:00
Zhang Hai Peng
003a4007e5 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:54 +08:00