Commit Graph

1232 Commits

Author SHA1 Message Date
linruihao
5fa64e4f50 fix(bt): Correct the error code in pairing when pin code req rejected by host 2026-05-21 19:05:44 +08:00
Island
d907a9497c Merge branch 'bugfix/fix_ble_read_remote_feature_timeout_v5.5' into 'release/v5.5'
Fixed read remote feature timeout when using coded phy(2f683593) (5.5)

See merge request espressif/esp-idf!48063
2026-05-15 10:22:25 +08:00
Zhang Hai Peng
bf64433a6b feat(ble): Support BLE critical logs
(cherry picked from commit 0af57d731c)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-05-14 14:23:45 +08:00
Zhang Hai Peng
f68279de63 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


(cherry picked from commit 658ff8730b)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-05-13 21:37:00 +08:00
Jin Cheng
b5e9a8f849 fix(bt/controller): fixed sevaral controller issues
- Relax the TID checks during EPR to be compatible with some RealTek devices
        - Closes https://github.com/espressif/esp-idf/issues/18145
    - Fixed wrong HCI event used for eSCO connection update
    - Do not inform the host when conneciton request was automatically rejected
2026-05-11 13:44:31 +08:00
ShenWeilong
1d42b7d2d4 fix(ble): always init the default os queue for all of controllers 2026-04-29 16:53:01 +08:00
Shen Wei Long
41cc1446ce change(ble): [AUTO_MR] Update lib_esp32c6 to 6c6de5d6
(cherry picked from commit 70acbd85f2)

Co-authored-by: ShenWeilong <shenweilong@espressif.com>
2026-04-27 11:44:01 +00:00
Shen Wei Long
4d174fde94 change(ble): [AUTO_MR] Update lib_esp32c5 to 6c6de5d6
(cherry picked from commit 27e95081d2)

Co-authored-by: ShenWeilong <shenweilong@espressif.com>
2026-04-27 11:44:00 +00:00
Shen Wei Long
283531e301 change(ble): [AUTO_MR] Update lib_esp32h2 to 6c6de5d6
(cherry picked from commit f3b2bf78aa)

Co-authored-by: ShenWeilong <shenweilong@espressif.com>
2026-04-27 11:44:00 +00:00
Jiang Jiang Jian
2c7f5ace94 Merge branch 'bugfix/fix_some_bt_coex_bugs_v5.5' into 'release/v5.5'
fix(coex): fix some esp32 coexistence bugs (Backport v5.5)

See merge request espressif/esp-idf!47394
2026-04-20 18:23:22 +08:00
linruihao
3fdd5b25b4 fix(coex): fix some esp32 coexistence bugs
- fix ble scan may restart twice in coex scenarios
- fix bredr page/pscan coex request/release not match
- fix bredr incorrect inquiry length calculation
- update bredr page/inquiry pti
- add coex pti protection for entire page/inquiry event
2026-04-20 11:16:28 +08:00
Zhao Wei Liang
909a89e33f feat(ble): add adv tx options on ESP32-C5
(cherry picked from commit d7bfbef862)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-20 00:05:32 +08:00
Zhao Wei Liang
0e0c71b9a8 feat(ble): add adv tx options on ESP32-H2
(cherry picked from commit 8ef46541cd)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-20 00:05:32 +08:00
Zhao Wei Liang
329d3a64e7 feat(ble): add adv tx options on ESP32-C6
(cherry picked from commit e85bb5cca8)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-20 00:05:32 +08:00
Zhao Wei Liang
4e0cc17fba change(ble): [AUTO_MR] Update lib_esp32c6 to c9fbba6f
(cherry picked from commit 24d0f0fad1)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-20 00:05:32 +08:00
Zhao Wei Liang
34eeeef53a change(ble): [AUTO_MR] Update lib_esp32c5 to c9fbba6f
(cherry picked from commit a23c9acab7)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-20 00:05:32 +08:00
Zhao Wei Liang
438c5247e9 change(ble): [AUTO_MR] Update lib_esp32h2 to c9fbba6f
(cherry picked from commit 9bfcc76221)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-20 00:05:32 +08:00
Island
bde0a7361d Merge branch 'dev/ble-log-202603_v5.5' into 'release/v5.5'
dev: BLE Log 202603 (5.5)

