Commit Graph
2282 Commits
Author SHA1 Message Date
Island b2c566e249 Merge branch 'bugfix/fix_bluedroid_read_multi_error_rsp' into 'master'
fix(ble/bluedroid): use valid ATT error for Read Multiple assembly failure

Closes BLERP-3103

See merge request espressif/esp-idf!52749
2026-09-14 11:05:38 +08:00
Wang Meng Yang 62fe690ffd Merge branch 'bugfix/fix_pbac_pm_config' into 'master'
fix(bt/bluedroid): enable sniff power management for PBAP client

Closes BT-4500

See merge request espressif/esp-idf!52417
2026-09-14 08:16:50 +08:00
Wang Meng Yang 3d5e088811 Merge branch 'bugfix/msbc_oob_read' into 'master'
fix(bt/bluedroid): fixed OOB read dring mSBC sync word check

Closes BT-4505

See merge request espressif/esp-idf!52499
2026-09-14 08:07:07 +08:00
Shreeyash Bhakare 8fd86fecde fix(nimble): Send Prepare Write Request before Execute Write with zero-length data 2026-09-13 09:12:59 +05:30
Island 5621e186dc Merge branch 'refactor/ble-log-lbm-overhaul' into 'master'
refactor: BLE Log LBM Overhaul

See merge request espressif/esp-idf!52299
2026-09-11 20:09:53 +08:00
zhanghaipeng 11949c27e6 fix(ble/bluedroid): use valid ATT error for Read Multiple assembly failure
Return GATT_INVALID_HANDLE instead of GATT_NOT_FOUND when Read Multiple
(Variable) response assembly fails, since 0x0A is not a valid ATT error
for these PDUs per Core Spec Vol 3 Part F.
2026-09-11 16:53:21 +08:00
Astha Verma 56f1ae2947 fix(nimble): Fix nimble HID service discovery 2026-09-11 11:16:03 +05:30
Rahul Tank 25c114e07a Merge branch 'bugfix/fix_compilation_issue' into 'master'
fix(nimble): Fixed compilation issues due to missing BLE_GATTS

See merge request espressif/esp-idf!52719
2026-09-11 10:37:49 +05:30
Rahul Tank 1e07c30c9f fix(nimble): Fixed compilation issues due to missing BLE_GATTS 2026-09-11 07:29:56 +05:30
Rahul Tank 0a55d54683 fix(nimble): Add hardware error event handling as normal event 2026-09-10 17:32:41 +08:00
linruihao 910cd35575 fix(bt/bluedroid): enable sniff power management for PBAP client 2026-09-10 15:48:29 +08:00
Zhou Xiao e801a4d509 feat(ble_log): switch to the unified transport pool
Replace the legacy multi-LBM transport layer with one shared pool:

- one bitmap-indexed pool of CONFIG_BLE_LOG_POOL_TRANS_CNT transports
  with a non-yield reserve for ISR and critical-section writers;
- per-transport state machine (FREE/OPEN/CLAIMED/SENDING) guarded by a
  per-transport CAS lock; bitmaps are only candidate hints;
- claim/commit interface for the compressed-log path; claim bookkeeping
  lives in the pool (ble_log_pool_claim_t), not in the peripheral
  transport;
- dedicated Internal Snapshot transport and fixed-layout snapshot
  record (reason flags, version block, lc/esp/os clock samples, pool
  state, compact core statistics);
- source-local 24-bit wire sequences and compact per-source counters;
- UART console redirection stream writer (ble_log_redir_t);
- CMakeLists compiles ble_log_lbm_v2.c instead of ble_log_lbm.c; the
  legacy ble_log_lbm.c/.h stay in-tree, out of the build, until their
  removal;
- the public ble_log_src_t ABI is restored and frozen; protocol v7
  wire source IDs are a separate internal enum (ble_log_wire_src_t)
  and the older BLE Stack sources map onto the v7 core sources
  (LL_TASK/LL_ISR -> LL, LL_HCI/HCI -> HCI, HOST -> CUSTOM);
  BLE_LOG_VERSION 7;
- Kconfig: pool sizing options replace the LBM options, whose names
  remain as hidden deprecated symbols for backward sdkconfig
  compatibility; BLE_LOG_HOST_SIDE_HCI_LOG_ENABLED becomes the single
  BLE_LOG_HCI_LOG_ENABLED switch for host and controller HCI traffic
  (Bluedroid and NimBLE host call sites follow the rename), enabled
  by default on all targets instead of only where
  BLE_LOG_IS_ESP_LEGACY_CONTROLLER; the old name keeps a deprecated
  promptless shim that selects the new symbol, so sdkconfig files
  still pinning it keep host HCI logging enabled;
