Commit Graph

6019 Commits

Author SHA1 Message Date
Rahul Tank
d485466018 fix(nimble): Deliver PAwR peripheral CONNECT via sync callback 2026-07-29 11:09:14 +05:30
Rahul Tank
a526754325 Merge branch 'feat/sbom_changes' into 'master'
fix(nimble): update sbom file with cve details

See merge request espressif/esp-idf!51152
2026-07-29 10:49:08 +05:30
Wang Meng Yang
82b28b2641 Merge branch 'fix/aireview_critical' into 'master'
fix: Fix some critical bugs in classic bt

See merge request espressif/esp-idf!50312
2026-07-29 11:41:36 +08:00
Wang Meng Yang
5dbd27f32b Merge branch 'bugfix/bredr_multiple_fix_on_esp32s31' into 'master'
fix(bt): Fixed several issues on BR/EDR controller on ESP32-S31

Closes BTQABR2023-829, BTQABR2023-836, BTQABR2023-837, BTQABR2023-840, BTQABR2023-687, and BTQABR2023-697

See merge request espressif/esp-idf!51249
2026-07-29 10:39:10 +08:00
Rahul Tank
f6fcd6470c fix(nimble): update sbom file with cve details 2026-07-28 21:25:14 +05:30
Wang Meng Yang
d348f43f56 Merge branch 'bugfix/a2dp_api_init_check' into 'master'
fix(bt): Fix compatibility with A2DP API legacy usage methods

Closes IDFGH-17892

See merge request espressif/esp-idf!50611
2026-07-28 19:35:28 +08:00
Wang Mengyang
aeab6dcfbe fix(bt): Fixed several issues on BR/EDR controller on ESP32-S31
Fixed bug when BR/EDR ACL-U dynamic Tx buffer is enabled
Fixed infinite loop during connection set-up
Optimized the scheduling of SCO/eSCO and sniff events
2026-07-28 18:04:31 +08:00
Rahul Tank
e08609e451 fix(nimble): Migrate to NimBLE 1.9.0 2026-07-27 14:14:35 +05:30
Island
eaa88e26dc Merge branch 'idf/ble_audio_log_compress_misc' into 'master'
feat(ble_audio): Add specific libs for BLE Audio log compression

See merge request espressif/esp-idf!51107
2026-07-27 16:19:44 +08:00
Island
f930f9fe10 Merge branch 'fix/ble_log_compression_issue_on_windows' into 'master'
fix(bt): fix BLE log compression build on Windows

See merge request espressif/esp-idf!51156
2026-07-27 14:10:27 +08:00
Island
abae27441b Merge branch 'feat/update_mesh_lib_to_supported_get_lib_ver' into 'master'
Feat/update mesh lib to supported get lib ver

See merge request espressif/esp-idf!51155
2026-07-27 14:10:23 +08:00
Island
b5b836be66 Merge branch 'feat/add_bt_common_npl' into 'master'
feat(bt): Add host-agnostic BT OSAL and shared BLE profile task

See merge request espressif/esp-idf!50797
2026-07-27 14:03:28 +08:00
Liu Linyan
822d65f9be feat(ble_audio): Add specific libs for BLE Audio log compression 2026-07-27 11:26:25 +08:00
morris
281d61f131 Merge branch 'refactor/ll_functions_update' into 'master'
refactor(uhci): rename set_eof_mode to enable_eof_modes with bool en param

See merge request espressif/esp-idf!51144
2026-07-27 11:02:28 +08:00
Island
2961219b35 Merge branch 'idf/ble_audio_psram' into 'master'
feat(ble_audio): BLE Audio PSRAM support

See merge request espressif/esp-idf!51098
2026-07-27 10:31:09 +08:00
chenjianhua
0407893834 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-26 13:24:53 +08:00
Shreeyash Bhakare
c368c13d55 fix(nimble): Added security related fixes 2026-07-25 08:54:16 +05:30
Liu Linyan
8fb0fc6065 feat(ble_audio): BLE Audio PSRAM support 2026-07-25 09:01:08 +08:00
luoxu
cd30e70214 feat(ble_mesh): update lib to 79e3fee04e 2026-07-24 20:53:01 +08:00
Astha Verma
b360477e77 fix(nimble): Restore throughput after switching from LE Coded PHY 2026-07-24 16:36:44 +05:30
luoxu
56f78da32c feat(ble_mesh): supported get lib version 2026-07-24 17:10:22 +08:00
Wang Meng Yang
0185451ed1 Merge branch 'fix/bluedroid_aireview' into 'master'
Fix/bluedroid aireview

