723 Commits

Author SHA1 Message Date
Zhao Wei Liang
811efe487c 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:05 +08:00
Zhao Wei Liang
778d18bab0 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:03 +08:00
Wang Meng Yang
38913142d9 Merge branch 'bugfix/fix_btqabr2023330_v5.1' into 'release/v5.1'
fix(bt): Fix error code returned by create_conn_cancel_cmd at different status (backport v5.1)

See merge request espressif/esp-idf!35574
2024-12-19 10:47:26 +08:00
Island
90b1dbbdd1 Merge branch 'bugfix/fix_ble_aa_zero_c3_s3_v5.1' into 'release/v5.1'
fix(bt/ble): Update esp32c3/s3 libbtdm_app.a (555b0a2) (v5.1)

See merge request espressif/esp-idf!35689
2024-12-18 10:42:48 +08:00
xiongweichao
0d4d43fe63 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-17 20:40:57 +08:00
chenqingqing
86949f53d1 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-17 20:40:57 +08:00
xiongweichao
cfdcded587 fix(ble): fixed that the resolvable private address does not change when light sleep is enabled 2024-12-17 10:50:13 +08:00
zhanghaipeng
263ecbc9be 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:50:06 +08:00
Zhao Wei Liang
4036633ee3 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:25 +08:00
Zhao Wei Liang
9f9deff3cb 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:23 +08:00
Zhao Wei Liang
3d6ed6a93b 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:21 +08:00
Zhang Hai Peng
d9ae4e437e 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:23 +08:00
Island
f639dcccf2 Merge branch 'bugfix/fix_ble_creat_conn_fail_enh_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type (v5.1)

See merge request espressif/esp-idf!35016
2024-12-06 15:49:21 +08:00
chenjianhua
abe0d3c1ff feat(ble/bluedroid): Support setting connection params when creating connection 2024-12-03 18:03:36 +08:00
zhiweijian
5f680167d3 fix(bt/controller): Fixed BLE assert ke_mem.c line 267 on ESP32-C3 and ESP32-S3 2024-12-02 16:18:33 +08:00
gongyantao
dc375a769d 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:12:00 +08:00
zwl
d8bd860402 fix(ble): fixed the connect issue when rx error aa on ESP32-C6 2024-11-27 16:20:29 +08:00
Zhao Wei Liang
e81b4628b6 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:34 +08:00
chenjianhua
f09d2524a2 fix(bt): Update bt lib for ESP32(c3082c4)
- Fixed BLE creating connection when the connection already exists
2024-11-26 15:34:26 +08:00
Island
43e4dd53e8 Merge branch 'bugfix/fix_c2_light_sleep_coex_v5.1' into 'release/v5.1'
fix(ble): fix ble light sleep error on esp32c2 (v5.1)

See merge request espressif/esp-idf!35053
2024-11-26 11:09:58 +08:00
Jin Cheng
3db4974814 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 17:26:00 +08:00
Jin Chen
b7b9367b21 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:41:40 +08:00
Island
febfdf6628 Merge branch 'feature/support_moving_code_to_flash_v5.1' into 'release/v5.1'
feat(ble): Support for putting code in flash on ESP32-C2 (v5.1)

See merge request espressif/esp-idf!34783
2024-11-14 10:09:26 +08:00
gongyantao
d9cfaead16 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-12 11:14:55 +08:00
zhanghaipeng
c7d169e38a fix(bt/ble): Update esp32 libbtdm_app.a (17db8bd)
- Added a verification step for the Access Address within the CONNECT_IND PDU
2024-11-12 11:14:46 +08:00
chenjianhua
a991b5df81 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-12 11:14:37 +08:00
Island
f068192bd9 Merge branch 'feat/support_controller_run_in_flash_only_v5.1' into 'release/v5.1'
feat(bt/controller): Support controller code run in flash only (backport v5.1)

