Commit Graph
1991 Commits
Author SHA1 Message Date
Jiang Jiang Jian dc9e6c7887 Merge branch 'bugfix/hid_enhancement' into 'master'
fix(bt/bluedroid): fixed the vulnerabilities from AI code review in HID

Closes BT-4279

See merge request espressif/esp-idf!47115
2026-05-07 10:29:01 +08:00
Jin Cheng 4f233e304c fix(bt/bluedroid): fixed the vulerabilities from AI code review in HID 2026-05-06 18:29:08 +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
Island 2c3809b8dc Merge branch 'bugfix/fix_ble_read_remote_feature_timeout' into 'master'
Fixed read remote feature timeout when using coded phy(2f683593)

Closes BLERP-2694, BLERP-2695, BLERP-2696, BLERP-2182, BLERP-1447, BT-4219, BT-4249, BT-4251, and BCI-614

See merge request espressif/esp-idf!47573
2026-04-29 12:09:43 +08:00
zhanghaipeng 658ff8730b fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(2f683593)
- Fixed read remote feature timeout when using coded phy
- Fixed disconnection issue(0x08) when using 125k coded phy
- Fixed disconnection issue(0x08) when updating connection param
- Fixed disconnection issue(0x08) when using multi connection
- Avoid error when adding duplicate device to whitelist
- Support disable channel assessment by vendor hci
- Support smaller connection interval (3.75 ms)
- Support duplicate exception list in EVT ADV
2026-04-28 18:26:22 +08:00
ShenWeilong a4171d2ad1 fix(ble): always init the default os queue for all of controllers 2026-04-28 15:06:18 +08:00
Rahul Tank 131f86a917 fix(nimble): Move ble_log_init/deinit to esp_nimble_init/deinit 2026-04-27 16:23:21 +05:30
Astha Verma ba32f3633f fix(nimble): Preserve device name across ble_svc_gap_init re-call 2026-04-27 14:18:17 +05:30
Island 05e61fe765 Merge branch 'feat/support_ble_iso_coex' into 'master'
Support blufi on esp32s31

Closes BT-4318

See merge request espressif/esp-idf!47861
2026-04-27 16:18:11 +08:00
Island 1c8b737ba1 Merge branch 'fix/fix_blufi_memory_copy_len_error' into 'master'
fix(ble): Fix blufi fragment reassembly bounds and buffer overflows

See merge request espressif/esp-idf!47090
2026-04-27 15:38:23 +08:00
Rahul Tank 730366b020 fix(nimble): Fix blufi compilation issue for esp32s31 2026-04-27 11:47:23 +08:00
zhiweijian 666c1894c5 fix(ble/bluedroid): Fixed init crash when bluedroid BLE is enabled in BREDR only mode 2026-04-27 11:47:23 +08:00
luoxu 0f2935389a fix(bt): Normalize source paths for log compression pattern matching 2026-04-24 22:28:25 +08:00
ShenWeilong 21e83d7eaf change(bt): Separated bt/CMakeLists to nimble/bluedroid/mesh/audio CMakeLists 2026-04-24 15:16:39 +08:00
Rahul Tank 13f01aedcb Merge branch 'bugfix/remove_extra_error' into 'master'
fix(nimble): Remove extra error prints added in previous commit

Closes IDFCI-10696

See merge request espressif/esp-idf!47844
2026-04-24 10:49:41 +05:30
Rahul Tank 688d541da5 fix(nimble): Fixed extra error prints introduced in previous commit 2026-04-23 15:43:29 +05:30
zhiweijian 94f0c1837a fix(ble): Fixed AI review bugs in bt common 2026-04-23 17:44:21 +08:00
Wang Meng Yang 29f1e572b1 Merge branch 'bugfix/spp_enhancement' into 'master'
fix(bt/bluedroid): fixed the vulnerabilities from AI code review in SPP

Closes BT-4280

See merge request espressif/esp-idf!47114
2026-04-23 11:17:23 +08:00
Rahul Tank 8e4f6c56be Merge branch 'feat/nimble_logs_compression' into 'master'
feat(nimble): Support NimBLE log compression and decompression over SPI