- util: ble_log_cas_acquire/release become macros; multi-call-site
  pool helpers are no longer inline (IRAM);
- test app record structs gain a source_meta field for the v7 wire
  source byte;
- the Internal Snapshot no longer carries a schema_version: the record
  is self-identifying via int_src_code and the version block.
2026-09-10 15:39:55 +08:00
Rahul Tank 6a07858110 feat(nimble): Migrate to nimble-1.10.0 2026-09-09 15:42:05 +05:30
Island fbd01a4878 Merge branch 'feat/opt_prefer_bond_device_when_evicting_overflow_bonds' into 'master'
fix(bt/bluedroid): prefer disconnected peers when evicting overflow bonds

See merge request espressif/esp-idf!51883
2026-09-09 14:37:39 +08:00
Rahul Tank 9b60123e4f fix(nimble): Prevent crash in deinit when host init was not completed 2026-09-08 16:20:50 +05:30
Jin Cheng dc912771aa fix(bt/bluedroid): fixed OOB read dring mSBC sync word check 2026-09-07 15:24:41 +08:00
zhanghaipeng bf86892eef fix(bt/bluedroid): prefer disconnected peers when evicting overflow bonds
When the bond list is full, drop the oldest disconnected device instead
of the oldest NVS entry, and allow a per-bond except flag so selected
devices are never auto-removed.
2026-09-07 10:15:32 +08:00
Rahul Tank 2d0169ef41 fix(nimble): Avoid NULL proc dereference in GATT client procedures 2026-09-04 14:26:02 +05:30
Rahul Tank 9f69bfdb4d Merge branch 'bugfix/fix_ble_pair_attack' into 'master'
fix(nimble): Fix for BLERP attack

See merge request espressif/esp-idf!51161
2026-09-04 12:53:02 +05:30
hejiaxin f772cd6d38 fix(bt_hfp): Fix macro definition 2026-09-03 17:30:32 +08:00
Rahul Tank 84f7125d1b fix(nimble): Fix for BLERP attack 2026-09-03 12:40:44 +05:30
Wang Meng Yang 7f1b8d002e Merge branch 'feature/hfp_lc3' into 'master'
Feature/hfp lc3

See merge request espressif/esp-idf!50037
2026-09-03 14:44:47 +08:00
Rahul Tank c71e574ebf Merge branch 'bugfix/fix_stale_conn_cccd' into 'master'
fix(nimble): fix crash on disconnect due to stale per-connection CCCD pool

Closes BLERP-3057, BLERP-3060, BLERP-3061, and BLERP-3062

See merge request espressif/esp-idf!51868
2026-09-03 12:01:32 +05:30
hejiaxin 25ca329650 fix(bt_hfp): Fix the solution of unknown AT command 2026-09-03 11:04:05 +08:00
hejiaxin 9f6cf1ac3c feat(bluedroid): Update LC3-SWB support in bluedroid
- Update LC3 in btc and bta, update AT
- Update LC3 in SCO frame transfer and examples
- improve lc3 transfer speed
- Fix some encoding and decoding bugs
- Rename the functions and macros to fit both msbc and lc3
- Add config dependency
- Add migration guides for bluetooth-classic
- change the statement of "Wide Band Speech" to "Wideband Speech" to fit HFPv1.10
2026-09-03 11:02:50 +08:00
Jiang Jiang Jian b91a486cc1 Merge branch 'bugfix/delete_unused_avrcp_rcb' into 'master'
fix(bt/bluedroid): delete the unused AVRCP acceptor RCB when A2DP open fails

Closes IDFGH-18197

See merge request espressif/esp-idf!52226
2026-09-03 11:02:05 +08:00
Rahul Tank 657f80181b fix(nimble): fix crash on disconnect due to stale per-connection CCCD pool 2026-09-02 17:46:54 +05:30
Wang Meng Yang eb90cd94b8 Merge branch 'bugfix/fix_osi_event_bug' into 'master'
Bugfix/fix osi event bug

See merge request espressif/esp-idf!51916
2026-09-02 17:47:06 +08:00
Matteo Sandrin 35cf3fa42b fix(bt/bluedroid): delete the unused AVRCP acceptor RCB when A2DP open fails 2026-08-28 05:24:44 -04:00
Wang Meng Yang 1b937bd648 Merge branch 'bugfix/a2dp_aac_br' into 'master'
fix(bt): Fix some bugs of A2DP AAC

