Commit Graph
104 Commits
Author SHA1 Message Date
Zhi Wei Jian 49cddfd411 feat(ble/bluedroid): Support PAWR connection event
(cherry picked from commit 7da7fa42ac)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-08-03 15:25:53 +08:00
Wang Meng Yang 7bf2026549 Merge branch 'bugfix/bredr_critical_bugs_v5.5' into 'release/v5.5'
fix(bt/bluedroid): fixed issues from AI review in GAP, SPP, HID, L2CAP and HCI (v5.5)

See merge request espressif/esp-idf!51079
2026-07-23 16:45:34 +08:00
Jin Cheng b7ccc6e9ed fix(bt/bluedroid): fixed issues from AI review in GAP, SPP, HID, L2CAP and HCI 2026-07-23 07:50:26 +08:00
Zhi Wei Jian 7ab919a76e feat(ble/bluedroid): Support bluedroid dual identity
(cherry picked from commit 2358786647)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-07-21 10:32:11 +08:00
Zhi Wei Jian 932da59cb4 fix(ble/bluedroid): fix direct-connect cleanup and adv bounds
(cherry picked from commit 82e71c1767)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-07-21 10:28:07 +08:00
Island 0196f65f01 Merge branch 'bugfix/fix_bluedroid_static_random_conn_rpa_v5.5' into 'release/v5.5'
fix(ble/bluedroid): skip identity conversion for static random direct connect (5.5)

See merge request espressif/esp-idf!50084
2026-07-20 21:39:24 +08:00
Zhang Hai Peng 01d1dd63bf 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-07-15 15:48:46 +08:00
Zhi Wei Jian c7fc14a076 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:26 +08:00
Zhi Wei JianandCursor 28c67947f4 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:25 +08:00
Zhi Wei Jian acfed7c42d 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:25 +08:00
Zhi Wei JianandCursor 05c7547e6c 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:24 +08:00
Zhi Wei Jian f251492943 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:24 +08:00
Zhang Hai Peng db30b36157 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:51 +08:00
Zhi Wei Jian 6c6c698524 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:52 +08:00
Zhi Wei Jian dfd6fcf1cc fix(ble/bluedroid): Fixed privacy callback triggering multiple times
(cherry picked from commit 5272b7e75b)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-04-03 14:02:44 +08:00
zhiweijian 325aa02181 fix(ble/bluedroid): optimize bluedroid host and fix GAP, memory, status and BTM API issues
- return HCI_ERR_MEMORY_FULL on cmd buffer alloc failure
- remove legacy adv/scan semaphores and mutex
- Use the same legacy gap callback instead of each independent legacy gap event callback
2026-03-31 14:29:24 +08:00
Zhi Wei Jian b5da52989c fix(ble/bluedroid): BLE GAP/ACL/ISO/SCO null checks, evt_len and resource handling
- btm_acl: malloc/list_append failure handling, remove/memset order in btm_acl_removed
- btm_ble: remove incorrect sec_flags in SMP_OOB/NC/SC_OOB fall-through
- btm_ble_5_gap: btm_ble_hci_status_to_str unreachable return,
  BTM_BleSetExtendedAdvParams/BleStartExtAdv leak and bounds
- btm_ble_addr: fix indent in btm_find_dev_by_identity_addr
- btm_ble_gap: null check p_service_data, pass evt_len to btm_ble_process_adv_pkt,
  bounds in process_adv_pkt
- btm_ble_iso: align param types with declaration
- btm_ble_privacy: handle BTM_BLE_IRK_LIST_INVALID_INDEX in update_resolving_list,
  comment fixes
- btm_devctl: fix btm_vsc_complete param order/type
- btm_sco: add evt_len to btm_sco_process_num_completed_pkts for bounds check
- btm_ble_int.h/btm_int.h: add evt_len to process_adv_pkt and
  process_num_completed_pkts declarations


(cherry picked from commit 65b2cb2728)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-31 14:29:24 +08:00
Zhi Wei Jian 34dd906ddd fix(ble/bluedroid): fix GAP, advertising and security issues in BTM layer
- Fix adv state restore and reset if start/stop failed
- Fix periodic adv v2 event without PAWR feature enabled
- Fix periodic adv sync establish skip handling
- Fix resolving list max_size validation
- Fix RPA addr_type update after host-side resolution
- Fix pairing_state reset if p_dev_rec alloc failed
- Fix ISO cis_cnt limit and ext adv parameter check
- Try to delete smp keys even if not in device list



(cherry picked from commit e0ccc644a8)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-31 14:29:24 +08:00
Island eb5d1dbc4e Merge branch 'feat/support_adv_monitor_for_bluedroid_host_v5.5' into 'release/v5.5'
feat(ble/bluedroid): support adv monitor feature (5.5)

See merge request espressif/esp-idf!47037
2026-03-30 17:01:25 +08:00
Zhi Wei Jian effb30cff0 feat(ble/bluedroid): support adv monitor feature
(cherry picked from commit 1566a50929)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-26 17:23:46 +08:00
yangfeng 5830830175 feat(bt): Add APIs to control transmit power level
- API to read ACL real RSSI
- APIs to read/write tx power of inq/iscan/page/pscan/ACL
2026-03-24 14:28:55 +08:00
Zhi Wei Jian cbf4640668 fix(ble/bluedroid): Fixed bt buuld error
fix(ble/bluedroid): disable power management if bt is disabled


