Commit Graph

382 Commits

Author SHA1 Message Date
Yuan Mingfu
3cc5ad7ac4 bugfix: deinit ble for specifies ESP_BT_MODE_BTDM 2023-04-04 18:04:12 +08:00
Shen Weilong
0fce029b92 [esp32c2] Fixed the occasional assertion when deinit the ble controller 2023-02-27 16:56:05 +08:00
zwl
7b28d40c0a ble:Fixed issues of adv error stop and abnormal reporting of connection update complete event on ESP32-C2 2023-02-27 16:56:05 +08:00
zwl
530c07a5be Optimized NPL Freertos API 2023-02-27 16:56:05 +08:00
Jiang Jiang Jian
7c20c3742d Merge branch 'bugfix/fix_the_bluedroid_hci_crash_on_esp32c2' into 'release/v5.0'
Fixed the bluedroid hci crash due to insufficient memory on ESP32C2

See merge request espressif/esp-idf!22056
2023-02-27 15:07:31 +08:00
Jiang Jiang Jian
f39c3b286c Merge branch 'bugfix/coex_enable_disable_not_in_pairs_v5.0' into 'release/v5.0'
bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs(backport v5.0)

See merge request espressif/esp-idf!22094
2023-02-27 15:05:49 +08:00
chenjianhua
78437f48ae update bt-lib for ESP32
fix ble disconnect due to channel map update instant passed
2023-02-14 11:23:01 +08:00
Shen Weilong
699dde8a38 Fixed the bluedroid hci crash due insufficient memory on ESP32C2 2023-02-03 20:41:23 +08:00
wangmengyang
ebb7650e63 bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs on ESP32-C3, ESP32-S3 and ESP32-C2 2023-01-20 10:47:58 +08:00
zwj
0733694f1f Update bt lib for ESP32
- Add config to set duplicate scan list refresh period
- overwrite the oldest device infor if the list is full
- Fixed duplicate scan period is not accurate
2022-12-19 20:26:17 +08:00
zwj
e7ee437bcf Update bt lib for ESP32-C3 and ESP32-S3
- Add config to set duplicate scan list refresh period
- overwrite the oldest device infor if the list is full
- Fixed duplicate scan period is not accurate
2022-12-19 20:24:26 +08:00
chenjianhua
e95d7202ce update bt lib for ESP32-C3 and ESP32-S3
1 fixed privacy error for directed adv
2 fixed multi periodic adv sync failed in air
2022-12-19 20:23:34 +08:00
zwj
c656e7ec07 Fixed some memory was not released after bluetooth controller initialization failed on ESP32-C3 and ESP32-S3 2022-12-19 20:22:58 +08:00
chenjianhua
0b8f0e5456 update bt-lib for ESP32
1 change default TX power to 9 dBm
2 fixed disconnect reason 0x1f (unspecified error)
3 fixed connection timeout due to terminate ind has not been acknowledged
2022-12-19 20:19:59 +08:00
zwj
5fff471b50 Fixed some memory was not released after bluetooth controller initialization failed on ESP32 2022-12-19 20:19:28 +08:00
liuning
8ba9f8a6cf ci: fix esp_phy_modem_deinit issue 2022-12-15 10:48:04 +08:00
liuning
7d16868e32 phy: only set phy_init_flag at power domain off, when all modems deinit 2022-12-15 10:45:09 +08:00
zwl
e8555efe5b Renamed BAH 2022-12-13 18:05:00 +08:00
zwl
756dbc3f94 Fixed some occasional ble issues on ESP32H2BETA2 2022-12-13 17:50:14 +08:00
zwl
5cab9686bb Optimized the number of npl on ESP32C2 2022-12-13 17:50:00 +08:00
cjin
842349de6d ble: fix occasional assertion on ble rtc intr 2022-12-09 15:25:37 +08:00
zwl
de7e62fdfe Unify controller internal error code on ESP32-C2 2022-12-09 15:25:37 +08:00
cjin
5c481c5a08 ble: remove redundant pm lock on ble 2022-12-09 15:25:37 +08:00
Island
8e4bcb4875 Merge branch 'feature/add_comments_for_bt_connections' into 'release/v5.0'
Explain how much memory that will be used by each connection/advertiser.

