732 Commits

Author SHA1 Message Date
Jiang Jiang Jian
d5cd3b734d Merge branch 'feat/add_config_for_ble_vs_qa_cmd_v5.2' into 'release/v5.2'
fixed interrupt WDT when shutdown bt controller on ESP32(ba6739f) (v5.2)

See merge request espressif/esp-idf!36174
2025-01-09 11:51:26 +08:00
Chen Jian Hua
f1c8a8922c fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(fd62b31)
- Fixed periodic adv enable params checking
- Fixed BLE assert lld_scan.c 1728 when receiving directed adv
- Support resolving RPA to identity address when creating connection
- Fixed BLE assert rwble.c 505 param 00400010
- Fixed peer address type error in HCI LE meta event
- Fixed setting random address failed when extended adv is enabled


(cherry picked from commit 326f391f9c5a218bad521f3a1277fd09f240ac6d)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-01-07 14:33:27 +08:00
Chen Jian Hua
02056c7dae fix(bt): Update bt lib for ESP32(ba6739f)
- Fixed assert in lld_evt.c at line 2353
- Fixed interrupt WDT when shutdown bt controller
- Added config for BLE vendor HCI QA command
- Added config for BLE channel assessment and ping procedure


(cherry picked from commit ad3554fbed715c9cc64fe6db2a81b51770f63504)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-01-06 15:20:07 +08:00
Wang Meng Yang
92bfc4828c Merge branch 'bugfix/fix_btqabr2023330_v5.2' into 'release/v5.2'
fix(bt): Fix error code returned by create_conn_cancel_cmd at different status (backport v5.2)

See merge request espressif/esp-idf!35575
2024-12-27 11:01:07 +08:00
Zhao Wei Liang
cf11949a7b feat(ble): Support get ble controller free heap size on ESP32-C2
(cherry picked from commit 2cb7d2437bc81124c2cc4a0f4b9e94bac2318f0e)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:21 +08:00
Zhao Wei Liang
226d8d7c75 feat(ble): Support get ble controller free heap size on ESP32-H2
(cherry picked from commit 12f226be7d9b02e27d4e98b018d886af7fb8b621)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:19 +08:00
Zhao Wei Liang
b77e07b891 feat(ble): Support get ble controller free heap size on ESP32-C6
(cherry picked from commit aa7feb944923cd3d9920e63db9b675b31c8981f7)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:17 +08:00
xiongweichao
a6afd8cdfa fix(bt): Fixed some controller bugs
- Fix epr not being initiated after authentication is completed
- Fixed the issue HCI_READ_CLOCK returned parameter in slot
- Fixed the missmatching of CLKN and FCNT after clock update
2024-12-23 09:41:19 +08:00
chenqingqing
957dd92013 fix(bt): Fix error code returned by create_conn_cancel_cmd at different status
- Closes https://github.com/espressif/esp-idf/issues/7763
2024-12-23 09:41:19 +08:00
Island
455ea9541c Merge branch 'bugfix/fix_ble_aa_zero_c3_s3_v5.2' into 'release/v5.2'
fix(bt/ble): Update esp32c3/s3 libbtdm_app.a (555b0a2) (v5.2)

See merge request espressif/esp-idf!35690
2024-12-18 10:43:07 +08:00
xiongweichao
34a69668a8 fix(ble): fixed that the resolvable private address does not change when light sleep is enabled 2024-12-17 10:51:04 +08:00
zhanghaipeng
7ff64ac625 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(555b0a2)
- Check Access Address when receive connection request PDU
- Fix issue with BLE5.0 duplicate scan for chained packets
2024-12-17 10:51:00 +08:00
Zhao Wei Liang
d3a05021be fix(ble): fixed the connect issue when rx error aa on ESP32-C2
(cherry picked from commit 6b01a56e094e3220265c37fabfb42bade8417c2b)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:34 +08:00
Zhao Wei Liang
5fcf584127 feat(ble): support some vendor hci commands on ESP32-H2
(cherry picked from commit 15203f9f3596e61a64046c6fa29d69217ad5c13e)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:32 +08:00
Zhao Wei Liang
9738ee55ca feat(ble): support some vendor hci commands on ESP32-C6
(cherry picked from commit 5bd66eaa57dcecbdb7c9c3e8ac990feebebf1267)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:30 +08:00
Zhang Hai Peng
629c94b11e fix(blufi): Fixed blufi init fail after deinit
(cherry picked from commit 7addb57ccd53576b40d3cfeb24c185036053f4b4)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-09 17:45:27 +08:00
Island
71365083e6 Merge branch 'bugfix/fix_ble_creat_conn_fail_enh_v5.2' into 'release/v5.2'
fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type (v5.2)