See merge request espressif/esp-idf!49972
2026-07-24 16:58:20 +08:00
Rahul Tank
d78d57c394 Merge branch 'bugfix/red_rem_feat_evt' into 'master'
Handle Read Remote Supported Feature failure

See merge request espressif/esp-idf!50243
2026-07-24 14:24:18 +05:30
morris
2a9d1ee20e refactor(uhci): rename set_eof_mode to enable_eof_modes with bool en param
Rename uhci_ll_rx_set_eof_mode → uhci_ll_rx_enable_eof_modes and its
parameter eof_mode → eof_modes to reflect that multiple EOF modes can
be enabled simultaneously via bitmask. Add bool en parameter so callers
can enable or disable without an outer if-check.
2026-07-24 16:21:09 +08:00
hejiaxin
54cd579d3b 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-23 15:46:38 +08:00
Island
9211373354 Merge branch 'idf/ble_audio_pts' into 'master'
feat(ble_audio): Miscellaneous update for verifying with PTS cases

See merge request espressif/esp-idf!50156
2026-07-23 11:14:35 +08:00
hejiaxin
1553b0ce67 fix(bt): Fix some bug in stm_sco.c
- Memory safety
- State machine & logic integrity
- Resource leaks
- Edge cases check
2026-07-23 10:56:32 +08:00
Wang Meng Yang
a151bc553a Merge branch 'bugfix/low_spp_throughput' into 'master'
change(bt/bluedroid): increased port low watermark of RFCOMM

Closes BTQABR2023-815

See merge request espressif/esp-idf!51031
2026-07-23 10:50:57 +08:00
Wang Meng Yang
e61ef3e4a4 Merge branch 'change/refactor_hidh_datapath' into 'master'
Change/refactor hidh datapath

Closes IDFGH-17363

See merge request espressif/esp-idf!49615
2026-07-23 10:47:19 +08:00
Liu Linyan
4362a3116f feat(ble_audio): Miscellaneous update for verifying with PTS cases 2026-07-22 20:38:57 +08:00
Wang Mengyang
53b357790b fix(bt): Fixed blocking during LMP packet type negotiation on ESP32-S31
In the Bluetooth connections with some smartphones, communication can possibly be blocked
during packet type negotation, when ESP32-S31 attempts to finalize the ACL-U transmission
and waits for the last Tx ACL-U packet to be transmitted, but peer device rejects the
packet with FLOW=STOP in its packet, thus causing a deadlock.

Closes https://github.com/espressif/esp-idf/issues/18797
2026-07-22 16:41:08 +08:00
liqigan
0564b09e86 fix(bt/bluedroid): Fixed use after free issue on osi_event_delete 2026-07-22 14:41:20 +08:00
liqigan
39b4b3f329 fix(bt/bluedroid): Fixed HID host reconnection bug and enabled load HID devices
Closes https://github.com/espressif/esp-idf/issues/18335
2026-07-22 14:41:20 +08:00
liqigan
540a4216df change(bt/bluedroid): Refactored HCI ACL datapath 2026-07-22 14:41:20 +08:00
liqigan
db12b3c279 change(bt/bluedroid): Refactored HID host datapath 2026-07-22 14:41:18 +08:00
Wang Meng Yang
bc428c91d5 Merge branch 'bugfix/bredr_critical_bugs' into 'master'
bugfix: fix issues raised from AI review

See merge request espressif/esp-idf!49755
2026-07-22 14:31:28 +08:00
Astha Verma
c653c09b9e fix(nimble): Handle Read Remote Supported Features failure correctly 2026-07-22 11:58:57 +05:30
Jin Cheng
1336f62653 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-21 19:29:08 +08:00
Zhou Xiao
2fa434eb50 fix(bt): keep BLE log ISR state in internal RAM 2026-07-21 16:27:39 +08:00
luoxu
aa9b565a6d fix(bt): fix BLE log compression build on Windows
The BLE log compression feature (CONFIG_BT_LOG_CRITICAL_ONLY ->
BLE_COMPRESSED_LOG_ENABLE) failed to build on Windows while working
correctly on Linux, due to two shell/platform-specific issues in the
compression script.