See merge request espressif/esp-idf!46967
2026-04-22 08:02:05 +05:30
wangmengyang 11268d8bfb feat(bt): Add initial support of Bluetooth Classic on ESP32-S31
- feat(soc_caps): Enable BT Classic and BLE in esp32s31
- Add git submodule for ESP32-S31 bt controller lib files
- changed sdkconfig.defaults and README for Bluetooth Classic examples
- change(docs): Added vendor HCI documentations for ESP32-S31
- change(Bluedroid): Adapt to ESP32-S31 due to some API differences on
  Bluetooth controller from ESP32
- change(bt): Modify CMakeLists.txt to support the Bluetooth dual-mode
  architecture on ESP32-S31
- change(bt): Add ECC P-192 functions to tinycrypt
2026-04-21 17:50:34 +08:00
Sahil Yadav c946ef3789 feat(nimble): Support NimBLE log compression and decompression over SPI 2026-04-21 14:00:27 +08:00
Wang Meng Yang 9c380675dc Merge branch 'bugfix/ai_review_a2dp' into 'master'
fix(bt): fix A2DP issues reported by AI code review

Closes BT-4288

See merge request espressif/esp-idf!46787
2026-04-20 09:21:12 +08:00
Wang Meng Yang 29579cffe7 Merge branch 'bugfix/ai_review_hfp' into 'master'
fix(bt): fix HFP issues reported by AI code review

See merge request espressif/esp-idf!47008
2026-04-20 09:21:02 +08:00
Rahul Tank 5a134e1ccc fix(nimble): Fixes for various CVEs
*CVE-2025-62235
   *CVE-2025-53477
   *CVE-2025-53470
2026-04-17 14:18:16 +05:30
Rahul Tank c0ccef9f9c Merge branch 'feat/fsu_hci_cmd_evt' into 'master'
feat(nimble): Add support to 6.2 BLE HCI Command Event(FSU, UTP over OTA)

See merge request espressif/esp-idf!45914
2026-04-17 10:49:12 +05:30
yangfeng 8ca5ad43a3 fix(bt): fix HFP api and btc component issues reported by AI review 2026-04-17 10:06:55 +08:00
yangfeng 4388d9dfc7 fix(bt): fix HFP bta component issues reported by AI review 2026-04-17 10:06:55 +08:00
yangfeng 63f04b97f2 fix(bt): fix A2DP stack component issues reported by AI review 2026-04-16 17:06:03 +08:00
yangfeng 08c5766c96 fix(bt): fix A2DP bta component issues reported by AI review 2026-04-16 16:59:13 +08:00
yangfeng e3782bf2c0 fix(bt): fix A2DP api and btc component issues reported by AI review 2026-04-16 16:59:13 +08:00
Wang Meng Yang 5bb46aadb7 Merge branch 'bugfix/ai_review_avrcp' into 'master'
fix(bt): fix AVRCP component issues reported by AI review

Closes BT-4287

See merge request espressif/esp-idf!46832
2026-04-15 19:28:10 +08:00
Sahil Yadav f2a7313eb1 feat(nimble): Add support to 6.2 BLE HCI Command Event (FSU, UTP over OTA) 2026-04-15 10:08:21 +05:30
Rahul Tank d5bf44c5fe fix(nimble): Fix prox service to handle negative values 2026-04-14 14:25:06 +05:30
yangfeng d997218dbc fix(bt): fix AVRCP component issues reported by AI review 2026-04-14 14:34:30 +08:00
Rahul Tank ca5ce089a8 fix(nimble): Resolve host lock assert in DEBUG mode 2026-04-13 16:09:44 +05:30
Jin Cheng 8999e14df8 fix(bt/bluedroid): moved L2CAP length check into start packets only 2026-04-08 20:13:37 +08:00
Jon Gilmore 25ddfaab1c fix(bt/bluedroid): fix ACL reassembly dropping valid continuation fragments
The minimum length check in `reassemble_and_dispatch()` applied the START packet minimum (`HCI_ACL_PREAMBLE_SIZE + L2CAP_LENGTH_SIZE` = 8 bytes) to **all** ACL packets, including continuation fragments. Continuation fragments only carry the 4-byte ACL preamble (handle + length) with no L2CAP header, so small but valid continuations (5-7 bytes) were incorrectly rejected as "too short."

