Commit Graph

90 Commits

Author SHA1 Message Date
Zhi Wei Jian
1a532094a0 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:33 +08:00
Island
1e07f40a93 Merge branch 'bugfix/fix_some_bluedroid_bugs_260121_v5.2' into 'release/v5.2'
Bugfix/fix some bluedroid bugs 260121 (5.2)

See merge request espressif/esp-idf!46980
2026-04-01 11:45:16 +08:00
zhiweijian
1321f3355d 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-30 16:45:03 +08:00
Zhi Wei Jian
6e56940435 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-30 16:45:03 +08:00
Zhi Wei Jian
9501b978b2 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-30 16:45:02 +08:00
Zhi Wei Jian
278763a883 feat(ble/bluedroid): support adv monitor feature
(cherry picked from commit 1566a50929)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-26 17:23:39 +08:00
yangfeng
d7fc14f15d 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-16 16:00:25 +08:00
zhiweijian
2f9ca91c58 fix(ble/bluedroid): Fixed bt buuld error
fix(ble/bluedroid): disable power management if bt is disabled
2026-01-07 19:21:48 +08:00
Zhi Wei Jian
8f2b813768 fix(ble/bluedroid): optimize bluedroid host code
(cherry picked from commit 3b18da2bde)

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

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

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:23:36 +08:00
Zhi Wei Jian
0ad656285b 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:23:36 +08:00
Zhi Wei Jian
bc7bac4753 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:23:35 +08:00
Zhi Wei Jian
0f1649d684 fix(ble/bluedroid): Delete observe and inquiry
(cherry picked from commit 34448a7455)

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

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:23:28 +08:00
Zhi Wei Jian
f5f0e8cb65 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:23:26 +08:00
Zhi Wei Jian
203153a2dc fix(ble/bluedroid): Delete BLE_VND_INCLUDED
(cherry picked from commit 57c52bd4ec)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:23:24 +08:00
Zhi Wei Jian
a32a63441f 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:23:19 +08:00
Zhi Wei Jian
2b2de2c7d9 fix(ble/bluedroid): delete BTA_HOST_INTERLEAVE_SEARCH
(cherry picked from commit 609b649ef9)

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

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

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

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-01-07 17:23:17 +08:00
Zhi Wei Jian
dd08f8ad73 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:23:16 +08:00
zhiweijian
d559b73c81 feat(ble/bluedroid): support bluedroid host channel sounding feature 2025-12-30 11:39:12 +08:00
zhiweijian
a85f342917 feat(ble/bluedroid): Supported BLE bluedroid host pawr connection 2025-12-30 11:39:01 +08:00
zhiweijian
31862fc529 feat(ble/bluedroid): Add bluedroid host PAwR feature 2025-12-30 11:38:31 +08:00
Jin Cheng
0b645745e7 fix(bt/bluedroid): fixed an OOB bug in btm_read_rssi_complete 2025-12-19 11:27:26 +08:00
Jin Cheng
5f96dc4851 fix(bt/bluedroid): fixed an OOB bug in btm_delete_stored_link_key_complete 2025-12-19 11:27:26 +08:00
Jin Cheng
97a4a56df2 fix(bt/bluedroid): fixed an OOB bug in btm_read_tx_power_complete 2025-12-19 11:27:26 +08:00
Jin Cheng
d6cf63f8ac fix(bt/bluedroid): fixed an OOB bug in btm_create_conn_cancel_complete 2025-12-19 11:27:26 +08:00
Jin Cheng
70d5bb6d8c fix(bt/bluedroid): fixed an OOB bug in btm_read_local_oob_complete 2025-12-19 11:27:26 +08:00
Zhang Hai Peng
4341f8ec08 feat(ble/bluedroid): Implement BLE channel map reading API
(cherry picked from commit 55043e280a)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-21 18:03:34 +08:00
zhiweijian
ed5a3bc999 feat(bt/bluedroid): Support ble bluedroid host connection subrating feature 2025-04-02 00:03:29 +08:00
zhiweijian
427bcbffc0 feat(bt/bluedroid): Support ble bluedroid host power control feature 2025-04-02 00:03:29 +08:00
zhiweijian
2a5d15c45b feat(bt/bluedroid): Support BLE CTE in bluedroid host 2025-04-02 00:03:29 +08:00
zhiweijian
479a2f5475 feat(bt/bluedroid): Support BLE iso in bluedroid host 2025-04-02 00:03:29 +08:00
baohongde
53bfeae58a feat(bt): added definitions for BR/EDR hci vendor commands and events 2025-03-25 16:09:33 +08:00
Island
311f33cf15 Merge branch 'feat/support_ble_vendor_hci_event_report_v5.2' into 'release/v5.2'
feat(bt/bluedroid): Support BLE vendor hci event reporting (v5.2)

See merge request espressif/esp-idf!37352
2025-03-13 10:55:56 +08:00
chenjianhua
93ab87de1d feat(bt/bluedroid): Support BLE setting vendor event mask 2025-03-10 18:04:24 +08:00
zhanghaipeng
d006534327 feat(ble/bluedroid): Support read periodic advertiser list size command 2025-03-10 14:12:24 +08:00
Island
0de2a4c27b Merge branch 'feat/optimize_ble_config_reduce_bin_v5.2' into 'release/v5.2'
Feat/optimize bluedroid host config and reduce bin size (v5.2)

See merge request espressif/esp-idf!37259
2025-03-05 15:46:14 +08:00
zhiweijian
0624633c8a feat(ble/bluedroid): reduce bluedrois host bin size and disable BLE_HOST_BG_CONNECT_EN 2025-02-25 19:21:15 +08:00
zhiweijian
76a75eb625 feat(ble/bluedroid): disable bluedroid host unused functions 2025-02-25 19:20:56 +08:00
Wang Mengyang
dc7964aa1a change(bt): Remove unused state variable for (e)SCO disconnect reason in Bluedroid 2025-02-05 10:09:06 +08:00
chenjianhua
35d7c5a4ab feat(ble/bluedroid): Support setting connection params when creating connection 2024-12-03 18:02:37 +08:00
Island
f72433065d Merge branch 'feat/support_blecrt_90_v5.2' into 'release/v5.2'
feat(bt/bluedroid): Added API to set supported channel selection algorithm (v5.2)

See merge request espressif/esp-idf!34504
2024-11-06 11:50:19 +08:00
linruihao
1e8fded85c fix(bt/bluedroid): Fix memory leak in sco when bluedroid disable 2024-10-31 17:55:24 +08:00
Chen Jian Hua
b3686c2f60 feat(bt/bluedroid): Added API to set supported channel selection algorithm
(cherry picked from commit 4ae7b4aecf)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-10-29 17:35:20 +08:00
chenjianhua
34771563b9 test(bt/bluedroid): Support to disable BLE address resolution 2024-09-23 13:32:57 +08:00
chenjianhua
4663f81cf7 fix(bt/bluedroid): Fixed BLE create conn cancel when conn already exist 2024-08-12 20:39:25 +08:00