1972 Commits

Author SHA1 Message Date
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
Rahul Tank 49c770cf85 Merge branch 'bugfix/nimble_example_fixes' into 'master'
fix(nimble): Address nimble example issues

Closes BLERP-2628, BLERP-2631, BLERP-2635, and BLERP-2657

See merge request espressif/esp-idf!46697
2026-04-01 15:31:34 +05:30
zhanghaipeng 74a053bd4e fix(bt/bluedroid): fix BLE SMP pairing failure on BLE-only devices when using default param 2026-04-01 12:10:16 +08:00
yangfeng 0e9d642d74 fix(bt): avoid deleting device record on partial transport cleanup 2026-04-01 10:02:26 +08:00
Jin Cheng c9a11c1ff9 fix(bt/bluedroid): fixed multiple high-severity issues from AI code review in SBC 2026-04-01 09:42:51 +08:00
Island 582451a451 Merge branch 'fix/fix_add_char_value_failed_with_len_is_zero' into 'master'
fix(bt/bluedroid): Fixed AddCharacteristic failed when attr_len is zero for AUTO_RSP

See merge request espressif/esp-idf!47139
2026-03-31 13:24:03 +08:00
Wang Meng Yang 1ec13a92d2 Merge branch 'bugfix/spp_deinit' into 'master'
fix(bt/bluedroid): flushed all the DM PM at the end of SPP deinit

See merge request espressif/esp-idf!47065
2026-03-31 09:57:52 +08:00
Wang Meng Yang 4cac5e157a Merge branch 'bugfix/misc_improvement' into 'master'
fix(bt/bluedroid): fixed multiple high-severity issues from AI code review in Bluedroid

See merge request espressif/esp-idf!46833
2026-03-31 09:55:29 +08:00
zhiweijian 0c41af54ba fix(bt/bluedroid): Fixed AddCharacteristic failed when attr_len is zero for AUTO_RSP 2026-03-30 15:41:42 +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
Jin Cheng 42f3ed145d fix(bt/bluedroid): flushed all the DM PM at the end of SPP deinit 2026-03-27 11:20:54 +08:00
Wang Meng Yang d9a53ecebe Merge branch 'bugfix/spp_improvement' into 'master'
fix(bt/bluedroid): fixed multiple high-severity issues from AI code review in SPP

See merge request espressif/esp-idf!46803
2026-03-27 10:41:51 +08:00
Wang Meng Yang 904ba3909e Merge branch 'bugfix/hid_improvement' into 'master'
fix(bt/bluedroid): fixed multiple high-severity issues from AI code review in HID

See merge request espressif/esp-idf!46771
2026-03-27 10:32:41 +08:00
Island 6d8c904249 Merge branch 'feat/support_adv_monitor_for_bluedroid_host' into 'master'
feat(ble/bluedroid): support adv monitor feature

Closes BLERP-2648

See merge request espressif/esp-idf!46775
2026-03-26 16:08:59 +08:00
Island 360e45adc3 Merge branch 'feat/allow_creat_vendor_descriptor_by_service_table' into 'master'
feat(ble/bluedroid): Allow add vendor descriptor by service table create API

Closes BLERP-2647

See merge request espressif/esp-idf!46843
2026-03-26 16:06:07 +08:00
Rahul Tank d73e4c611b fix(nimble): Correct adv_list_init / deinit during nimble init / deinit 2026-03-26 10:55:43 +05:30
Rahul Tank b7bff02998 Merge branch 'bugfix/send_conn_cancel_simul' into 'master'
fix(nimble): Issue connect cancel in case of outstanding master connection

See merge request espressif/esp-idf!46565
2026-03-24 12:34:03 +05:30
zhiweijian 1566a50929 feat(ble/bluedroid): support adv monitor feature 2026-03-23 17:28:40 +08:00
Island 1c99ea52c1 Merge branch 'bugfix/optimize_bluedroid_host_code_new' into 'master'
fix(ble/bluedroid): Use the same legacy gap callback instead of each independent legacy gap event callback

Closes BLERP-2639

See merge request espressif/esp-idf!46344
2026-03-23 15:28:46 +08:00