This caused the first L2CAP PDU in a rapid burst of BLE GATT indications to be silently dropped. The partial reassembly was orphaned, then discarded when the next indication's START fragment arrived, producing:

```
E BT_HCI: ACL packet too short (len=5)
W BT_HCI: reassemble_and_dispatch found unfinished packet for handle with start packet. Dropping old.
```

Parse the ACL preamble first (requires only 4 bytes) to determine the boundary flag, then apply the L2CAP length check only to START packets. Continuation packets are now accepted with the correct minimum of `HCI_ACL_PREAMBLE_SIZE` (4 bytes).

- ESP32-S3 connected to a BLE peripheral that fragments indications at 40 bytes per L2CAP PDU
- Peripheral sends 8+ indications within ~200ms (burst of state changes)
- The final continuation fragment of the first indication is small (5-6 bytes after type stripping)
- 100% reproducible on every burst; confirmed on ESP-IDF 5.5.3, 5.5.4, and 6.0.0

Verified on ESP32-S3 with a Sub-Zero wall oven (SO3050PESP, firmware 8.5):
- **Before fix:** First indication in every burst lost (ACL reassembly failure)
- **After fix:** All indications in burst delivered correctly, including when the final continuation fragment is 5-6 bytes

Closes https://github.com/espressif/esp-idf/issues/18414
2026-04-08 20:08:49 +08:00
Rahul Tank b1050c5a9e fix(nimble): Fix DTM test end packet count parsing 2026-04-07 14:56:00 +05:30
Island ac588e91b0 Merge branch 'ble_dev/esp32h4eco1_chip_20260403_iso' into 'master'
fix(ble): support ble iso for esp32h4 eco1

Closes IDF-12243 and IDF-12248

See merge request espressif/esp-idf!47260
2026-04-07 14:28:31 +08:00
Island d227dc7f23 Merge branch 'bugfix/fix_privacy_callback_trigger_multipe_times' into 'master'
Bugfix/fix privacy callback trigger multiple times

See merge request espressif/esp-idf!47205
2026-04-03 20:35:47 +08:00
Wang Meng Yang bb597ede48 Merge branch 'bugfix/btm_sec_free_dev' into 'master'
fix(bt): avoid deleting device record on partial transport cleanup

Closes BT-4248

See merge request espressif/esp-idf!45753
2026-04-03 19:18:13 +08:00
wangjialiang ca8354932c fix(ble): support ble iso for esp32h4 eco1 2026-04-03 17:11:04 +08:00
Astha Verma 3b0cfa5970 fix(nimble): fix null dereference of ble_gatts_conn_aware_states after gatts stop 2026-04-03 10:14:03 +05:30
Island a6acf48f33 Merge branch 'ble_dev/esp32h4eco1_chip_20260326' into 'master'
feat(ble): added ble support for esp32h4 eco1

See merge request espressif/esp-idf!47100
2026-04-03 10:31:23 +08:00
Island 5ad07fe0f3 Merge branch 'bugfix/fix_ble_pair_fail' into 'master'
fix(bt/bluedroid): fix BLE SMP pairing failure on BLE-only devices when using defalut param

Closes BLERP-2672

See merge request espressif/esp-idf!47167
2026-04-02 15:49:37 +08:00
ShenWeilong 271ff9605a fix(bt): fixed some h4 issues reported by ci pipeline 2026-04-02 14:59:41 +08:00
ShenWeilong 6e359ad99e feat(ble): added ble support for esp32h4 eco1 2026-04-02 14:59:40 +08:00
Wang Meng Yang 8c9b3339b9 Merge branch 'bugfix/sbc_improvement' into 'master'
fix(bt/bluedroid): fixed multiple high-severity issues from AI code review in SBC

See merge request espressif/esp-idf!46944
2026-04-02 14:26:21 +08:00
Sumeet Singh d0326e3889 feat(nimble): Update blecent example README.md with EATT documentation 2026-04-02 06:52:22 +05:30
zhiweijian 5272b7e75b fix(ble/bluedroid): Fixed privacy callback triggering multiple times 2026-04-01 21:02:45 +08:00