See merge request espressif/esp-idf!47276
2026-04-08 10:32:01 +08:00
Jiang Jiang Jian
828a353388 Merge branch 'bugfix/fix_ble_controller_emi_assert_v5.5' into 'release/v5.5'
fix(ble): Fixed BLE assert in "emi.c" when low memory (5.5)

See merge request espressif/esp-idf!46914
2026-04-07 14:55:44 +08:00
Zhou Xiao
3b2852b9ee feat(bt): add BT_LOG_CRITICAL_ONLY bandwidth-optimized log mode
Add Kconfig options for bandwidth-optimized logging via the BLE Log
Async Output system. When enabled, controller log levels default to 2
and host/mesh log encoding is auto-selected.

- BT_LOG_CRITICAL_ONLY parent: selects BLE_LOG_ENABLED + compression
- BT_LOG_CRITICAL_ONLY_CTRL: supports both NimBLE and non-NimBLE (C3)
  controllers with default level override
- BT_LOG_CRITICAL_ONLY_HOST: host-agnostic, selects compressed log
  for Bluedroid conditionally
- BT_LOG_CRITICAL_ONLY_MESH: placeholder for mesh log encoding
- Guards against BT_STACK_NO_LOG conflict
2026-04-07 12:28:59 +08:00
Zhou Xiao
51c280d361 change(bt): consolidate BLE log Kconfig into common/Kconfig.in
Move per-chip BLE log Kconfig options (esp32c2/c5/c6/h2) into
components/bt/common/Kconfig.in for single-source-of-truth configuration.

Restructure menu as "BT Logs" with "Log Sources" sub-menu containing
controller log config options. Controller log output mode choice defaults
to BLE Log v2 when BLE_LOG_ENABLED, with legacy mode as deprecated
fallback. Migrate wrap_panic_handler and task_wdt_user_handler configs
as well since they depend on BT_LE_CONTROLLER_LOG_ENABLED.
2026-04-07 12:28:59 +08:00
Zhou Xiao
f56b739d33 change(bt/ble_log): remove BLE Log UHCI Out module
Delete ble_log_uhci_out.c and its header. Remove the UHCI Out source
from CMakeLists.txt and all BT_BLE_LOG_UHCI_OUT_* Kconfig options.
Remove per-chip BT_LE_CONTROLLER_LOG_UHCI_OUT_ENABLED Kconfig and
all UHCI Out caller references in esp32c5/c6/h2 controller bt.c.
Update ble_log_console README to reference the new BLE Log Module
UART DMA config. The functionality is superseded by the BLE Log
Module's UART DMA peripheral transport.
2026-04-07 12:28:41 +08:00
Island
9651a6bc5d Merge branch 'feat/use_common_config_to_sel_crypt_lib_v5.5' into 'release/v5.5'
Feat/use common config to sel crypt lib (v5.5)

See merge request espressif/esp-idf!46407
2026-04-07 12:11:55 +08:00
Island
a107766df0 Merge branch 'feat/support_run_time_alloc_for_esp_ip_test_v5.5' into 'release/v5.5'
Support Mempool Run Time Allocation for ESP IP Chips (v5.5)

See merge request espressif/esp-idf!46823
2026-04-01 14:03:12 +08:00
Jiang Jiang Jian
f4a1e4c976 Merge branch 'bugfix/fix_kconfig_for_ble_cte_depends_v5.5' into 'release/v5.5'
bugfix(ble): remove BT_LE_SECURITY_ENABLE dependency for CTE on ESP32-C5 (v5.5)

See merge request espressif/esp-idf!46341
2026-03-31 10:46:22 +08:00
Jiang Jiang Jian
9e1f20731d Merge branch 'fix/use_apb_max_state_for_ble_events_v5.5' into 'release/v5.5'
fix(ble): use apb max state for bt and enable should skip (v5.5)