See merge request espressif/esp-idf!34697
2024-11-12 09:55:29 +08:00
Shen Weilong
4fff9f7cf7 feat(ble): Support for putting code in flash on ESP32-C2 2024-11-11 17:45:55 +08:00
Jin Cheng
cb70ff68cc 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-11-10 21:30:39 +08:00
zhiweijian
1ddf2dd755 feat(bt/controller): Support controller code run in flash only 2024-11-07 16:52:38 +08:00
zwl
3e782595ca fix(ble): fixed occasional crash issue in low memory scenarios on ESP32-C6 2024-11-07 09:39:21 +08:00
Zhao Wei Liang
bf5e64de81 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-06 18:05:29 +08:00
Chen Jian Hua
07858aeec9 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-04 18:05:23 +08:00
Island
ed06d92d73 Merge branch 'bugfix/fix_ext_conn_adv_data_check_v5.1' into 'release/v5.1'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(01cc408) (v5.1)

See merge request espressif/esp-idf!34001
2024-10-29 16:03:47 +08:00
Island
cfe9f16abf Merge branch 'feat/get_ble_resolve_address_status_v5.1' into 'release/v5.1'
feat(ble/bluedroid): Support resolve BLE address for interval usage (v5.1)

See merge request espressif/esp-idf!33806
2024-10-29 16:03:38 +08:00
Island
fa24d81f43 Merge branch 'bugfix/fix_assert_if_ble_sleep_init_failed_v5.1' into 'release/v5.1'
fix(ble): do not assert if ble sleep init failed (v5.1)

See merge request espressif/esp-idf!34429
2024-10-28 11:55:12 +08:00
Island
2627e8b491 Merge branch 'bugfix/fix_bci_443_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed the timeout of wake up timer when using RC OSC (v5.1)

See merge request espressif/esp-idf!33891
2024-10-28 10:52:33 +08:00
Island
626d642f4e Merge branch 'bugfix/fix_bleqabr24_1282_v5.1' into 'release/v5.1'
Fixed BLE scanning and initiating coexist on ESP32 (v5.1)

See merge request espressif/esp-idf!33832
2024-10-28 10:52:28 +08:00
cjin
8da41a584b fix(ble): do not assert if ble sleep init failed 2024-10-25 10:51:31 +08:00
xiongweichao
b3ea519624 feat(ble): Support using 32k oscillator as Bluetooth sleep clock 2024-10-18 16:52:16 +08:00
Zhang Hai Peng
e0113b33c4 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:26 +08:00
Chen Jian Hua
fddbca1d60 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:28 +08:00
Chen Jian Hua
5bafa3e07f 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:25 +08:00
zhanghaipeng
94b5b8d60b feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3 2024-09-27 15:51:43 +08:00
Chen Jian Hua
ffdd43f2bf 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:24 +08:00
zhanghaipeng
e711935672 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(63eb54d)
- Fixed issue where RPA is not updated after BLE RPA timeout
2024-09-23 13:32:15 +08:00
Zhang Hai Peng
a0c57c0b6f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(e9ae856)
- Fixed BLE scan assert in lld_scan.c 1728


(cherry picked from commit 32c7694f5657938c7b853a234586ff3887424aed)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-09-23 11:13:20 +08:00
Island
71bac64a08 Merge branch 'bugfix/fixed_c6_crash_c2_crash_issue_v5.1' into 'release/v5.1'
Bugfix/fixed c6 crash c2 crash issue (v5.1)

See merge request espressif/esp-idf!33597
2024-09-19 20:21:06 +08:00
Chen Jian Hua
c846ee7917 fix(bt/controller): Change the max TX power to +20dBm on ESP32-C3 and ESP32-S3
(cherry picked from commit fe43c8f1b5c9dd0761211ca09c980a1cacf35f8c)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-18 17:34:20 +08:00
zwl
7890498092 fix(ble): fixed occasional crash issue in multi-connect scenarios on ESP32-C6 2024-09-18 17:03:37 +08:00