See merge request espressif/esp-idf!21322
2022-12-06 17:21:12 +08:00
Wang Meng Yang
755ee147bd Merge branch 'feature/support_ble_max_conn_num_to_9_v5.0' into 'release/v5.0'
Support bluedroid host maximum number of connections to 9 (backport v5.0)

See merge request espressif/esp-idf!21400
2022-12-05 12:16:53 +08:00
Jiang Jiang Jian
9406e80d5f Merge branch 'bugfix/fix_c3_s3_ble_temperature_performance_v5.0' into 'release/v5.0'
Fixed bluetooth disconnection caused by HW temperature rise or fall(backport v5.0)

See merge request espressif/esp-idf!21370
2022-12-02 20:39:17 +08:00
Jiang Jiang Jian
6d1f2821f1 Merge branch 'feature/esp32c2_optimize_ble_init_v5.0' into 'release/v5.0'
Fixed memory leak when RAM free size is insufficient or setting ext scan...

See merge request espressif/esp-idf!21262
2022-12-02 20:37:16 +08:00
Jiang Jiang Jian
7c395f3ca8 Merge branch 'feature/support_ble_memory_release_on_esp32c2_v5.0' into 'release/v5.0'
Support BLE memory release on ESP32C2 (v5.0)

See merge request espressif/esp-idf!21189
2022-12-02 20:35:18 +08:00
Shen Weilong
dcc310f468 Explain how mush memory that will be used by each connection/advertiser. 2022-12-02 14:22:53 +08:00
zwj
8b0ec09c71 update BLE lib for ESP32-C3 and ESP32-S3
- Fixed lld_con.c line 3048 assert
- Fixed crash sometimes when connected as a slave by 8th device
2022-12-02 12:18:52 +08:00
zhiweijian
9cfffd2915 - update phy lib
- Enable BLE pll track to fix bluetooth disconnection caused by temperature rise or fall on ESP32C3 and ESP32S3
- call pll track in controller task
2022-12-01 18:44:31 +08:00
zwl
06290d44c3 Fixed interrupt latency when cache is disable on ESP32-C2 2022-11-29 16:27:05 +08:00
zwl
90fa0e5c49 Fixed memory leak when RAM free size is insufficient or setting ext scan parameters failed on ESP32-C2 2022-11-29 16:27:05 +08:00
Rahul Tank
6c4292f7b1 Support BLE memory release on ESP32C2 2022-11-22 10:38:40 +05:30
zwj
1b4499046a support BLE memory release on ESP32C3 and ESP32S3 2022-11-21 10:33:55 +08:00
zwj
7e168de48d Update bt lib for ESP32C3 and ESP32S3
- Added config to disable scan backoff
- Fixed llm_scan.c assert at line 1485 during controller deinit if duplicate scan is not stopped
- Call pll track in controller task
2022-11-21 10:33:35 +08:00
zwj
99cd53490b change default tx power from 3dBm to 9dBm 2022-11-21 10:33:35 +08:00
satish.solanke
6d11786776 Update_sdkdefaultconfig_BLE_only_flag ESP32C2 2022-11-21 10:33:35 +08:00
Jiang Jiang Jian
3305987d66 Merge branch 'bugfix/esp32c2_create_sync_lost_v5.0' into 'release/v5.0'
Fixed occasional failure to establish sync and occasional wdt timeout issues on ESP32C2

See merge request espressif/esp-idf!20862
2022-11-02 11:35:00 +08:00
zhiweijian
c35b14bb49 Fixed BLE array access out of bounds 2022-10-31 20:13:26 +08:00
zwl
3bc38b7ff4 Fixed occasional failure to establish sync and occasional wdt timeout issues on ESP32C2 2022-10-31 12:01:35 +08:00
Jiang Jiang Jian
6713c745c2 Merge branch 'bugfix/esp32c2_scan_assert_v5.0' into 'release/v5.0'
Fixed occasional crash during scanning

