Commit Graph

1233 Commits

Author SHA1 Message Date
ShenWeilong
4508400647 fix(ble): always init the default os queue for all of controllers 2026-05-01 19:06:33 +05:30
ShenWeilong
3780c9fd5a change(ble): [AUTO_MR] Update lib_esp32c6 to 6c6de5d6 2026-04-29 12:11:52 +08:00
ShenWeilong
cf1ccce54d change(ble): [AUTO_MR] Update lib_esp32c5 to 6c6de5d6 2026-04-29 12:11:39 +08:00
ShenWeilong
9c90e35c1c change(ble): [AUTO_MR] Update lib_esp32h2 to 6c6de5d6 2026-04-29 12:11:30 +08:00
Island
7fc3744abd Merge branch 'change/ble_update_lib_20260409_v6.0' into 'release/v6.0'
change(ble): [AUTO_MR] 20260409 - Update ESP BLE Controller Lib (6.0)

See merge request espressif/esp-idf!47419
2026-04-28 14:25:25 +08:00
Island
6cf5b5f67f Merge branch 'dev/ble-log-202603_v6.0' into 'release/v6.0'
dev: BLE Log 202603 (6.0)

See merge request espressif/esp-idf!47277
2026-04-28 13:25:12 +08:00
zhaoweiliang
014c7112ea change(ble): [AUTO_MR] Update lib_esp32c5 to c9fbba6f 2026-04-09 16:30:25 +08:00
zhaoweiliang
961a890531 change(ble): [AUTO_MR] Update lib_esp32c6 to c9fbba6f 2026-04-09 16:29:21 +08:00
zhaoweiliang
55009cc2ea change(ble): [AUTO_MR] Update lib_esp32h2 to c9fbba6f 2026-04-09 16:28:20 +08:00
Zhao Wei Liang
675e037340 feat(ble): add adv tx options on ESP32-C5
(cherry picked from commit d7bfbef862)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-09 16:18:37 +08:00
Zhao Wei Liang
b19537d26c feat(ble): add adv tx options on ESP32-H2
(cherry picked from commit 8ef46541cd)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-09 16:18:37 +08:00
Zhao Wei Liang
dfee38ce1a feat(ble): add adv tx options on ESP32-C6
(cherry picked from commit e85bb5cca8)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-04-09 16:18:36 +08:00
zhaoweiliang
ea68016cd1 fix(ble): fixed timeout disconnect issue on ESP32-C6 and ESP32-H2 2026-04-08 11:07:10 +08:00
zhaoweiliang
f7eae67f25 fix(ble): fixed timeout disconnect issue on ESP32-C5 2026-04-08 11:02:45 +08:00
Zhou Xiao
23d64937f3 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


(cherry picked from commit c223a3f835)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-03 21:14:59 +08:00
Zhou Xiao
fa9c6d53bb 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.


