Commit Graph
2118 Commits
Author SHA1 Message Date
yangfeng 39e7e142f7 fix(bluedroid): Fix the compilation issue of BCM_STRNCPY_S 2026-08-24 16:53:18 +08:00
Rahul Tank 93f18f1383 Merge branch 'bugfix/irk_smp_bond_issue_v5.5' into 'release/v5.5'
fix(nimble): Fix unpair_oldest_peer deleting wrong device (v5.5)

See merge request espressif/esp-idf!51837
2026-08-19 16:24:04 +05:30
Wang Meng Yang 2caf79b402 Merge branch 'fix/aireview_pbap_v5.5' into 'release/v5.5'
fix(bt_pbap): Fix some bugs in bluedroid PBAP (v5.5)

See merge request espressif/esp-idf!51729
2026-08-19 10:42:01 +08:00
Wang Meng Yang 9fcbdc00ef Merge branch 'bugfix/ai_review_a2dp_v5.5' into 'release/v5.5'
fix(bt): Fix the critical issues related to A2DP from AI review report (v5.5)

See merge request espressif/esp-idf!50129
2026-08-19 10:38:19 +08:00
Rahul Tank 6c52b417f1 fix(nimble): Fix unpair_oldest_peer deleting wrong device
Sort bond entries by bond_count after in-place updates to maintain correct
eviction order, and log IRK resolving-list failures instead of failing the bond.
2026-08-18 12:46:43 +05:30
yangfeng 26dfcb0c86 fix(bt): Fix compatibility with A2DP API legacy usage methods
- Modify the timing of API calls in the A2DP example
- Closes https://github.com/espressif/esp-idf/issues/18786
2026-08-18 11:26:53 +08:00
yangfeng c1a1c97189 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-08-18 11:26:53 +08:00
Rahul Tank 14b61b5b7f fix(nimble): Add separate helper functions to register notification/indication 2026-08-18 07:37:38 +05:30
Wang Meng Yang 9d7bd46045 Merge branch 'change/refactor_hidh_datapath_v5.5' into 'release/v5.5'
Change/refactor hidh datapath[backport v5.5]

See merge request espressif/esp-idf!51280
2026-08-17 10:25:28 +08:00
Rahul Tank f542038478 fix(nimble): Add fix to handle service reset during server start 2026-08-14 13:51:54 +05:30
hejiaxin 67e32f0568 fix(bt_pbap): Fix some bugs in bluedroid PBAP
- Add sdp_seq to avoid p_ccb being free during sdp
- Changed some BTA_Pba functions to return non-void value
- Improve error catching and report
- Refactor bta_pba_client_response to avoid UAF problem
- Rearrange btc_pba_client init flag to avoid some disturbing bug
2026-08-13 14:32:24 +08:00
Rahul Tank f47df3ad41 fix(nimble): Fix adding device to resolving list when defer connection 2026-08-13 10:24:15 +05:30
liqigan cc404fc1ca fix(bt/bluedroid): Fixed HID host reconnection bug and enabled load HID devices
Closes https://github.com/espressif/esp-idf/issues/18335
2026-08-13 07:49:29 +08:00
liqigan e9ab88137c change(bt/bluedroid): Refactored HCI ACL datapath 2026-08-13 07:49:29 +08:00
liqigan 1fdd376d3d change(bt/bluedroid): Refactored HID host datapath 2026-08-13 07:49:29 +08:00
Rahul Tank fb72cbe6b9 fix(nimble): Added change to stop adv before starting new adv 2026-08-11 11:31:02 +05:30
Rahul Tank c33ee32f1d fix(nimble): Remove extra free to avoid double free 2026-08-10 19:25:12 +05:30
Jiang Jiang Jian c8713ab22c Merge branch 'feat/support_pawr_connect_evt_v5.5' into 'release/v5.5'
feat(ble/bluedroid): Support PAWR connection event (5.5)

See merge request espressif/esp-idf!51441
2026-08-06 11:25:19 +08:00
hejiaxin 49f12e853e feat(bluedroid): Add config to place btu and hci task stack in psram
- Also adjust the osi_thread_stop implementation.
2026-08-04 14:55:59 +08:00
Rahul Tank 53bde34029 Merge branch 'bugfix/add_nimble_cve_v5.5' into 'release/v5.5'
fix(nimble): Fixes for various NimBLE CVEs (v5.5)

See merge request espressif/esp-idf!51202
2026-08-04 12:11:34 +05:30
Wang Meng Yang 89a63e35b8 Merge branch 'fix/aireview_critical_v5.5' into 'release/v5.5'
fix: Fix some critical bugs in classic bt (v5.5)

See merge request espressif/esp-idf!51290
2026-08-04 14:16:54 +08:00
Rahul Tank 9ffcc9821e fix(nimble): Fixes for various NimBLE CVEs 2026-08-03 23:45:23 +05:30
Zhi Wei Jian ecf32535bc fix(ble/bluedroid): Build LE event mask from host feature macros
(cherry picked from commit 68dff5d798)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-08-03 15:25:54 +08:00
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
Rahul Tank 55cca8b8b4 fix(nimble): Deliver PAwR peripheral CONNECT via sync callback 2026-07-30 16:33:07 +05:30
Wang Meng Yang fa27fd0a52 Merge branch 'fix/bluedroid_aireview_v5.5' into 'release/v5.5'
Fix/bluedroid aireview (v5.5)

See merge request espressif/esp-idf!51295
2026-07-30 14:28:55 +08:00
Jin Cheng 6e4bd4152d fix(bt/bluedroid): fixed incorrect eSCO packet type validation under secure connection mode in BlueDroid 2026-07-29 17:30:25 +08:00
hejiaxin 60289a9c60 fix(bt): Fix some bug in stm_sco.c
- Memory safety
- State machine & logic integrity
- Resource leaks
- Edge cases check
2026-07-29 17:30:25 +08:00
hejiaxin 18c6d51e46 fix(bt_stack): Fix some critical bugs in classic_bt stack
related: obex, smp, pbap, sdp, rfcomm, stack_dm

