Commit Graph
1961 Commits
Author SHA1 Message Date
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
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
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
Rahul Tank 0a4dbf5d72 Merge branch 'feat/throughput_l2cap_coc_v5.4' into 'release/v5.4'
Added l2cap_coc example for throughput (v5.4)

See merge request espressif/esp-idf!49741
2026-06-22 19:40:58 +05:30
Astha Verma 94863a7628 fix(nimble): Added l2cap_coc throughput examples 2026-06-22 11:41:14 +05:30
xiongweichao bc3456c66b fix(bt): skip unknown codecs when parsing AT+BAC
Peers may report custom or non-standard codec UUIDs in AT+BAC alongside
CVSD/mSBC. Returning BTA_AG_CODEC_NONE on the first unknown entry
discarded already-parsed standard codecs. Log unknown UUIDs and continue
parsing so negotiated capabilities still reflect supported codecs.
2026-06-22 11:13:42 +08:00
Island aa222369e7 Merge branch 'feat/ble-smp-multi-adv-static-random-address_v5.4' into 'release/v5.4'
feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses (5.4)

See merge request espressif/esp-idf!49787
2026-06-22 10:35:26 +08:00
Zhang Hai Peng 68e37183f1 feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses
(cherry picked from commit 7986e2faa8)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-18 10:24:49 +08:00
Rahul Tank 3637cfd331 fix(nimble): Gaurd ble_hs_log_mbuf/flat_buf against non-DEBUG log level 2026-06-16 16:29:09 +05:30
Island e155d443ad Merge branch 'fix/gattc-multi-app-notif-warning_v5.4' into 'release/v5.4'
fix(bt): Suppress gattc drop-notif warning for unregistered gatt_if (5.4)

See merge request espressif/esp-idf!49515
2026-06-15 15:08:20 +08:00
Wang Meng Yang c4f758d14d Merge branch 'bugfix/bbp_isses_v5.4' into 'release/v5.4'
Bugfix/bbp isses v5.4

See merge request espressif/esp-idf!49626
2026-06-15 12:57:48 +08:00
Island 2b89a2ec22 Merge branch 'bugfix/fix_bluedroid_ai_review_bugs_20260427_v5.4' into 'release/v5.4'
Bugfix/fix bluedroid ai review bugs 20260427 (5.4)

See merge request espressif/esp-idf!49539
2026-06-15 11:04:00 +08:00
Jin Cheng 852a3545d1 fix(bt/bluedroid): added buffer length check for OBEX APIs 2026-06-12 18:44:19 +08:00
Jin Cheng cc3478275e fix(bt/bluedroid): added buffer length check for HID Device data indication 2026-06-12 18:40:06 +08:00
Jin Cheng e7d62574f3 fix(bt/bluedroid): added validation for all SMP BR opcode lengths in smp_br_data_received 2026-06-12 18:40:06 +08:00
Jin Cheng 58b11e36bc fix(bt/bluedroid): fixed CTKD link key authentication downgrade in SC-Only mode 2026-06-12 18:40:06 +08:00
Jin Cheng d544e486c9 fix(bt/bluedroid): added buffer length check for HID host data indication 2026-06-12 18:40:06 +08:00
Jin Cheng 5731c63ece fix(bt/bluedroid): added buffer length check for L2CAP related functions 2026-06-12 18:40:06 +08:00
Sumeet Singh 1b468d2271 fix(nimble): Change remaining vars from Static to Dynamic (v5.4) 2026-06-11 13:35:52 +05:30
Zhi Wei Jian a70431cac3 fix(ble/bluedroid): fix HCI command and BTU robustness
(cherry picked from commit c9d13aaf64)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:49 +08:00
Zhi Wei Jian bb338161b9 fix(ble/bluedroid): fix CTE and ISO API validation
(cherry picked from commit 0c3c894b7d)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:49 +08:00
Zhi Wei Jian 9240e56d6a fix(ble/bluedroid): fix GATT server lifecycle and callbacks
(cherry picked from commit 54a1e31916)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:48 +08:00
Zhi Wei Jian bf48521f04 fix(ble/bluedroid): fix GATT client API parameter validation
(cherry picked from commit 653477c3e9)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:48 +08:00
Zhi Wei Jian 293b2d5398 fix(ble/bluedroid): fix GATT client cache and service discovery
(cherry picked from commit b3ff15ed31)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:47 +08:00
Zhi Wei Jian beca97bcae fix(ble/bluedroid): fix GAP BLE API parameter validation
(cherry picked from commit e3311c81c4)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:47 +08:00
Zhi Wei Jian 665b52b20f fix(ble/bluedroid): fix BLE bonding key storage validation
(cherry picked from commit 62cdd4ac38)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:46 +08:00
Zhang Hai Peng f0494247d4 fix(bt): Suppress gattc drop-notif warning for unregistered gatt_if
GATT stack broadcasts notifications to every client app, so unregistered
gatt_if instances were flooding logs even when another app had registered
the handle. Only warn when no client app registered for the handle.