See merge request espressif/esp-idf!20580
2022-10-16 11:01:13 +08:00
Jiang Jiang Jian
65bf1ff368 Merge branch 'bugfix/use_nonblocking_coex_callback_v5.0' into 'release/v5.0'
bluetooth: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth(backport v5.0)

See merge request espressif/esp-idf!20414
2022-10-14 11:25:21 +08:00
zwl
6b980e526a Fixed occasional crash during scanning 2022-10-13 14:05:45 +08:00
Jiang Jiang Jian
2978de0f75 Merge branch 'rebase/fix_ble_mem_leak_issue_rls' into 'release/v5.0'
fix ble mem leak when sleep is enabled

See merge request espressif/esp-idf!20528
2022-10-13 10:49:46 +08:00
wangmengyang
2d4f6d5b62 bt: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth 2022-10-12 19:42:55 +08:00
cjin
baca425ce8 fix ble mem leak when sleep is enabled 2022-10-12 11:29:55 +08:00
Jiang Jiang Jian
5ae4f34cb8 Merge branch 'bugfix/fix_ble_lld_per_adv_assert_on_esp32c3_s3_v5.0' into 'release/v5.0'
Fixed BLE lld_per_adv.c line 401 assert (backport v5.0)

See merge request espressif/esp-idf!20506
2022-10-11 17:46:10 +08:00
Jiang Jiang Jian
bb6e0e52b8 Merge branch 'bugfix/fix_esp32_ble_assert_32_v5.0' into 'release/v5.0'
Fixed ESP32 BLE assert(32 0) (backport v5.0)

See merge request espressif/esp-idf!20508
2022-10-11 17:45:55 +08:00
zwj
60ece59f04 Fixed ESP32 BLE assert(32 0) 2022-10-09 16:06:28 +08:00
zwj
1030bdd299 Fixed BLE lld_per_adv.c line 401 assert 2022-10-09 16:02:06 +08:00
zwl
719f05306f Fixed the issue that master sends retransmitted data incorrectly on ESP32C2 2022-09-30 12:02:58 +08:00
cjin
0010f4c3a8 update controller lib for bugfix on light-sleep 2022-09-30 12:02:57 +08:00
cjin
9d7a7001ac fix ble compilation error 2022-09-30 12:02:57 +08:00
Jiang Jiang Jian
096fdb8bb4 Merge branch 'bugfix/bluedroid_debug_esp32c2_rls' into 'release/v5.0'
Bugfix/bludroid debug esp32c2

See merge request espressif/esp-idf!20244
2022-09-21 20:37:17 +08:00
cjin
d5349fcc53 update ble controller lib for bugfix on esp32c2 2022-09-21 14:16:52 +08:00
Jiang Jiang Jian
4bcf814855 Merge branch 'bugfix/ble_light_sleep_error_on_esp32c2' into 'release/v5.0'
Bugfix/ble light sleep error on esp32c2

See merge request espressif/esp-idf!20237
2022-09-21 10:53:29 +08:00
Jin Cheng
b7ad8a150f fixed the exhaustion of ACL buffer
fixed the duplication of connection request from the same device
2022-09-20 11:19:02 +00:00
cjin
3112c8b954 mbuf copy hci data error fix 2022-09-20 18:06:45 +08:00
zwl
549eb762d8 fixed wifi can't be connected after enable bt sleep mode 2022-09-20 14:26:28 +08:00
Jiang Jiang Jian
4b01f4080c Merge branch 'bugfix/fix_ble_disconnect_due_to_channel_map_instant_passed_v5.0' into 'release/v5.0'
Fixed BLE disconnection issue when channel map instant passed due to bad channels(backport v5.0)