(cherry picked from commit 6f27074c1e)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:34 +08:00
Zhi Wei Jian 04f4602a6a fix(ble/bluedroid): optimize bluedroid host code
(cherry picked from commit 3b18da2bde)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:33 +08:00
Zhi Wei Jian 016cd78b30 fix(ble/bluedroid): Add BLE_TOPOLOGY_CHECK
(cherry picked from commit 728c4c8a10)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:33 +08:00
Zhi Wei Jian bd1c995c65 fix(ble/bluedroid): disable bluedroid background connection
(cherry picked from commit 1f5fa1e72b)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:32 +08:00
Zhi Wei Jian 27f9a8a3c9 fix(ble/bluedroid): change tGATT_BG_CONN_DEV to GATT_BG_CONN_DEV
(cherry picked from commit ac7812ef8d)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:31 +08:00
Zhi Wei Jian fcb4030e57 fix(ble/bluedroid): Delete btm_ble_send_extended_scan_params
(cherry picked from commit 1174ad41a5)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:30 +08:00
Zhi Wei Jian edabdeecfc fix(ble/bluedroid): Delete observe and inquiry
(cherry picked from commit 34448a7455)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:29 +08:00
Zhi Wei Jian dd898594b1 fix(ble/bluedroid): delete bluedroid unused code
(cherry picked from commit 5145b366f7)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:29 +08:00
Zhi Wei Jian 70b0e41a06 fix(ble/bluedroid): Delete BLE_HOST_READ_TX_POWER_EN
(cherry picked from commit 1c0c48b814)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:28 +08:00
Zhi Wei Jian 9574a4bb3b fix(ble/bluedroid): Delete BLE_VND_INCLUDED
(cherry picked from commit 57c52bd4ec)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:25 +08:00
Zhi Wei Jian f1e1ae5730 fix(ble/bluedroid): delete BLE_HOST_BLE_MULTI_ADV_EN
(cherry picked from commit b8f2321879)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:20 +08:00
Zhi Wei Jian 7431008e79 fix(ble/bluedroid): delete BTA_HOST_INTERLEAVE_SEARCH
(cherry picked from commit 609b649ef9)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:20 +08:00
Zhi Wei Jian a8d0be7f2a fix(ble/bluedroid): disable read_local_name
(cherry picked from commit 5f9680e3a0)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:19 +08:00
Zhi Wei Jian ed58eaeb20 fix(ble/bluedroid): disable bluedroid role_change
(cherry picked from commit 250553c50d)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:17 +08:00
Zhi Wei Jian 8ab92698f1 fix(ble/bluedroid): Disable bluedroid host Qos
(cherry picked from commit 47f13aa75b)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:17 +08:00
Zhi Wei Jian a310a0f355 feat(ble/bluedroid): reduce bluedroid host heap used for BLE
(cherry picked from commit 438590a1f5)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:24:16 +08:00
zhiweijian 831e9e7721 feat(ble/bluedroid): support bluedroid host channel sounding feature 2025-12-30 10:17:04 +08:00
zhiweijian 692c2b02e5 feat(ble/bluedroid): Supported BLE bluedroid host pawr connection 2025-12-30 10:16:52 +08:00
zhiweijian 382174fdf0 feat(ble/bluedroid): Add bluedroid host PAwR feature 2025-12-30 10:16:22 +08:00
Jin Cheng f7c0f92556 fix(bt/bluedroid): fixed an OOB bug in btm_read_rssi_complete 2025-12-19 16:52:31 +08:00
Jin Cheng 514bcb41a2 fix(bt/bluedroid): fixed an OOB bug in btm_delete_stored_link_key_complete 2025-12-19 16:52:31 +08:00
Jin Cheng 04219e5fd4 fix(bt/bluedroid): fixed an OOB bug in btm_read_tx_power_complete 2025-12-19 16:52:31 +08:00
Jin Cheng 08a593d801 fix(bt/bluedroid): fixed an OOB bug in btm_create_conn_cancel_complete 2025-12-19 16:52:31 +08:00
Jin Cheng a73e2e4d6c fix(bt/bluedroid): fixed an OOB bug in btm_read_local_oob_complete 2025-12-19 16:52:31 +08:00
Island 21ca2378cb Merge branch 'bugfix/fix_some_ble_bugs_2503' into 'master'
Bugfix/fix some ble bugs 2503

Closes BLERP-1678, BLERP-1679, BLERP-1680, BLERP-1681, BLERP-1683, BLERP-1685, and BLERP-1687

See merge request espressif/esp-idf!37930
2025-03-28 10:31:42 +08:00
Island 16ba8f892d Merge branch 'feature/add_vendor_ble_cmd_definitions' into 'master'
Feature/add vendor ble cmd definitions

Closes BLERP-1684 and BLERP-1661

See merge request espressif/esp-idf!37598
2025-03-27 17:06:15 +08:00
zhanghaipeng 55043e280a feat(ble/bluedroid): Implement BLE channel map reading API 2025-03-27 17:00:16 +08:00
baohongde 939a153844 feat(bt): added definitions for BR/EDR hci vendor commands and events 2025-03-25 15:07:31 +08:00
zhiweijian fc58f2f67d feat(bt/bluedroid): Support ble bluedroid host connection subrating feature 2025-03-19 14:53:13 +08:00