1. Module/source argument quoting. CMakeLists.txt passes the
   semicolon-separated module and source lists wrapped in single quotes
   ("'${MODULES}'") to protect ';' from POSIX shells, which strip them.
   cmd.exe does not treat single quotes as quoting characters, so on
   Windows the quotes reached the script literally and
   args.module.split(';') produced "'BLE_MESH" / "BLE_HOST'" instead of
   the clean names. These never matched the YAML module keys, every
   module was skipped ("Skipping module ... - config not found"), the
   compressed sources were never generated, and the build failed. Strip
   surrounding quote characters before splitting; this is a no-op on
   Linux/macOS where the shell already removed them.

2. CRLF line endings. With core.autocrlf=true the IDF sources are
   checked out as CRLF on Windows. The generated *_log_index.h macros
   use backslash-newline line-continuation; a backslash followed by
   '\r\n' is not a valid continuation in C, producing floods of syntax
   errors when the header is compiled. Write generated headers with
   newline='' to force LF, and normalize source content to LF right
   after reading so '\r' embedded inside multi-line argument expressions
   is also handled. Byte offsets stay consistent because both tree-sitter
   parsing and tag replacement operate on the normalized content.

Verified by full clean builds of examples/bluetooth/esp_ble_mesh/
vendor_models/vendor_client (esp32c6, bluedroid + mesh) from both
cmd.exe and PowerShell; both produce an identical vendor_client.bin.
2026-07-21 15:56:17 +08:00
Island
de98d9d4ad Merge branch 'feat/feat_support_phy_enable_using_regdma' into 'master'
Feat/feat support phy enable using regdma

Closes BLERP-2376, BLERP-2381, and PM-635

See merge request espressif/esp-idf!46356
2026-07-21 10:40:03 +08:00
Island
c3083dfae5 Merge branch 'opt/bluedroid_trace_none_without_ble_log_host' into 'master'
change(ble/bluedroid): disable host trace logs when BLE Log host is off

See merge request espressif/esp-idf!50902
2026-07-21 10:39:36 +08:00
Island
30c632bebb Merge branch 'bugfix/fix_bluedroid_set_rand_addr_during_scan' into 'master'
fix(ble/bluedroid): report set rand addr result on HCI complete

Closes BLERP-2965

See merge request espressif/esp-idf!50663
2026-07-21 10:39:27 +08:00
Island
756b89c852 Merge branch 'change/ble_update_lib_20260717' into 'master'
change(ble): [AUTO_MR] 20260717 - Update ESP BLE Controller Lib

Closes BLERP-2973, BLERP-2974, BLERP-2975, and BLERP-2976

See merge request espressif/esp-idf!50861
2026-07-20 16:42:19 +08:00
Island
e309933c07 Merge branch 'feat/optimize_for_esp32h4_light_sleep_ble_current' into 'master'
Feat/optimize for esp32h4 light sleep ble current

Closes BLERP-2958, BLERP-2959, BLERP-2960, and BLERP-2961

See merge request espressif/esp-idf!50415
2026-07-20 16:42:13 +08:00
zhanghaipeng
1f8f935e3f 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.
2026-07-20 15:43:27 +08:00
Wang Meng Yang
0a43435b7b Merge branch 'fix/ble_log_compression_add_local_header_file' into 'master'
feat(ble_log): mirror local compression headers

See merge request espressif/esp-idf!50870
2026-07-20 11:47:44 +08:00
yangfeng
94b05ceee6 fix(bt): Fix compatibility with A2DP API legacy usage methods
- Modify the timing of API calls in the A2DP example
- Add a2dp_stream_aac test case
- Closes https://github.com/espressif/esp-idf/issues/18786
2026-07-20 11:35:33 +08:00
cjin
8f845298c1 feat(ble): supported placing bt function in iram on esp32-h4 and esp32-s31 2026-07-20 10:48:26 +08:00
Rahul Tank
4e3756889e Merge branch 'bugfix/add_dis_ieee_udi_to_config' into 'master'
fix(nimble): Add option to disable IEEE and UDI Characteristic in DIS

See merge request espressif/esp-idf!50254
2026-07-18 09:31:15 +05:30