Commit Graph

871 Commits

Author SHA1 Message Date
Chen Jian Hua
9fb4a45c66 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(a684dd5)
- Fixed clear legacy adv error when adv not exist
- Disable anonymous extended adv reporting
- Fixed BLE assert lld_adv.c 2992
- Fixed heap assert due to adv data buffer double freeing
- Fixed BLE 0x08 disconnect when the win size is greater than half of the conn interval


(cherry picked from commit 4602665e5d)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-04-21 14:33:23 +08:00
linruihao
ecd1ad7a50 fix(bt/controller): Fixed access external memory in isr context 2025-04-21 14:23:11 +08:00
Jin Cheng
8bedc3c88e fix(bt/controller): update libbtdm_app.a
- fixed errors in the coexistance of ACL and SCO
- fixed dynamic priority config error in dual mode
2025-04-21 14:23:11 +08:00
Island
01d62ded11 Merge branch 'change/ble_update_lib_20250417_v5.1' into 'release/v5.1'
change(ble): [AUTO_MR] 20250417 - Update ESP BLE Controller Lib (v5.1)

See merge request espressif/esp-idf!38542
2025-04-21 10:40:54 +08:00
Wang Meng Yang
6c52731c6f Merge branch 'fix/some_issues_in_bt_controller_v5.1' into 'release/v5.1'
fix(bt): fixed some issues in bt controller(backport v5.1)