Closes BTQABR2023-876, BTQABR2023-877, BTQABR2023-878, and BTQABR2023-879

See merge request espressif/esp-idf!51819
2026-08-28 15:26:50 +08:00
Wang Meng Yang 63076cf266 Merge branch 'fix/bt_memory' into 'master'
fix(bt_memory): Reduce memory usage in transfer

See merge request espressif/esp-idf!51396
2026-08-28 14:52:59 +08:00
yangfeng 5a8e9347a5 fix(bt): Build the optimal config when registering A2DP SEP 2026-08-27 15:58:39 +08:00
yangfeng d1d1f91b12 fix(bt): Add invalid codec capability verification when registering SEP 2026-08-27 15:44:58 +08:00
yangfeng 998bd59e3f feat: Add default SBC SEP in A2DP init 2026-08-27 15:44:58 +08:00
yangfeng ba8b1091a5 fix(bt): Fix the processing of bit rate being 0 in A2DP AAC 2026-08-27 15:44:58 +08:00
hejiaxin 12fe70031f fix(bt_avrcp): size some AVRC command buffers 2026-08-27 15:14:53 +08:00
hejiaxin 59eee88105 fix(bt_l2cap): size L2CAP ERTM S-frame & RX SDU buffer 2026-08-27 15:13:58 +08:00
hejiaxin 8a0156c4ed fix(bt_sdp): size SDP TX buffers 2026-08-27 15:11:44 +08:00
hejiaxin 53200e1ec4 fix(bt_rfcomm): size RFCOMM TX buffers by peer MTU 2026-08-27 15:10:28 +08:00
hejiaxin b58556b338 fix(bt_hid): size HID TX buffers to report length 2026-08-27 15:10:05 +08:00
Wang Meng Yang 13e18a6a43 Merge branch 'bugfix/fixed_ble_deinit_crash_issue' into 'master'
Bugfix/fixed ble deinit crash issue

Closes BLECRT-623, BLECRT-624, and BT-4481

See merge request espressif/esp-idf!52103
2026-08-27 14:12:41 +08:00
Island e2930d30c8 Merge branch 'bugfix/fix_bluedroid_find_info_format_mismatch' into 'master'
fix(ble/bluedroid): restore find info PDU stop on UUID format mismatch

See merge request espressif/esp-idf!52063
2026-08-26 22:00:25 +08:00
ShenWeilong 0ed6004586 fix(bt): fixed mempool deinit crash issue for esp32s31 2026-08-26 21:48:02 +08:00
Island 61aefd09ae Merge branch 'feat/ble_smp_repairing_hardening' into 'master'
feat(ble/bluedroid): add Kconfig options for BLE re-pairing hardening

See merge request espressif/esp-idf!51221
2026-08-26 15:07:45 +08:00
zhanghaipeng 196cb39545 fix(ble/bluedroid): restore find info PDU stop on UUID format mismatch
Restore GATT_NO_RESOURCES when sequential attributes have differing UUID
sizes so gatts_process_find_info() stops building the response PDU.
2026-08-26 11:20:23 +08:00
Jiang Jiang Jian 1072706739 Merge branch 'bugfix/avrcp_version_compatibility' into 'master'
fix(bt): Fix the issue of AVRCP version compatibility

Closes BTQABR2023-886

See merge request espressif/esp-idf!51978
2026-08-26 10:37:22 +08:00
Rahul Tank 3af5e71150 Merge branch 'bugfix/fix_pawr_conn_issues' into 'master'
fix(nimble): bound PAwR synced connect retries in the example

See merge request espressif/esp-idf!51941
2026-08-25 16:02:57 +05:30
liqigan 8873769d11 change(bt/bluedroid): Used dynamic osi event to reduce lock cost 2026-08-25 15:50:22 +08:00
Island 120d813cd9 Merge branch 'bugfix/fix_bluedroid_gatt_discover_downstream_stall' into 'master'
fix(ble/bluedroid): allow osi_event re-post during POSTING window

Closes BLERP-3044, BLERP-3042, BLERP-3043, BLERP-3051, and BLERP-3052

See merge request espressif/esp-idf!51833
2026-08-25 12:13:38 +08:00
Rahul Tank 7321fce391 fix(nimble): bound PAwR synced connect retries in the example 2026-08-24 21:31:32 +05:30