See merge request espressif/esp-idf!20190
2022-09-20 14:24:32 +08:00
zwl
89a141eea2 fixed ble can't enter light sleep 2022-09-19 21:32:54 +08:00
satish.solanke
00beda2ef1 Fix: blufi example memory leak while init and deinit 2022-09-19 11:51:05 +05:30
zwj
a2575d6b4d update BLE lib for ESP32C3 and ESP32S3
Fixed BLE disconnection issue when channel map update failed due to bad channels
2022-09-16 21:23:40 +08:00
zwj
73d00170d6 Update ESP32-C3 and ESP32-S3 BLE lib
- Fixed the performance issue of BLE sync scan in coexistence scenario when PLL track is enabled
    - Fixed connect failed due to error sync found signal
    - Fixed BLE disconnect failed due to terminate_ind have sent but no ACK is received
    - Added ADV mode error check in ADV rx isr handler function
    - Fixed BLE RAL_UNDERRUN and TX_CRYPT_ERR assert
    - Disable scan continue
    - Fixed scan forever if scan continue is disable
2022-09-08 13:30:23 +00:00
zhiweijian
b6ec98535d Add QA test Functions 2022-09-01 13:56:52 +00:00
zwl
502d47fa44 add set/get txpwr api and fix issues such as disconnect and abnormal tx behavior for esp32c2 2022-08-29 15:39:01 +00:00
xiongweichao
7dcf576659 Fix bluetooth disconnection issue when light sleep and baseband power down are enabled 2022-08-26 15:59:33 +08:00
zwj
ccd9d0f8ce Update BLE lib for ESP32-C3 and ESP32-S3
- update ble tx power level mapping
- Fixed ble sch_arb assert
2022-08-23 19:42:28 +08:00
zwl
65d35b0b45 update ble controller lib for ble issues fixed on esp32c2(8dbbbf0269) 2022-08-16 22:04:30 +08:00
Jiang Jiang Jian
4ba5515dc0 Merge branch 'backport/backport_master_to_release_v5.0' into 'release/v5.0'
backport master to release v5.0(Backport v5.0)

See merge request espressif/esp-idf!19560
2022-08-16 16:37:54 +08:00
Li Shuai
b9a667b9f8 1. Wi-Fi: update tsf tick interval when lpclk is modified
2. Move register_lpclk_callback to coexistence
2022-08-15 21:16:11 +08:00
xiongweichao
555d72c90a make bluetooth and wifi use the same low power clock 2022-08-15 21:15:51 +08:00
xiongweichao
ebca41b3ca ESP32S3:bluetooth support use main XTAL in light sleep mode 2022-08-15 21:15:42 +08:00
xiongweichao
b8b7dcc159 ESP32C3:bluetooth support use main XTAL in light sleep mode 2022-08-15 21:15:13 +08:00
jingli
8cd7c30bc7 kconfig: refactor xtal freq kconfig to common configuration item 2022-08-08 13:53:02 +08:00
Island
6c8375e2d2 Merge branch 'feature/support_ble_on_esp32c2_26M' into 'master'
support BLE with 26M xtal for esp32c2

See merge request espressif/esp-idf!19300
2022-08-04 11:07:20 +08:00
Shen Weilong
028d071e84 support BLE with 26M xtal for esp32c2 2022-07-29 21:36:33 +08:00
xiongweichao
7eedd710c2 fix legacy pair controller does not send the link key to the host
Closes https://github.com/espressif/esp-idf/issues/5850
2022-07-28 14:21:48 +08:00
jincheng
44607e10ea add protect for bt_util_buf_env buffers when access by task and interrupt
ignore the assert_err in rm_bt_clkoff1_setf
2022-07-27 17:56:08 +08:00
Jiang Jiang Jian
9a6ccb7f57 Merge branch 'bugfix/make_sure_sempher_and_queue_used_in_isr_is_in_DRAM' into 'master'
Bugfix/make sure sempher and queue used in isr is in dram

Closes WIFI-3571, IDFGH-7458, IDFGH-7342, and IDFGH-7569

See merge request espressif/esp-idf!19160
2022-07-22 14:04:27 +08:00
Jiang Jiang Jian
22b17a3471 Merge branch 'bugfix/schm_process_in_active_crash' into 'master'
Coex: fixed crash when calculating end transfer time

