Commit Graph
5788 Commits
Author SHA1 Message Date
hejiaxin 3d56f31133 fix(bt_avrcp): size some AVRC command buffers 2026-09-01 11:24:02 +08:00
hejiaxin 49c18b3aaf fix(bt_l2cap): size L2CAP ERTM S-frame & RX SDU buffer 2026-09-01 11:24:02 +08:00
hejiaxin 5e8f5c85fb fix(bt_sdp): size SDP TX buffers 2026-09-01 11:24:02 +08:00
hejiaxin 6bfe3c70e3 fix(bt_rfcomm): size RFCOMM TX buffers by peer MTU 2026-09-01 11:23:59 +08:00
hejiaxin 3e9012b5e3 fix(bt_hid): size HID TX buffers to report length 2026-09-01 11:21:41 +08:00
Wang Meng Yang b5b7c57da3 Merge branch 'fix/aireview_obex_v5.5' into 'release/v5.5'
fix(bt_obex): fix some bugs in bluedroid obex (v5.5)

See merge request espressif/esp-idf!52006
2026-08-28 08:42:46 +08:00
Island 19839f076d Merge branch 'change/ble_update_lib_20260824_v5.5' into 'release/v5.5'
change(ble): [AUTO_MR] 20260824 - Update ESP BLE Controller Lib (5.5)

See merge request espressif/esp-idf!52019
2026-08-26 22:00:50 +08:00
Rahul Tank 01cc6a6580 Merge branch 'bugfix/fix_pawr_conn_issues_v5.5' into 'release/v5.5'
fix(nimble): bound PAwR synced connect retries in the example (v5.5)

See merge request espressif/esp-idf!52026
2026-08-25 16:08:24 +05:30
Jiang Jiang Jian d72f03f0ca Merge branch 'bugfix/a2dp_sink_nego_sbc_v5.5' into 'release/v5.5'
fix(bt): do not cap AVDTP Discover results by local SEP count (v5.5)

See merge request espressif/esp-idf!51752
2026-08-25 16:11:26 +08:00
Zhao Wei Liang 173daa4bbc change(ble): [AUTO_MR] Update lib_esp32c6 to cdaefea1
(cherry picked from commit d2210c2c26)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-08-25 14:05:19 +08:00
Zhao Wei Liang ba5f877e69 change(ble): [AUTO_MR] Update lib_esp32c5 to cdaefea1
(cherry picked from commit 85d8971199)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-08-25 14:05:18 +08:00
Zhao Wei Liang 110239b3a3 change(ble): [AUTO_MR] Update lib_esp32h2 to cdaefea1
(cherry picked from commit b3ba8cad9a)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-08-25 14:05:17 +08:00
Rahul Tank 348cd3dba8 fix(nimble): bound PAwR synced connect retries in the example 2026-08-25 10:57:57 +05:30
hejiaxin d05af8d2e7 fix(bt_obex): fix some bugs in bluedroid obex
- fix goepc wait state switch
- fix psm unbind's mismatch
- fix some resources leak
- fix goep connection's incorrect ternimation when congesting
- Add some NULL ptr check
2026-08-25 12:02:51 +08:00
Jiang Jiang Jian 980973a1bc Merge branch 'bugfix/strncpy_compilation_issue_v5.5' into 'release/v5.5'
fix(bluedroid): Fix the compilation issue of BCM_STRNCPY_S (v5.5)

See merge request espressif/esp-idf!51744
2026-08-25 11:46:43 +08:00
Rahul Tank 5161857730 Merge branch 'bugfix/gatt_cach_disconn_v5.5' into 'release/v5.5'
fix(nimble): gatt caching crash on disconnect (v5.5)