See merge request espressif/esp-idf!38451
2025-04-18 17:50:52 +08:00
Shen Wei Long
c08112a9b7 change(ble): [AUTO_MR] Update lib_esp32c6 to cd6ba0ec
(cherry picked from commit a89916eef4)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-04-18 14:09:53 +08:00
Shen Wei Long
a49f2f512f change(ble): [AUTO_MR] Update lib_esp32h2 to cd6ba0ec
(cherry picked from commit d48cc9ce2a)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-04-18 14:09:51 +08:00
Zhou Xiao
e056bd41dd feat(ble): support configurable rxbuf opt feat on ESP32-C6
(cherry picked from commit 5fbbec8655)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-17 10:53:56 +08:00
Zhou Xiao
02f9afd8a4 feat(ble): support configurable rxbuf opt feat on ESP32-H2
(cherry picked from commit 4937d3c883)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-17 10:53:54 +08:00
Zhou Xiao
66afbc467b feat(ble): use new section for ble sleep on ESP32-C2
(cherry picked from commit ce4e012c8b)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-17 10:53:52 +08:00
Zhou Xiao
049dc29d98 change(ble): [AUTO_MR] Update lib_esp32c2 to fca2b9ea
(cherry picked from commit 09467baed0)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 10:53:50 +08:00
Zhou Xiao
f5ab59e2ec change(ble): [AUTO_MR] Update lib_esp32c6 to 76549818
(cherry picked from commit e2d1a5509e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 10:53:47 +08:00
Zhou Xiao
de3d1efabe change(ble): [AUTO_MR] Update lib_esp32h2 to 76549818
(cherry picked from commit c11bb1ddd0)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 10:53:45 +08:00
gongyantao
a78bc07ce9 fix(bt): fixed some issues in bt controller
- add check for Wi-Fi channel
- fix the incorrect unit of duration_min in cpb tx
- recalculate the channel map when afh is enabled
- fix incorrect vendor event count causing an assertion failure
2025-04-16 15:29:35 +08:00
baohongde
00a728f932 feat(coex): Support BR/EDR (e)SCO and Wi-Fi coexistence 2025-04-09 11:01:32 +08:00
Chen Jian Hua
406597cc08 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(566c8e3)
- Support BLE vendor hci set RX sensitivity and AGC gain command


(cherry picked from commit 8742bbe553)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-03-31 12:05:13 +08:00
Island
1f4106fcfe Merge branch 'feature/add_vendor_ble_cmd_definitions_5.1' into 'release/v5.1'
Feature/add vendor ble cmd definitions (v5.1)

See merge request espressif/esp-idf!37961
2025-03-27 17:15:00 +08:00
Geng Yuchao
5d190b92ca feat(ble):Add Kconfig support for direction finding feature 2025-03-26 16:31:39 +08:00
Shen Weilong
1f32b394fb feat(ble/controller): Added memory boundary check for ESP32-C6 and ESP32-H2 2025-03-25 15:40:10 +08:00
Shen Weilong
7819da8490 feat(ble/controller): Added memory boundary check for ESP32-C2 2025-03-25 15:39:04 +08:00
zhiweijian
6159b54ef7 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3 (03d0f8a6)
- Remove unused functions in the controller
2025-03-25 15:35:09 +08:00
chenjianhua
7e7ab1c82d fix(bt): Update bt lib for ESP32(dc1cd581)
- Remove unused functions in the controller
- Add an SDK config for the minimum size of encryption key
2025-03-25 15:35:09 +08:00
Zhao Wei Liang
f9ab136a01 feat(ble): change whitelist max size to 31 on ESP32-C2
(cherry picked from commit 578f2358c6)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:18:06 +08:00
Zhao Wei Liang
2de1e0c5a4 feat(ble): change whitelist max size to 31 on ESP32-C6
(cherry picked from commit 2b435687b0)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:18:06 +08:00
Zhao Wei Liang
a19799cbd0 fix(ble): fixed hci driver stack protection fault issue on ESP32-C2
(cherry picked from commit afd44d14b9)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:18:06 +08:00
Zhao Wei Liang
1e14a01f63 fix(ble): fixed hci driver stack protection fault issue on ESP32-C6
(cherry picked from commit ec4a1324f5)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:18:06 +08:00
linruihao
77e1943ed2 fix(bt): Fix controller disable cause iwdt timeout on esp32 2025-03-21 11:16:22 +08:00
Zhou Xiao
df176c9f55 fix(ble): fix ble log init failure mem leak for ESP32
(cherry picked from commit bb9dc5a927)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:54:09 +08:00
Zhou Xiao
53f7c6f58b fix(ble): fix ble log init failure mem leak for ESP32-C3
(cherry picked from commit 9ff9fb0661)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:54:07 +08:00
Zhou Xiao
ca33fdac08 feat(ble): add enhanced connect function on ESP32-C2
(cherry picked from commit 71cea01694)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 12:54:02 +08:00
Zhou Xiao
ae3b1680dc feat(ble): support ble log simple output via SPI interface for ESP32-C6
(cherry picked from commit eae9b795aa)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:54:00 +08:00
Zhou Xiao
8442fb9abf feat(ble): support ble log simple output via SPI interface for ESP32-H2
(cherry picked from commit e99b3c6f6a)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:58 +08:00
Zhou Xiao
8b8384140e feat(ble): support ble log simple output via SPI interface for ESP32-C2
(cherry picked from commit df829ac919)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:55 +08:00
Zhou Xiao
346d3819e9 change(ble): [AUTO_MR] Update lib_esp32c2 to 5d9a6661
(cherry picked from commit f198302067)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:53 +08:00
Zhou Xiao
8dc2ca29d8 change(ble): [AUTO_MR] Update lib_esp32c6 to 82a8be7d
(cherry picked from commit 3b85cf8818)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:51 +08:00
Zhou Xiao
6b0b3ccaad change(ble): [AUTO_MR] Update lib_esp32h2 to 82a8be7d
(cherry picked from commit 83da04398d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:49 +08:00
Island
588f566017 Merge branch 'bugfix/reduce_controller_bin_size_v5.1' into 'release/v5.1'
fix(ble/controller): reduce controller bin size (backport v5.1)

See merge request espressif/esp-idf!37746
2025-03-14 11:01:42 +08:00
Island
e4f4a78f5b Merge branch 'fix/feed_wdts_during_ble_log_dump_c2_v5.1' into 'release/v5.1'
fix(ble): add feed wdts during ble log dump for ESP32-C2 (v5.1)

See merge request espressif/esp-idf!37717
2025-03-13 19:34:20 +08:00
zhiweijian
37f0a678c0 fix(ble/controller): reduce controller bin size 2025-03-13 17:43:59 +08:00
Island
3991203223 Merge branch 'bugfix/fix_some_ble_bugs_250220_esp32c3_v5.1' into 'release/v5.1'
Fixed some BLE bugs 250220 on esp32c3(b34b7d6) (v5.1)

See merge request espressif/esp-idf!37698
2025-03-13 17:34:14 +08:00
Island
2c25cdf1cb Merge branch 'feature/update_controller_lib_20250310_v5.1' into 'release/v5.1'
Feature/update controller lib 20250310 (v5.1)

See merge request espressif/esp-idf!37679
2025-03-13 14:24:46 +08:00
Zhou Xiao
f9f17fc70a fix(ble): add feed wdts during ble log dump for ESP32-C2
(cherry picked from commit e2e8e7dce1)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-13 12:53:35 +08:00
Island
ff51717640 Merge branch 'bugfix/disable_dbg_hci_cmd_on_esp32_v5.1' into 'release/v5.1'
Disable debug vendor hci command on ESP32 (v5.1)

See merge request espressif/esp-idf!37627
2025-03-13 10:55:41 +08:00
Shen Weilong
02c08ca49c feat(ble): tell controller if vhci is enabled for ESP32-C6 and ESP32-H2 2025-03-13 09:04:56 +08:00
Shen Wei Long
09ef128249 feat(ble): tell controller if vhci is enabled for ESP32-C2
(cherry picked from commit 892b3a0b0e)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-03-13 09:01:34 +08:00
Chen Jian Hua
640ee17ca7 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b34b7d6)
- Fixed enhanced TX power setting and getting for legacy adv
- Fixed BLE assert lld_con.c 2387
- Fixed compatibility issues during the encryption procedure
- Support BLE vendor hci enable CCA command


(cherry picked from commit d672f909f3)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-03-12 15:33:24 +08:00
chenjianhua
d0840de93e fix(bt): Update bt lib for ESP32(e250cf1)
- Disable debug vendor hci command
2025-03-10 15:37:34 +08:00
gongyantao
326abfbf18 fix(bt): fixed some issues in bt controller
- fixed the issue where the NULL pointer was deferenced in lc_free state
- avoid accessing released ACL resources in SCO logic
2025-03-10 15:37:22 +08:00
Jin Cheng
9372cf169c fix(bt/controller): fixed some controller bugs on ESP32.
1. added a VSC to control whether to initiate lmp_auto_rate
        - Closes https://github.com/espressif/esp-idf/issues/15133
    2. fixed EA resource cleanup error after SNIFF negotiation failure
        - Closes https://github.com/espressif/esp-idf/issues/13605
    3. removed an assertion in SCO data TX handler after disconnection
        - Closes https://github.com/espressif/esp-idf/issues/15176
2025-03-10 15:37:12 +08:00
Sudeep Mohanty
2bba3944c2 fix(panic_handler): Updated panic handler to use RTC WDT
This commit updates the following:
- Updates the panic handler to use only the RTC WDT to reset the system.
- Refactors some of the panic handler code.
- Updates Bluetooth files where in they now feed the WDTs instead of
  reconfiguring them.
- Removes some unnecessary configuration of WDTs from various files.
- Added a unit test to verify that the system does not lock up when the
  panic handler is stuck.
- Updates the memprot unit tests to work with the refactored panic
  handler.

Closes https://github.com/espressif/esp-idf/issues/15166
Closes https://github.com/espressif/esp-idf/issues/15018
Closes https://github.com/espressif/esp-idf/issues/10110
2025-03-06 09:10:09 +01:00