Alexey Lapshin
37bdc6a827
Merge branch 'fix/bt__unused-but-set-variable_warnings' into 'master'
...
fix(bt): fix unused-but-set-variable warnings
See merge request espressif/esp-idf!50657
2026-07-15 13:01:45 +04:00
Alexey Lapshin
46ddc0f4b2
fix(bt): fix unused-but-set-variable warnings
2026-07-13 12:01:15 +07:00
zhiweijian
4fd1ebb4a9
fix(ble/bluedroid): clean up LE CoC connect on CCB alloc failure
2026-07-10 10:57:10 +08:00
zhiweijian
83f0831c53
feat(ble/bluedroid): Support bluedroid LE COC and EATT features
2026-07-09 14:03:01 +08:00
Island
106fe3da23
Merge branch 'bugfix/fix_bluedroid_static_random_conn_rpa' into 'master'
...
fix(ble/bluedroid): skip identity conversion for static random direct connect
Closes BCI-620
See merge request espressif/esp-idf!49754
2026-06-26 16:50:54 +08:00
zhanghaipeng
2ef10ef488
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.
2026-06-25 19:15:25 +08:00
zhanghaipeng
f9eaeb5e84
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.
2026-06-22 14:08:16 +08:00
Jin Cheng
bd60b1c267
fix(bt/bluedroid): fixed possible OOB read/write in process_l2cap_cmd
2026-06-15 20:26:15 +08:00
Jin Cheng
c8cd8f4f30
fix(bt/bluedroid): added buffer length check for L2CAP related functions
2026-06-09 17:57:46 +08:00
yangfeng
6028243598
fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS
...
- Closes https://github.com/espressif/esp-idf/issues/18562
2026-06-04 19:13:38 +08:00
zhanghaipeng
1a9f2af505
feat(ble/bluedroid): add auto-setting for is_aux parameter in esp_ble_gattc_enh_open
2026-05-29 10:16:21 +08:00
Island
5a4e10c5e8
Merge branch 'bugfix/fix_ble_min_conn_interval' into 'master'
...
fix(ble): Optimize connection interval minimum parameter check
Closes BLERP-2748
See merge request espressif/esp-idf!48116
2026-05-11 10:31:03 +08:00
Jin Cheng
af9ec3cd58
fix(bt/bluedroid): fixed the vulerabilities from AI code review in Bluedroid
2026-05-06 18:05:14 +08:00
zhanghaipeng
102a899d23
fix(ble): Optimize connection interval minimum parameter check
2026-04-30 10:55:30 +08:00
Jin Cheng
6702e66dd8
fix(bt/bluedroid): fixed multiple high-severity issues from AI code review in Bluedroid
2026-03-27 11:28:37 +08:00
zhiweijian
d07ce78dcf
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-19 20:59:28 +08:00
zhiweijian
16d523e9bf
fix(ble/bluedroid): BLE credit, reject when p_rcb NULL, timeout and leak fixes
...
- l2c_int: align struct/constant types with l2c_ble/l2c_main
- l2c_api: null/state checks in L2CA_SendFixedChnlData
- l2c_ble: reject when p_rcb==NULL, add L2CAP_CMD_BLE_FLOW_CTRL_CREDIT;
l2cble_init_direct_conn int64_t timeout and link_timeout==0 fix
- l2c_link: null/state checks and cleanup in hci_disc_comp/timeout/send_to_lower
- l2c_main: free p_msg on FCR non-Basic and COC branches; fix LE credit handling;
process_l2cap_cmd bounds
- l2c_utils: credit/queue cleanup and null checks in l2cu_disconnect_chnl
2026-03-18 16:49:09 +08:00
zhiweijian
e118d053b3
fix(ble/bluedroid): fix L2CAP, SMP and HCI command issues
...
- Fix active_count check in l2cu_ble_plcb_active_count
- Restore previous state if connection command fails
- Fix HCI cmd buffer size off-by-one errors
- Fix connect handle length errors
- Fix channel sounding event status handling
- Fix SMP param_len check in smp_rand_back
- Fix spelling: BROCASTER to BROADCASTER in definitions
2026-02-27 17:59:59 +08:00
zhiweijian
6f27074c1e
fix(ble/bluedroid): Fixed bt buuld error
...
fix(ble/bluedroid): disable power management if bt is disabled
2026-01-05 17:09:38 +08:00
zhiweijian
728c4c8a10
fix(ble/bluedroid): Add BLE_TOPOLOGY_CHECK
2026-01-05 14:24:34 +08:00
zhiweijian
ac7812ef8d
fix(ble/bluedroid): change tGATT_BG_CONN_DEV to GATT_BG_CONN_DEV
2026-01-05 14:23:10 +08:00
zhiweijian
9ae4d9a14a
fix(ble/bluedroid): Disable bluedroid desire_role
2026-01-05 14:10:04 +08:00
zhiweijian
250553c50d
fix(ble/bluedroid): disable bluedroid role_change
2026-01-05 14:10:04 +08:00
zhanghaipeng
93cfbb8522
fix(ble/bluedroid): Fix out-of-bounds read in l2cble_process_sig_cmd
2025-12-28 11:07:07 +08:00
Wang Meng Yang
57f06d8aff
Merge branch 'bugfix/sync_security_fix_from_flouride' into 'master'
...
fix: synchronized several security-related fixes from Google Fluoride
Closes BT-4195
See merge request espressif/esp-idf!42534
2025-12-17 15:34:49 +08:00
Island
a999f2cfae
Merge branch 'bugfix/fix_reconnect_failed_with_extend_adv' into 'master'
...
fix(ble/bluedroid): Fixed the issue that extend advertising might not restart if the connection fails
Closes BLERP-2395
See merge request espressif/esp-idf!43266
2025-12-16 18:45:16 +08:00
Jin Cheng
4a49312321
fix(bt/bluedroid): cleaned the code according to the tool cppcheck
2025-12-16 17:37:14 +08:00
Jin Cheng
c07ac874ec
fix(bt/bluedroid): fixed p_data null dereference in l2c_csm_open
2025-12-16 17:37:13 +08:00
Jin Cheng
65cb0be70f
fix(bt/bluedroid): fixed possible access to NULL in l2c_fcr_clone_buf
2025-12-15 19:29:20 +08:00
zhiweijian
ec4052c1c7
fix(ble/bluedroid): Fixed reconnection failed with extend adv
2025-11-18 10:05:00 +08:00
Wang Meng Yang
3c447d998d
Merge branch 'bugfix/fix_hid_memory_leak' into 'master'
...
fix(bt/bluedroid): Fixed HID memory leak
Closes BTQABR2023-602
See merge request espressif/esp-idf!43118
2025-11-13 16:30:47 +08:00
zhiweijian
cb8b4df798
feat(ble/bluedroid): Supported BLE bluedroid host pawr connection
2025-11-11 20:00:34 +08:00
chenjianhua
1aeb965607
feat(ble/bluedroid): Add more debug log for bluedroid
2025-11-10 16:59:16 +08:00
liqigan
fa813a666d
fix(bt/bluedroid): Fixed HID memory leak
2025-11-05 15:06:01 +08:00
zhanghaipeng
45775a3e35
feat(ble/bluedroid): Added BLE debug LOG for bluedroid
2025-09-26 20:10:32 +08:00
Shen Weilong
61c13ef849
fix(bt): check bd address only for bredr in bluedroid host l2cu_allocate_lcb()
2025-08-18 10:44:22 +08:00
xuzhekai
2ccae5330e
fix(bt/bluedroid): adjust L2CAP round robin msg send strategy
2025-08-12 11:02:38 +08:00
chenjianhua
6392180813
fix(ble/bluedroid): Fixed extended adv restart failure during reconnection
2025-06-10 15:06:03 +08:00
zhanghaipeng
8150573012
fix(ble/bluedroid): Fixed null pointer assert in l2c_link_check_send_pkts
2025-05-30 17:37:21 +08:00
chenjianhua
5fb8cc06ab
fix(bt/bluedroid): Fixed BLE connection active count getting
2025-02-20 19:42:40 +08:00
zhiweijian
69acda1785
feat(ble/bluedroid): reduce bluedrois host bin size and disable BLE_HOST_BG_CONNECT_EN
2025-02-17 14:55:55 +08:00
zhiweijian
fb08e4eafe
feat(bt/bluedroid): optimize bluedroid menuconfig
2025-02-17 14:51:10 +08:00
chenjianhua
e5789a8ca1
feat(ble/bluedroid): Support setting connection params when creating connection
2024-11-26 12:10:27 +08:00
chenjianhua
d53572ab10
fix(bt/bluedroid): Update address type for BLE link when the connection is completed
2024-10-15 11:10:17 +08:00
chenjianhua
6962bca5fa
fix(bt/bluedroid): Fixed BLE create conn cancel when conn already exist
2024-07-23 20:31:43 +08:00
zhanghaipeng
bc1851d793
fix(ble/bluedroid): Optimize BLE stack connect callback name
2024-05-06 15:43:09 +08:00
zhanghaipeng
f2cfe4a0f0
fix(ble/bluedroid): Fixed BLE no data length change event
2024-05-06 15:34:21 +08:00
zhiweijian
adde5a3dd6
fix(ble/bluedroid): Fixed adv not restart due to disconnection reason 0x3e
2024-04-08 14:51:33 +08:00
gongyantao
9e4c8bb76e
fix(bt/bluedroid): Add correct macro for ertm mode included flag
2023-10-11 20:19:40 +08:00
wanglai@espressif.com
afc7cf445e
feat(bt/bluedroid): Add flags for BQB auto test of L2CAP
...
1: add sdp_bqb_disable_flag to avoid running sdpu_build_n_send_error.
2: add sdp_bqb_inact_timeout_flag to set the SDP inactivity timeout to 90 seconds.
3: add l2cap_bqb_bad_cmd_len_rej_flag to reject the C-Frame with invalid PDU length
4: add l2cap_bqb_ertm_mode_included_flag to set L2CAP_FCR_ERTM_MODE for most L2CAP cases
2023-09-19 19:53:00 +08:00