See merge request espressif/esp-idf!51965
2026-08-24 21:38:00 +05:30
yangfeng 04eda2abcc fix(bt): do not cap AVDTP Discover results by local SEP count
- Closes https://github.com/espressif/esp-idf/issues/18848
2026-08-24 19:14:13 +08:00
yangfeng 39e7e142f7 fix(bluedroid): Fix the compilation issue of BCM_STRNCPY_S 2026-08-24 16:53:18 +08:00
Astha Verma a1fc650365 fix(nimble): Fixed gatt caching crash on disconnect 2026-08-24 11:28:09 +05:30
Jin Cheng 4824c598ae fix(bt/bluedroid): fixed BTA event dispatch race during module disable
- Gate bta_sys_event() on both 'is_reg' and 'reg[id]' to prevent
  stale event delivery.
- Defer bta_sys_deregister() to the end of profile disable handlers
  to ensure pending DISABLE events are processed.
- Add disabling flag to HFP AG for tracking asynchronous teardown.
2026-08-24 10:49:31 +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 a3e4d10f2a fix(bt/bluedroid): Fixed use after free issue on osi_event_delete 2026-08-13 07:49:29 +08:00
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
Island 1c58330176 Merge branch 'fix/ble_mesh_added_gatt_err_rsp_v5.5' into 'release/v5.5'
fix(ble_mesh): align GATTS read/write response handling with ATT (5.5)

See merge request espressif/esp-idf!51462
2026-08-05 16:02:56 +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
Luo Xu 3033a5fffb fix(ble_mesh): align GATTS read/write response handling with ATT
bt_mesh_bta_gatts_cb did not always answer ATT Read/Write Requests:
- READ: on a callback error it only logged a warning and sent nothing; a
  0-byte read (Read Blob at an offset equal to the value length) also sent
  nothing, although it is a successful empty read.
- WRITE: on a callback error it sent nothing, and a partial/zero write was
  treated as success.
- Both: when the handle was not found or the attribute had no read/write
  callback, the request was silently dropped.

An ATT Request must always be answered:

- READ: len >= 0 is success -> Read Response (a 0-byte read yields an empty
  value); len < 0 -> ATT Error Response carrying the callback's error code
  (-len, since BLE_MESH_GATT_ERR(x) == -x). The copy length is clamped to
  the source buffer size as a defensive bound. If the handle is unknown or
  the attribute has no read callback, respond with INVALID_HANDLE /
  READ_NOT_PERMITTED.
- WRITE: when need_rsp is set, always reply. len == write length -> Write
  Response; otherwise (negative ATT error, partial write, or 0) -> ATT
  Error Response (the negative code, or UNLIKELY for partial/0). If the
  handle is unknown or the attribute has no write callback, respond with
  INVALID_HANDLE / WRITE_NOT_PERMITTED. Write Without Response still sends
  no response.

A non-success status passed to BTA_GATTS_SendRsp is turned into an ATT
Error Response by the GATT layer (gatt_sr_process_app_rsp ->
gatt_send_error_rsp).


(cherry picked from commit ed1f4de3a3)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-08-03 21:43:46 +08:00
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
Island c41feceb86 Merge branch 'fix/ble_log_compression_issue_on_windows_v5.5' into 'release/v5.5'
fix(bt): fix BLE log compression build on Windows (5.5)

See merge request espressif/esp-idf!51245
2026-08-03 11:31:41 +08:00
Island 4e5966a7f0 Merge branch 'feat/update_mesh_lib_to_supported_get_lib_ver_v5.5' into 'release/v5.5'
Feat/update mesh lib to supported get lib ver (5.5)

See merge request espressif/esp-idf!51172
2026-08-03 11:30:16 +08:00
Island 3844dee2e7 Merge branch 'fix/fix_some_ble_sleep_issues_v5.5' into 'release/v5.5'
Fix/fix some ble sleep issues (5.5)

See merge request espressif/esp-idf!51318
2026-07-31 11:09:57 +08:00
Rahul Tank 55cca8b8b4 fix(nimble): Deliver PAwR peripheral CONNECT via sync callback 2026-07-30 16:33:07 +05:30