See merge request espressif/esp-idf!35017
2024-12-06 15:49:16 +08:00
chenjianhua
35d7c5a4ab feat(ble/bluedroid): Support setting connection params when creating connection 2024-12-03 18:02:37 +08:00
zhiweijian
53b5379399 fix(bt/controller): Fixed BLE assert ke_mem.c line 267 on ESP32-C3 and ESP32-S3 2024-12-02 16:13:03 +08:00
gongyantao
aba91a5d2b fix(bt): fixed some issues in esp32 bt controller
1: fix duplicated lc_enc_restart_req when new lk type is semi-permanent
   key
2: reset PreventEncEvt flag at the end of restart encryption procedure
2024-11-29 14:11:17 +08:00
zwl
07181e5cc1 fix(ble): fixed the connect issue when rx error aa on ESP32-C6 2024-11-27 16:22:43 +08:00
Zhao Wei Liang
df3b401129 fix(ble): fixed the connect issue when rx error aa on ESP32-H2
(cherry picked from commit 093b65e27c76d2c5c6997d1ba5d8c0ca47e5229f)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-11-27 16:03:39 +08:00
chenjianhua
18920261c8 fix(bt): Update bt lib for ESP32(c3082c4)
- Fixed BLE creating connection when the connection already exists
2024-11-26 15:30:56 +08:00
Island
6e07162da2 Merge branch 'bugfix/fix_c2_light_sleep_coex_v5.2' into 'release/v5.2'
fix(ble): fix ble light sleep error on esp32c2 (v5.2)

See merge request espressif/esp-idf!35054
2024-11-26 11:10:11 +08:00
Jin Cheng
22074ee144 fix(bt/controller): Fixed some controller bugs on ESP32
- Fixed wrong logic in handling sniff transaction collision at slave
      side
    - Fixed the issue ACL is stopped too early before eSCO
2024-11-22 12:25:00 +08:00
Jin Chen
3186c881c0 fix(ble): fix ble light sleep error on esp32c2
(cherry picked from commit 23f7e33a97ad70ff1e73407650f7b8edbd91fc9a)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-22 10:42:44 +08:00
Island
e186bba371 Merge branch 'feature/support_moving_code_to_flash_v5.2' into 'release/v5.2'
feat(ble): Support for putting code in flash on ESP32-C2 (v5.2)

See merge request espressif/esp-idf!34784
2024-11-14 10:09:31 +08:00
Island
81c4470f7e Merge branch 'bugfix/fix_some_ble_bugs_240926_esp32_v5.2' into 'release/v5.2'
Fixed some BLE bugs 240926 on ESP32 (v5.2)

See merge request espressif/esp-idf!34552
2024-11-13 12:05:20 +08:00
Shen Weilong
a56d6f148f feat(ble): Support for putting code in flash on ESP32-C2 2024-11-11 17:49:23 +08:00
gongyantao
50170b643a fix(bt): fix some issues in bt controller
1: Store local device name into NVDS when handling hci_wr_local_name_cmd.
2: Set default device name during link manager initialization.
3: Set the QoS value to the minimum value if the calculated QoS is less
   than the minumum.
2024-11-08 14:31:34 +08:00
zhanghaipeng
ba1830f3f4 fix(bt/ble): Update esp32 libbtdm_app.a (17db8bd)
- Added a verification step for the Access Address within the CONNECT_IND PDU
2024-11-08 14:31:19 +08:00
chenjianhua
9133eda13c fix(bt): Update bt lib for ESP32(a2a7457)
- Fixed assert in ke_mem.c at line 409 when controller reset
- Added config for BLE instant passed workaround
- Fixed connection can't be established when initiating and advertising coexist
2024-11-08 14:30:29 +08:00
zhiweijian
c409db3b44 feat(bt/controller): Support controller code run in flash only 2024-11-07 16:51:56 +08:00
Chen Jian Hua
d9bc02607f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(52ee788)
- Fixed BLE vendor HCI set and get tx power
- Support BLE vendor HCI set adv aux offset command
- Support BLE vendor HCI set CSA support command
- Added config for BLE instant passed workaround
- Fixed btdm_sleep_clock_sync timeout workaround