See merge request espressif/esp-idf!18330
2022-07-22 11:02:08 +08:00
baohongde
6d631d14de components/bt: Make sure sempher and queue used in isr is in DRAM 2022-07-21 13:50:29 +08:00
Jiang Jiang Jian
8d98fbe26a Merge branch 'bugfix/remove_unused_ble_rtc_source_sel' into 'master'
Remove can not use wake up source for esp32h2

See merge request espressif/esp-idf!18966
2022-07-13 13:50:26 +08:00
Jiang Jiang Jian
1523a1bdef Merge branch 'bugfix/fix_esp32_c3_s3_adv_report_duplicate_check' into 'master'
Fix esp32c3/s3 adv report duplicate check

Closes BT-2440

See merge request espressif/esp-idf!18961
2022-07-12 14:00:33 +08:00
GengYuchao
df6d3eb602 Remove can not use wake up source for esp32h2 2022-07-12 11:23:59 +08:00
xiongweichao
b0b6ad21f8 coex: fixed crash when calculating end transfer time 2022-07-11 15:26:53 +08:00
Jiang Jiang Jian
4644e2c302 Merge branch 'bugfix/fix_esp32_ke_mem_c_assert' into 'master'
Fixed esp32 BLE ke_mem.c assert

See merge request espressif/esp-idf!18916
2022-07-11 14:02:39 +08:00
chenjianhua
42667adf70 fix esp32c3/s3 adv report duplicate check 2022-07-11 10:25:32 +08:00
Jiang Jiang Jian
9ec829f352 Merge branch 'bugfix/wifi_sta_and_ble_disconnect_BCI-303_master' into 'master'
component_bt: Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected

Closes BCI-303

See merge request espressif/esp-idf!18643
2022-07-08 19:43:10 +08:00
Jiang Jiang Jian
a7bf3af687 Merge branch 'bugfix/reset_ble_hw_on_inititalization' into 'master'
component/bt: reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3

Closes BT-2402

See merge request espressif/esp-idf!18831
2022-07-08 16:21:41 +08:00
zwj
9a46d06532 fix esp32 BLE ke_mem.c assert 2022-07-07 11:23:11 +00:00
Island
0d86ca59a6 Merge branch 'update/esp32h2_h2_beta2_controller_lib_to_cd9dd20' into 'master'
Update esp32h2 beta2 lib to controller master

See merge request espressif/esp-idf!18876
2022-07-06 22:13:05 +08:00
Jiang Jiang Jian
7b3ee47c67 Merge branch 'bugfix/fix_ble_ke_mem_c_assert_on_c3_s3' into 'master'
Fixed BLE ke_mem.c assert on esp32c3 and esp32s3

Closes BT-2405, BT-2406, and BCI-302

See merge request espressif/esp-idf!18863
2022-07-06 16:58:07 +08:00
wangmengyang
1d55f12c2d component/bt: reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3
1. Rename MACROs SYSTEM_WIFI_RST_EN register bit fields to be more recognizable
2. reset Bluetooth baseband and clock bits to fix the issue of task watchdog triggered during controller initialization due to invalid hardware state
2022-07-06 16:23:48 +08:00
xiongweichao
155c4a5cb3 Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected 2022-07-06 14:42:46 +08:00
GengYuchao
d145c337e0 Enable rpa_moudle reset function 2022-07-05 20:50:31 +08:00
GengYuchao
509ac4e748 Update esp32h2 beta2 lib to master 2022-07-05 15:15:41 +08:00
zwj
f15d7d28b5 fix ble ke_mem.c assert on esp32c3 and esp32s3 2022-07-05 03:18:14 +00:00
Jiang Jiang Jian
8ab78803d4 Merge branch 'bugfix/s3_wakeup_light_sleep_rtc_wdt_timeout' into 'master'
component_bt: Fixed rtc watchdog timeout when waking up light sleep due to some functions not in IRAM

See merge request espressif/esp-idf!18757
2022-07-04 18:21:29 +08:00