- Deinit function doesn't delete connection when OBEX_DYNAMIC_MEMORY is on
- Union tGOEPC_DATA sometimes is free by osi_free in some cases when it contains mtu_id
- Add correct free and return solution after fail
- Fix symbol mistake in mod calculation
- Fix pointer-related UAF problems and memory free problems
- Fix buffer overflows and out-of-bounds access
- Fix infinite loops triggered by integer overflow wraparound
- Fix double free
- Change layer_specific usage to avoid heap overflow
- Add some NULL check for pointers
- Fix sdp_db free function
- Fix state table mismatch
2026-07-29 17:05:35 +08:00
Rahul Tank 80e8f463c3 fix(nimble): update sbom file with cve details 2026-07-29 12:50:20 +05:30
chenjianhua 4460584d07 feat(bt): Add host-agnostic BT OSAL and shared BLE profile task
- Add bt_osal: event queues, mutexes, semaphores, callouts, etc.
- Add the shared BLE profile task and event queue
- Bring both up and tear them down in the host init/deinit paths
- Add unit tests for the OSAL and the profile task
2026-07-27 19:29:56 +08:00
Shreeyash Bhakare 87f48471c5 fix(nimble): Added security related fixes 2026-07-25 08:56:22 +05:30
Astha Verma d2708d151d fix(nimble): Restore throughput after switching from LE Coded PHY 2026-07-24 18:04:48 +05:30
Rahul Tank 4e3f2de1e0 Merge branch 'bugfix/red_rem_feat_evt_v5.5' into 'release/v5.5'
Handle Read Remote Supported Feature failure (v5.5)

See merge request espressif/esp-idf!50810
2026-07-24 14:26:38 +05:30
Island 5f29e3e2e1 Merge branch 'fix/ble_hidd_remove_ccc_gating_v5.5' into 'release/v5.5'
fix(esp_hid/bluedroid): remove app-layer CCC gating in HID device (5.5)

See merge request espressif/esp-idf!51006
2026-07-23 19:26:08 +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
Wang Meng Yang 3d180bf434 Merge branch 'bugfix/low_spp_throughput_v5.5' into 'release/v5.5'
change(bt/bluedroid): increased port low watermark of RFCOMM (v5.5)

See merge request espressif/esp-idf!51085
2026-07-23 16:42:45 +08:00
Island efd98f4782 Merge branch 'fix/ble_log_compression_add_local_header_file_v5.5' into 'release/v5.5'
feat(ble_log): mirror local compression headers (5.5)

See merge request espressif/esp-idf!50951
2026-07-23 14:23:07 +08:00
Island 47bd7785b9 Merge branch 'feat/support_bluedroid_le_coc_and_eatt_v5.5' into 'release/v5.5'
feat(ble/bluedroid): Support bluedroid LE COC and EATT features (5.5)

See merge request espressif/esp-idf!50714
2026-07-23 10:06:52 +08:00
Jin Cheng 25c0ece748 change(bt/bluedroid): increased port low watermark of RFCOMM
When PORT_RX_BUF_LOW_WM is too low, RFCOMM replenishes credits only
after receiving a relatively large number of packets, which may cause
the peer to exhaust its credits and enter a stop-and-wait state.
Increase the low watermark to replenish credits more promptly and
reduce the likelihood of the peer stalling while waiting for additional
credits.
2026-07-23 08:09:20 +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
Astha Verma 06acba2443 fix(nimble): Handle Read Remote Supported Features failure correctly 2026-07-22 12:16:47 +05:30
Wang Meng Yang b1ae399d1e Merge branch 'bugfix/hid_host_oob_read_v5.5' into 'release/v5.5'
fix(bt/bluedroid): fixed possible 1-byte OOB read in bta_hh_ctrl_dat_act (v5.5)

See merge request espressif/esp-idf!50973
2026-07-22 14:10:16 +08:00
Rahul Tank 316f3e17b2 Merge branch 'bugfix/nimble_issues_17072026_v5.5' into 'release/v5.5'
fix(nimble): Fix few nimble issues 17072026 (v5.5)

See merge request espressif/esp-idf!50922
2026-07-21 10:24:38 +05:30
Zhang Hai Peng fb7e051f97 fix(ble/bluedroid): track ext scan state for rand addr check
Update inq_var.state only after btsnd_hcic_ble_ext_scan_enable succeeds.
Clear BTM_BLE_SCANNING on explicit stop and controller scan timeout.


(cherry picked from commit 23519567e4)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-07-21 10:53:25 +08:00
Zhang Hai Peng f3b89d6b37 change(ble/bluedroid): disable host trace logs when BLE Log host is off
Default all Bluedroid layer trace levels to NONE when BLE async log
is enabled without BLE_LOG_HOST_LOG.


(cherry picked from commit 1f8f935e3f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-07-21 10:44:09 +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 11a1a33e26 fix(ble/bluedroid): use BOOLEAN for BLE HCI command builders
(cherry picked from commit abbf001120)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-07-21 10:28:30 +08:00
Zhi Wei Jian f4650eb7c0 fix(ble/bluedroid): clean up LE CoC connect on CCB alloc failure
(cherry picked from commit 4fd1ebb4a9)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-07-21 10:28:23 +08:00
Zhi Wei Jian e97d59c545 docs(ble/bluedroid): note ISO BIG HCI alloc failure not checked
(cherry picked from commit 34b59d30ae)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-07-21 10:28:15 +08:00