(cherry picked from commit 1e3220b0b084ce0363e8268d6d1cf9d20fa07a59)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-11-07 16:51:56 +08:00
zwl
b14d182238 fix(ble): fixed occasional crash issue in low memory scenarios on ESP32-C6 2024-11-04 12:04:45 +08:00
Zhao Wei Liang
2d3216183c fix(ble): fixed occasional crash issue in low memory scenarios on ESP32-H2
(cherry picked from commit dbad6a0ca5430ff79f8339de8ca6236255b9c5c4)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-11-04 12:04:45 +08:00
Wang Meng Yang
470d405f13 Merge branch 'bugfix/update_btlib_v5.2' into 'release/v5.2'
fix(bt/controller): Fixed some controller bugs on ESP32 (v5.2)

See merge request espressif/esp-idf!34465
2024-11-04 09:37:24 +08:00
Island
bf1630df65 Merge branch 'bugfix/fix_assert_if_ble_sleep_init_failed_v5.2' into 'release/v5.2'
fix(ble): do not assert if ble sleep init failed (v5.2)

See merge request espressif/esp-idf!34428
2024-10-28 11:55:21 +08:00
Jin Cheng
cfd077d403 fix(bt/controller): Fixed some controller bugs on ESP32
- Fixed access NULL in SCO frame end
      Closes https://jira.espressif.com:8443/browse/IDFGH-10796
    - Added LAP checking for Periodic Inquiry
    - Removed an inproper assertion in SCO module
    - Fixed wrong logic in key exchange when
      LMP transaction collision occurred
    - Fixed the using of wrong error code in
      the transaction collision of role switch
2024-10-28 10:37:32 +08:00
xiongweichao
5572cc901c feat(ble): Support using 32k oscillator as Bluetooth sleep clock 2024-10-25 19:03:39 +08:00
cjin
4250272790 fix(ble): do not assert if ble sleep init failed 2024-10-25 10:52:51 +08:00
Island
95ac2b18e9 Merge branch 'bugfix/fix_bleqabr24_1282_v5.2' into 'release/v5.2'
Fixed BLE scanning and initiating coexist on ESP32 (v5.2)

See merge request espressif/esp-idf!33833
2024-10-09 17:19:45 +08:00
Island
c842477479 Merge branch 'bugfix/fix_bci_443_v5.2' into 'release/v5.2'
fix(bt/controller): Fixed the timeout of wake up timer when using RC OSC (v5.2)

See merge request espressif/esp-idf!33892
2024-10-09 17:18:59 +08:00
Zhang Hai Peng
f48b694fa2 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(01cc408)
- Fixed extended connectable advertising data length check


(cherry picked from commit 8a80675b7c05d613b3e9a7126a0049458b589db2)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-10-08 15:13:33 +08:00
Chen Jian Hua
4219bb9ea1 fix(bt/controller): Fixed ble get tx power error
(cherry picked from commit 4108a5cc4cb96039ed861703dda06f7f3a5969c3)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-27 18:33:37 +08:00
Chen Jian Hua
6208b93dad fix(bt/controller): Fixed the timeout of wake up timer when using RC OSC
(cherry picked from commit 873708579c99069d073f3d6c7ba6db154cbf16b9)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-27 18:33:34 +08:00
zhanghaipeng
31f6b3536c feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3 2024-09-27 15:50:37 +08:00
Chen Jian Hua
1d4acf2617 fix(bt): Update bt lib for ESP32(3bf7ef0)
- Fixed BLE scanning and initiating coexist


(cherry picked from commit 241b90f3f0209da8bac1bdd722486816815947c9)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-26 10:33:31 +08:00
zwl
3da56074c9 fix(ble): fixed occasional crash issue in multi-connect scenarios on ESP32-C6 2024-09-26 00:04:27 +08:00
Zhao Wei Liang
0974ae10dd fix(ble): fixed occasional assertion issue when enabling logging on ESP32-C2
(cherry picked from commit 0ef9ecb715f93bd0c4c4785357cabcaa36b31273)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-09-26 00:04:27 +08:00