(cherry picked from commit b5b886fd1e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-03 21:14:54 +08:00
Zhou Xiao
94761261f2 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.


(cherry picked from commit d51892380b)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-03 21:14:38 +08:00
linruihao
8bc55358c2 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-03-24 20:47:10 +08:00
xiongweichao
1713808a13 fix(bt): Fix crash due to functions not placed in IRAM 2026-03-24 11:58:30 +08:00
Jiang Jiang Jian
1ad6fdb5b0 Merge branch 'bugfix/fix_ble_controller_emi_assert_v6.0' into 'release/v6.0'
fix(ble): Fixed BLE assert in "emi.c" when low memory (6.0)

See merge request espressif/esp-idf!46915
2026-03-24 11:01:13 +08:00
Zhang Hai Peng
52a33960ee 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:21 +08:00
cjin
1a2597eb64 feat(ble): supported ble mempool run time allocation for esp ip chips 2026-03-23 15:10:54 +08:00
zhaoweiliang
7c9719121c change(ble): [AUTO_MR] Update lib_esp32c2 to b8594335 2026-03-23 14:56:43 +08:00
Jin Chen
260fe3bb6f change(ble): [AUTO_MR] Update lib_esp32h2 to 913c704d
(cherry picked from commit a8d705ff7a)

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

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

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-03-23 14:56:43 +08:00
Jin Chen
86c6941ddb 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 14:56:43 +08:00
Jiang Jiang Jian
897f50dbf2 Merge branch 'feat/bt_distance_test_v6.0' into 'release/v6.0'
feat(bt): Add APIs to read ACL real RSSI and read/write tx power of inq/iscan/page/pscan/ACL (v6.0)

See merge request espressif/esp-idf!46643
2026-03-23 10:31:10 +08:00
yangfeng
728f29289d 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-20 14:26:10 +08:00
cjin
a2a04f8bfd fix(ble): fix conn timeout after phy update on ESP32-C2 2026-03-20 14:13:55 +08:00
Jiang Jiang Jian
d6000ccecd Merge branch 'feat/use_common_config_to_sel_crypt_lib_v6.0' into 'release/v6.0'
Feat/use common config to sel crypt lib (v6.0)

See merge request espressif/esp-idf!46408
2026-03-20 10:39:59 +08:00
Jiang Jiang Jian
bea959e55f Merge branch 'bugfix/fix_kconfig_for_ble_cte_depends_v6.0' into 'release/v6.0'
bugfix(ble): remove BT_LE_SECURITY_ENABLE dependency for CTE on ESP32-C5 (v6.0)

See merge request espressif/esp-idf!46342
2026-03-20 10:39:26 +08:00
Jiang Jiang Jian
edf0bf67de Merge branch 'fix/use_apb_max_state_for_ble_events_v6.0' into 'release/v6.0'
fix(ble): use apb max state for bt and enable should skip (v6.0)

See merge request espressif/esp-idf!46334
2026-03-20 10:39:19 +08:00
Jiang Jiang Jian
2676490557 Merge branch 'feat/fix_esp32c2_rom_rewrite_issue_rebase_v6.0' into 'release/v6.0'
Feat/fix esp32c2 rom rewrite issue rebase (v6.0)

See merge request espressif/esp-idf!45769
2026-03-20 10:30:46 +08:00
Jiang Jiang Jian
9b9dc79038 Merge branch 'change/ble_update_lib_20260127_v6.0' into 'release/v6.0'
change(ble): [AUTO_MR] 20260127 - Update ESP BLE Controller Lib (v6.0)

See merge request espressif/esp-idf!45678
2026-03-20 10:26:31 +08:00
Jiang Jiang Jian
04314133e8 Merge branch 'bugfix/mistakenly_reject_peer_auth_req_v6.0' into 'release/v6.0'
fix(bt/controller): fixed remote LMP_AU_RAND is mistakely rejected (v6.0)

See merge request espressif/esp-idf!46209
2026-03-20 10:15:17 +08:00
Jiang Jiang Jian
dfa5e5d53a Merge branch 'bugfix/esp_idf_s3_deepsleep_dead_v6.0' into 'release/v6.0'
fix(hal): fix the issue of dual-core contention for RTC_CNTL regs(v6.0)

See merge request espressif/esp-idf!46180
2026-03-20 10:15:14 +08:00
Jiang Jiang Jian
5313356b9a Merge branch 'bugfix/lc_not_wakeup_v6.0' into 'release/v6.0'
fix(ble): Fix restore write-back error caused by memory allocated in PSRAM(v6.0)

See merge request espressif/esp-idf!46000
2026-03-20 10:14:34 +08:00
Shen Wei Long
b57d517ef9 change(bt): use BT_SMP_CRYPTO_STACK_MBEDTLS to select bt cryption lib
(cherry picked from commit aa40fdcc64)

Co-authored-by: ShenWeilong <shenweilong@espressif.com>
2026-03-09 09:23:35 +00:00
Geng Yu Chao
25b992c524 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:54 +08:00
Jin Chen
500f4ef6d9 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-06 10:13:23 +08:00
Jin Chen
9c64cb3a91 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-06 10:13:23 +08:00
Jin Chen
d592e8bd6d 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-06 10:13:23 +08:00
Jin Chen
c93ede4b24 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-06 10:13:22 +08:00
Jin Cheng
253bfd7db1 fix(bt/controller): fixed remote LMP_AU_RAND is mistakely rejected 2026-03-03 10:45:01 +08:00
hebinglin
e2e1aa4502 fix(hal): fix the issue of dual-core contention for RTC_CNTL regs 2026-03-02 14:29:08 +08:00
Jin Chen
bf5cdc7163 feat(ble): apply new method for rom code logic change on ESP32-C2
(cherry picked from commit 2a0df334e3)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-02 00:05:00 +08:00
Jin Chen
528979fce6 feat(ble): support for ble module stripping on ESP32-C2
(cherry picked from commit b90840a570)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-02 00:05:00 +08:00
xiongweichao
3fe5147faa fix(bt): Replace 32k_xtal with rtc_slow 2026-02-25 10:04:29 +08:00
xiongweichao
5d3138a759 fix(ble): Fix restore write-back error caused by memory allocated in PSRAM 2026-02-24 10:12:03 +08:00