(cherry picked from commit c18c8dc5e7)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-10 15:24:36 +08:00
Rahul Tank 92c8ec0450 fix(nimble): Deinit NimBLE stop event in host task 2026-06-09 16:34:43 +05:30
Jiang Jiang Jian 06cceb7dfe Merge branch 'bugfix/acl_conn_state_error_v5.4' into 'release/v5.4'
fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS (v5.4)

See merge request espressif/esp-idf!49315
2026-06-08 13:55:52 +08:00
yangfeng fe93a95f41 fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS
- Closes https://github.com/espressif/esp-idf/issues/18562
2026-06-05 14:18:03 +08:00
Rahul Tank f05856b5f5 fix(nimble): Fix for clang compilation issues 2026-06-05 10:58:46 +05:30
Island 636ef16079 Merge branch 'fix/ble_funcs_reset_default_enabled_v5.4' into 'release/v5.4'
fix(bt): Add default BLE controller funcs reset enable (5.4)

See merge request espressif/esp-idf!49136
2026-06-05 12:13:36 +08:00
ShenWeilong 4d869f725c fix(ble): won't add -Wno-unterminated-string-initialization for clang 2026-06-04 11:11:54 +08:00
ShenWeilong a8b57a6be0 change(bt): Separated bt/cmakelist to bt/controller/cmakelist and bt/porting/cmakelist 2026-06-04 11:11:54 +08:00
Zhang Hai Peng c501d559ed fix(ble/bluedroid): Propagate create_attr_tab BTA failures in inter_cb
(cherry picked from commit 4f8027da11)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-02 10:23:56 +08:00
Zhang Hai Peng 0f5eb923e8 fix(ble/bluedroid): Validate signed-write perm vs AUTH in attr table check
(cherry picked from commit fce3fa337a)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-02 10:23:56 +08:00
Zhang Hai Peng 34807808a1 docs(bt): clarify BLE TX power priority and granularity
(cherry picked from commit 4ab49f267b)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-02 10:23:31 +08:00
Zhang Hai Peng 80c19a0410 docs(bt): clarify GATT client auth_req may trigger SMP
(cherry picked from commit 43734e7d7b)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-02 10:23:31 +08:00
Zhang Hai Peng 9f8833a8b7 docs(bt/bluedroid): add usage note for esp_ble_get_cur_sendable_packets_num
(cherry picked from commit 27fc241384)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-02 10:23:30 +08:00
Zhang Hai Peng a91955074a feat(ble/bluedroid): add auto-setting for is_aux parameter in esp_ble_gattc_enh_open
(cherry picked from commit 1a9f2af505)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-02 10:23:30 +08:00
Zhang Hai Peng af5aa6538f doc(ble/bluedroid): clarify callback notes to avoid time-consuming ops
(cherry picked from commit 4590b4bb34)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-02 10:23:29 +08:00
Zhang Hai Peng 03bcaabb86 fix(ble/bluedroid): Ensure HIGH_DUTY_ADV_INTERVAL config is applied in stack
(cherry picked from commit 82c5c1fef3)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-02 10:23:29 +08:00
Rahul Tank 91b3098061 Merge branch 'bugfix/add_support_min_count_v5.4' into 'release/v5.4'
fix(nimble): Add support for shorter connection interval (v5.4)

See merge request espressif/esp-idf!48163
2026-06-01 14:36:50 +05:30
Jiang Jiang Jian 53703d474b Merge branch 'bugfix/fix_ble_coded_phy_rx_bug_v5.4' into 'release/v5.4'
fix(coex): fix ble coded phy rx issue when aborted by coex (v5.4)

See merge request espressif/esp-idf!48984
2026-05-29 10:30:37 +08:00
Rahul Tank 7c138d2c33 fix(nimble): Add support for shorter connection intervals 2026-05-28 15:55:38 +05:30
zhiweijian 373e55081b fix(ble/bluedroid): note LE Coded PHY impact on Wi-Fi coexistence in bluedroid GAP/GATT APIs 2026-05-28 10:31:05 +08:00
Rahul Tank f36d49255f fix(nimble): Fix compilation issues in Gatt SPS service 2026-05-27 17:17:19 +05:30
Rahul Tank 83da6bac0f Merge branch 'bugfix/fix_crash_due_to_error_print_v5.4' into 'release/v5.4'
fix(nimble): Update excessive logging prints in failure scenario (v5.4)

See merge request espressif/esp-idf!48870
2026-05-27 10:59:22 +05:30