See merge request espressif/esp-idf!46333
2026-03-31 10:46:08 +08:00
ShenWeilong
856318eca8 change(bt): use BT_SMP_CRYPTO_STACK_MBEDTLS to select bt cryption lib 2026-03-31 00:06:10 +08:00
Jin Chen
3994d5351f fix(ble): use apb max state for bt and enable should skip on ESP32-H2
(cherry picked from commit ac8fe378a0)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-30 09:36:14 +08:00
Jin Chen
5304090fd9 fix(ble): use apb max state for bt and enable should skip on ESP32-C6
(cherry picked from commit 73191cb5f9)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-30 09:36:14 +08:00
Jin Chen
ad2b8c7d4f fix(ble): use apb max state for bt and enable should skip on ESP32-C5
(cherry picked from commit 8365eb324f)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-30 09:36:14 +08:00
Jin Chen
669c7bb80f fix(ble): use apb max state for bt and enable should skip on ESP32-C2
(cherry picked from commit 9de0235a9f)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-30 09:36:14 +08:00
yangfeng
5830830175 feat(bt): Add APIs to control transmit power level
- API to read ACL real RSSI
- APIs to read/write tx power of inq/iscan/page/pscan/ACL
2026-03-24 14:28:55 +08:00
Zhang Hai Peng
7b1382a63e fix(ble): Fixed BLE assert in "emi.c" when low memory
(cherry picked from commit e3aac6f703)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-03-23 17:53:19 +08:00
cjin
d8d616bbc0 feat(ble): supported ble mempool run time allocation for esp ip chips 2026-03-23 15:10:14 +08:00
zhaoweiliang
c34ab561e9 change(ble): [AUTO_MR] Update lib_esp32c2 to b8594335 2026-03-23 15:08:15 +08:00
Jin Chen
15765b9df6 feat(ble): make env init function cuttable on ESP32-C2
(cherry picked from commit 5ec82368ba)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-23 15:08:15 +08:00
Jin Chen
5ef7dff97f change(ble): [AUTO_MR] Update lib_esp32h2 to 913c704d
(cherry picked from commit a8d705ff7a)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-03-23 15:07:39 +08:00
Jin Chen
9c6405881e change(ble): [AUTO_MR] Update lib_esp32c6 to 913c704d
(cherry picked from commit 06010a8b79)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-03-23 15:07:39 +08:00
Jin Chen
7d7ff14866 change(ble): [AUTO_MR] Update lib_esp32c5 to 913c704d
(cherry picked from commit 739cb8e00d)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-03-23 15:07:39 +08:00
cjin
0ccd2d53bf fix(ble): fix conn timeout after phy update on ESP32-C2 2026-03-19 09:52:29 +08:00
cjin
e4677d83da fix(ble): fix phy update ctrl process unexpectedly trimmed on ESP32C2 2026-03-12 09:32:56 +08:00
cjin
8b620d2070 fix(ble): fix ble reset randomly assertion on ESP32-C2 2026-03-11 11:17:46 +08:00
Jiang Jiang Jian
06b5b96b19 Merge branch 'bugfix/mistakenly_reject_peer_auth_req_v5.5' into 'release/v5.5'
fix(bt/controller): fixed remote LMP_AU_RAND is mistakely rejected (v5.5)

See merge request espressif/esp-idf!46210
2026-03-07 16:28:05 +08:00
hebinglin
a2840f0287 fix(hal): fix the issue of dual-core contention for RTC_CNTL regs 2026-03-06 20:07:26 +08:00
Geng Yu Chao
f116a215f3 fix(ble): remove error cte depends for esp32c5
(cherry picked from commit 403be0a770)

Co-authored-by: Geng Yuchao <gengyuchao@espressif.com>
2026-03-06 14:01:52 +08:00
Jin Cheng
73e03f17bf fix(bt/controller): fixed remote LMP_AU_RAND is mistakely rejected 2026-03-04 15:08:02 +08:00
Jin Chen
2f2e16f977 fix(ble): fix ble scan assertion when coex with wifi on ESP32-C2
(cherry picked from commit 974682d169)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-04 14:26:06 +08:00
Jiang Jiang Jian
6bd6650e97 Merge branch 'feat/fix_esp32c2_rom_rewrite_issue_rebase_v5.5' into 'release/v5.5'
Feat/fix esp32c2 rom rewrite issue rebase (v5.5)

See merge request espressif/esp-idf!45768
2026-03-03 19:38:05 +08:00
Island
e8e5527488 Merge branch 'feat/add_new_bluedroid_host_examples_v5.5' into 'release/v5.5'
feat(ble/bluedroid): Add new bluedroid host examples (v5.5)

See merge request espressif/esp-idf!44880
2026-03-02 10:36:29 +08:00
Wang Meng Yang
4f0a3ad06a Merge branch 'bugfix/32k_xtal_to_rtc_slow_v5.5' into 'release/v5.5'
fix(bt): Add some debug logs during A2DP sink decoding(v5.5)

See merge request espressif/esp-idf!45787
2026-02-28 17:19:36 +08:00