Commit Graph

556 Commits

Author SHA1 Message Date
chenjianhua
cf5895d07e Update bt lib for ESP32-C3 and ESP32-S3
- Fixed crash when controller initialization fails due to insufficient memory
2023-06-06 21:16:47 +08:00
zwl
a9d25460a7 ble:fixed the issue that slave reports the wrong address for master when address resolution disable 2023-05-29 20:59:13 +08:00
Jiang Jiang Jian
0501f87f33 Merge branch 'feature/use_api_to_enable_modem_on_esp32h2' into 'master'
ble: use modem_clock api to set clocks on ESP32-H2

See merge request espressif/esp-idf!23805
2023-05-19 11:01:15 +08:00
Shen Weilong
c7f357523a ble: use modem_clock api to set clock on ESP32-C6 2023-05-17 20:02:21 +08:00
cjin
41ea20908b BLE: update ble lib
Added version support for esp32c6 eco1
2023-05-16 19:18:53 +08:00
cjin
1952a26d5e ble:add version num support for esp32c6 chip 2023-05-16 19:18:53 +08:00
zwl
69571dfebf ble:fixed build error when disable smp 2023-05-16 16:07:01 +08:00
zwl
9b50d4e2ef ble:esp32c2 add rf temperature compensation 2023-05-16 16:07:01 +08:00
chenjianhua
6c10a7f60d Update bt lib for ESP32-C3 and ESP32-S3
- Fixed remote mic error during encryption procedure
2023-05-05 21:54:01 +08:00
Chen Jian Hua
3aa1ac99c7 Merge branch 'bugfix/fix_ble_hop_sel' into 'master'
Fixed BLE connection failed to be established when disabled 5.0 feature

See merge request espressif/esp-idf!23516
2023-05-04 10:16:07 +08:00
Jiang Jiang Jian
968ef8c24f Merge branch 'bugfix/fix_esp32_ble_disconnect_failed' into 'master'
Fixed BLE disconnection failure on ESP32

See merge request espressif/esp-idf!23450
2023-04-28 17:57:41 +08:00
chenjianhua
5908cd968f Update bt lib for ESP32-C3 and ESP32-S3
- Fixed ble hopping selection for connection when disabled 5.0 feature
2023-04-28 14:17:37 +08:00
Shen Weilong
64c9dfd7d2 ble: [ESP32C6][ESP32H2][ESP32C2] updata libble
Fixed the occasional mic error caused by wrong tx cnt
Fixed the BLE connection timeout issue
2023-04-28 11:21:39 +08:00
zhiweijian
025fe44edb Fixed BLE disconnection failure on ESP32 2023-04-26 11:20:09 +08:00
laokaiyao
bf2a7b2df6 esp32h4: removed esp32h4 related codes 2023-04-23 12:03:07 +00:00
Darian
836755679e Merge branch 'feature/bt_uses_creationg_with_caps_functions' into 'master'
BT: Remove "create static" calls from OSI

See merge request espressif/esp-idf!23187
2023-04-21 12:39:10 +08:00
Zhi Wei Jian
89bf31f458 Merge branch 'bugfix/fix_disconnect_due_to_consecutive_crc_error_in_first_6_intervals' into 'master'
Fixed disconnection due to consecutive CRC errors in first 6 intervals on ESP32

Closes CBLE50Y23-4

See merge request espressif/esp-idf!23207
2023-04-21 12:01:14 +08:00
Island
2300982af9 Merge branch 'bugfix/esp32c6_conn_lost_packet' into 'master'
Ble: bugfix for packet loss issue during connection on ESP32C6

Closes BLEQABR23-63 and BLEQABR23-55

See merge request espressif/esp-idf!23223
2023-04-20 12:00:29 +08:00
zwj
9d9252acbc Fixed disconnection due to consecutive CRC errors in first 6 intervals 2023-04-18 20:36:04 +08:00
zwl
c4ec33e7ef Ble: bugfix for packet loss issue during connection on ESP32C6 2023-04-17 19:37:00 +08:00
zwj
feb5edf8b0 improve scan performance when scan and sync coexist on ESP32-C3 and ESP32-S3 2023-04-17 12:27:08 +08:00
chenjianhua
056ae5dd21 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed non-connectable and non-scannable directed adv can't be scanned
2023-04-14 15:44:17 +08:00
Darian Leung
a5b04de565 bt: Remove FreeRTOS static allocation from OSI functions
Previously, the BT OSI would use various FreeRTOS "create static" functions to
ensure that semaphores and queues were always allocated to internal memory.
However, from commit e21ab0332b onwards, all
dynamic memory allocated by FreeRTOS will default to internal RAM.

Thus, the extra "create static" calls can be removed to simply the code.
2023-04-13 15:06:21 +08:00
zwj
00501c5b14 Fixed duplicate scan refresh cycle is not accurate after restarting scan on ESP32 2023-04-11 20:44:00 +08:00
xiongweichao
30c87c7a82 bt:Fixed esp32 controller bug
1. Fixed crash after controller disable and re-enable
2. Fixed the crash caused by processing the HCI_Read_Remote_Extented_Features command in the non-connected state

Closes https://github.com/espressif/esp-idf/issues/10835
2023-04-11 12:03:09 +08:00
Yuan Mingfu
cb6f56ffa2 bugfix: deinit ble for specifies ESP_BT_MODE_BTDM 2023-04-07 12:45:33 +00:00
baohongde
dff3c07e42 components/coexist: Set coex scan status when ble connecting 2023-04-06 11:09:46 +08:00
Jiang Jiang Jian
08b4bd2ecd Merge branch 'feature/add_interface_for_ble_QA_test' into 'master'
BLE: Add interface for QA test

Closes EBLE50Y23-69

See merge request espressif/esp-idf!22976
2023-03-31 19:43:54 +08:00
Jiang Jiang Jian
6ede152d87 Merge branch 'bugfix/unhandle_unsniff_req_disconnect' into 'master'
bt: Fixed disconnection due to not handling lmp_unsniff_req in LC_WAIT_SNIFF_SUB_RSP state

Closes BTQABR2023-25 and BT-3208

See merge request espressif/esp-idf!22941
2023-03-31 12:07:14 +08:00
xiongweichao
8f5c33cec1 1.Fixed disconnection due to not handling lmp_unsniff_req in LC_WAIT_SNIFF_SUB_RSP state
2.Fixed crash caused by supervision timeout greater than sniff interval
2023-03-30 11:15:38 +08:00
Shen Weilong
aad3d8344b BLE: Add interface for QA test
Fix sleep crash issue
2023-03-29 20:02:56 +08:00
zwj
a1bfc91f54 Fixed BLE HW RAL_UNDERRUN assert on ESP32C3 and ESP32S3 2023-03-29 17:13:15 +08:00
Jiang Jiang Jian
e797a06120 Merge branch 'bugfix/unify_btbb_init' into 'master'
esp_phy: added API esp_btbb_disable

See merge request espressif/esp-idf!22806
2023-03-23 20:34:03 +08:00
Jiang Jiang Jian
b6fda9723e Merge branch 'bugfix/fix_att_rsp_timeout' into 'master'
Fixed bluedroid host ATT Ignore wrong response error

Closes BLEQABR23-30 and BT-3224

See merge request espressif/esp-idf!22688
2023-03-23 17:10:54 +08:00
wangmengyang
cbb8bf9f88 esp_phy: added API esp_btbb_disable
APIs esp_btbb_enable and esp_btbb_disable are supposed to be used by 802.15.4 and Bluetooth module, and implemented with reference counter for resource management
2023-03-23 05:40:32 +00:00
Shen Weilong
90d6b9cbd7 ble: Update README files for bluedroid host examples on ESP32-H2
Disable clocks and phy modem directly in esp_bt_controller_deinit()
2023-03-20 19:09:29 +08:00
zhiweijian
3be3bef3a6 set BT_CTRL_BLE_MAX_ACT default value to 6 2023-03-20 15:54:47 +08:00
Jiang Jiang Jian
12b44b3a0a Merge branch 'bugfix/update_config_in_esp32h2_chip' into 'master'
ble: update config in esp32h2 chip

See merge request espressif/esp-idf!22708
2023-03-20 12:09:52 +08:00
isha.pardikar@espressif.com
7d3e347ba2 Bluetooth : Fixed h2 controller function definition 2023-03-16 18:03:39 +05:30
cjin
e317f07798 ble: update config in esp32h2 chip 2023-03-15 21:02:12 +08:00
zwj
a9d9f115c3 - Support ESP32C3 and ESP32S3 new BLE lib
- Disable controller 5.0 feature bits if host 5.0 feature is not enabled
- Fixed extend ADV parameters check for ADV_DIRECT_HI
2023-03-13 10:47:18 +00:00
jingli
cb0f517fe3 soc/soc_caps: update soc caps for chips that support power-down of modem hardware
Closes WIFI-4424
2023-03-10 14:15:27 +08:00
zwl
57c7310512 ble: Add assertion checking for bluedroid hci on ESP32-C2,ESP32-C6 and ESP32-H2 2023-03-09 20:02:23 +08:00
Jiang Jiang Jian
fe979e6513 Merge branch 'feature/merge_c3_s3_bt_files_to_one' into 'master'
Merge ESP32C3 and ESP32S3 BLE bt.c, esp_bt.h and kconfig files to one

Closes BT-3209

See merge request espressif/esp-idf!22453
2023-03-08 10:53:01 +08:00
zwj
a5e43a7d43 Merge ESP32C3 and ESP32S3 BLE bt.c files to one 2023-03-06 14:53:03 +08:00
Shen Weilong
f39648040e BLE: Add ble support for esp32h2 2023-03-06 10:43:17 +08:00
Shen Wei Long
20cc537044 Merge branch 'bugfix/fix_assertion_when_deinit_ble_controller' into 'master'
[esp32c2] Fixed the occasional assertion when deinit the ble controller

Closes BT-3203

See merge request espressif/esp-idf!22455
2023-02-28 20:53:21 +08:00
wangmengyang
2c4fc5d9ea bt: add coexistence internal API declarations and clean up some unused coexistence hooks 2023-02-26 06:58:18 +00:00
liuning
b3a040aa98 coex: apply new coex_schm_callback 2023-02-26 06:58:18 +00:00
wangmengyang
1661694e0b bt: added coex adapter operation to get version of coexist module to ESP32 Bluetooth Controller 2023-02-26 06:58:18 +00:00
liuning
103772df94 esp_wifi: support adapter of all chips for new coex lib 2023-02-26 06:58:18 +00:00
Shen Weilong
c1329974a0 [esp32c2] Fixed the occasional assertion when deinit the ble controller 2023-02-21 14:03:37 +08:00
Island
50ae186ff7 Merge branch 'bugfix/esp32c2_fixed_adv_stop' into 'master'
ble:Fixed issues of adv error stop and abnormal reporting of connection update...

Closes BT-3137 and BT-3144

See merge request espressif/esp-idf!22310
2023-02-15 14:20:51 +08:00
Kapil Gupta
30a2558450 esp_wifi: Merge wpa_supplicant and esp_wifi Kconfig 2023-02-11 07:38:45 +08:00
zwl
f79d0e6a43 ble:Fixed issues of adv error stop and abnormal reporting of connection update complete event on ESP32-C2 2023-02-10 14:16:07 +08:00
cjin
9985371b8a BLE: fixed hci event fail on bluedroid host 2023-02-03 17:57:33 +08:00
zwl
3a5373a5d0 Fixed the issue that Offest Base in SyncInfo was zero on ESP32-C6 2023-01-31 20:34:04 +08:00
Jiang Jiang Jian
43f5f3d56d Merge branch 'bugfix/coex_enable_disable_not_in_pairs' into 'master'
bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs

Closes BCI-317

See merge request espressif/esp-idf!21895
2023-01-18 17:01:02 +08:00
Island
2dc96f9a27 Merge branch 'feature/esp32c6_enable_pcl_feature' into 'master'
Enabled PCL feature on ESP32C6

Closes IDF-6529

See merge request espressif/esp-idf!21903
2023-01-17 17:35:04 +08:00
zwl
38c5f239be Enabled PCL feature on ESP32C6 BT Controller 2023-01-16 12:28:44 +08:00
Shen Weilong
45aaeda1e3 modify bt sdkconfig to support bluedroid examples for esp32c6 2023-01-13 15:05:34 +08:00
Zhi Wei Jian
1002ad1f90 Merge branch 'bugfix/fix_disconn_due_to_instant_passed' into 'master'
Fix ble disconnect due to channel map update instant passed

Closes BT-3085

See merge request espressif/esp-idf!21889
2023-01-10 10:48:37 +08:00
zwl
06937271bb Optimized NPL Freertos API 2023-01-06 15:10:18 +08:00
wangmengyang
29610b8a1b bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs on ESP32-C3, ESP32-S3, ESP32-C2 and ESP32-C6 2023-01-05 12:34:49 +08:00
chenjianhua
c0dd6896a7 update bt-lib for ESP32
fix ble disconnect due to channel map update instant passed
2023-01-04 11:22:33 +08:00
Shen Weilong
e41b35b089 1. Update libbt
2. Release the controller's .bss and .data memory
3. Modify the kconfig in nimble host
2023-01-04 11:17:07 +08:00
shenweilong
93fc1bd05f support ble on esp32c6 2023-01-04 11:10:10 +08:00
Cao Sen Miao
4713a9a7f2 ESP32H2: Introduce new chip target esp32h2, hello_world example supported 2022-12-29 12:29:14 +08:00
Shu Chen
0215575606 Merge branch 'feature/esp32c6_ieee802154_support' into 'master'
ieee802154: add ieee802154 support for esp32c6

See merge request espressif/esp-idf!21615
2022-12-22 18:01:58 +08:00
xiaqilin
57a6abdad1 ieee802154: add support ieee802154 for esp32c6 2022-12-22 10:45:23 +08:00
zwj
9ac7b16124 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 15:15:37 +08:00
Zhi Wei Jian
67cfef0acd Merge branch 'feature/add_config_to_set_duplicate_scan_list_refresh_time' into 'master'
Add config to set duplicate scan list refresh period on ESP32-S3 and ESP32-C3

Closes BT-3073 and BT-3023

See merge request espressif/esp-idf!21586
2022-12-15 16:29:44 +08:00
Jiang Jiang Jian
97d6050fea Merge branch 'feature/esp32c2_optimize_npl_element_count' into 'master'
Feature/esp32c2 optimize npl element count

Closes BT-3012

See merge request espressif/esp-idf!21562
2022-12-14 17:18:07 +08:00
zwj
5e72006fb9 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-14 15:54:01 +08:00
Zhi Wei Jian
cd5ce86cf2 Merge branch 'bugfix/fix_ble_conn_failed_in_air' into 'master'
Change default TX power to 9 dBm on ESP32

Closes BT-2436

See merge request espressif/esp-idf!21567
2022-12-14 14:43:54 +08:00
chenjianhua
d7c97ce20b 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-13 21:40:04 +08:00
zwl
cdcdc50cfe Renamed BAH 2022-12-13 18:02:19 +08:00
zwl
a83ee7d406 Fixed some occasional ble issues on ESP32H2BETA2 2022-12-13 17:47:28 +08:00
zwl
0b3490acd8 Optimized the number of npl on ESP32C2 2022-12-13 17:47:28 +08:00
chenjianhua
5c533afbae 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-13 10:33:22 +08:00
Jiang Jiang Jian
f0fd0b7bc3 Merge branch 'rebase/remove_redundant_pm_lock_on_ble' into 'master'
ble: remove redundant pm lock on ble

See merge request espressif/esp-idf!21357
2022-12-12 14:49:23 +08:00
Zhi Wei Jian
6842d2f8c9 Merge branch 'bugfix/fix_mem_not_released_after_controller_init_failed_on_esp32c3' into 'master'
Fixed some memory was not released after bluetooth controller initialization failed on ESP32-C3 and ESP32-S3

Closes BT-3047 and BT-3025

See merge request espressif/esp-idf!21504
2022-12-12 11:15:34 +08:00
cjin
77d870c73a ble: fix occasional assertion on ble rtc intr 2022-12-09 15:23:44 +08:00
zwl
46127774fa Unify controller internal error code on ESP32-C2 2022-12-09 15:23:44 +08:00
cjin
6d83c999c6 ble: remove redundant pm lock on ble 2022-12-09 15:23:44 +08:00
zwj
b5a6e9a528 Fixed some memory was not released after bluetooth controller initialization failed on ESP32-C3 and ESP32-S3 2022-12-08 17:26:14 +08:00
zwj
e9bfaf9a41 Fixed some memory was not released after bluetooth controller initialization failed on ESP32 2022-12-07 15:04:39 +08:00
Shen Wei Long
67507baf37 Merge branch 'feature/add_comments_for_bt_connections_master' into 'master'
Explain how much memory that will be used by each connection/advertiser.

See merge request espressif/esp-idf!21321
2022-12-06 16:55:26 +08:00
Shen Weilong
b3d248df95 Explain how mush memory that will be used by each connection/advertiser. 2022-12-02 14:21:22 +08:00
Zhi Wei Jian
18e0cd6214 Merge branch 'feature/support_ble_max_conn_num_to_9' into 'master'
Support bluedroid host maximum number of connections to 9

Closes BT-2914, BT-3000, and BT-2915

See merge request espressif/esp-idf!20933
2022-12-02 12:10:27 +08:00
liuning
d9ef6aed66 ci: fix esp_phy_modem_deinit issue 2022-11-30 16:39:40 +08:00
Jiang Jiang Jian
09231b4fa2 Merge branch 'bugfix/fix_failure_of_wifi_channel_configuration' into 'master'
phy: only set phy_init_flag at power domain off, when all modems deinit

Closes WIFI-4983

See merge request espressif/esp-idf!21235
2022-11-30 14:41:08 +08:00
zwj
51c739c181 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-11-29 17:37:04 +08:00
zwl
81d6b8f011 Fixed interrupt latency when cache is disable on ESP32-C2 2022-11-29 16:29:32 +08:00
zwl
1732a6d044 Fixed memory leak when RAM free size is insufficient or setting ext scan parameters failed on ESP32-C2 2022-11-29 16:29:26 +08:00
liuning
b8d3553a1c phy: only set phy_init_flag at power domain off, when all modems deinit 2022-11-25 03:18:12 +00:00
C.S.M
28b2deaf24 Merge branch 'feature/add_target_esp32h2' into 'master'
ESP32-H2: Introduce new target for ESP32H2

See merge request espressif/esp-idf!21190
2022-11-24 18:31:19 +08:00
Alexey Gerenkov
47c2c13de5 build: Adds support for universal Clang toolchain 2022-11-23 13:25:16 +03:00
Cao Sen Miao
86aa4df5b5 ESP32-H2: Introduce new target for ESP32H2 2022-11-23 14:38:05 +08:00
zhiweijian
ebd2825379 - 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-11-21 10:19:54 +08:00
zwj
b2a17e9d4c 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-16 15:58:32 +08:00
zwj
8dc4207e69 change default tx power from 3dBm to 9dBm 2022-11-16 15:44:29 +08:00
Jiang Jiang Jian
8ea3865430 Merge branch 'feature/support_ble_memory_release_on_esp32c2' into 'master'
Support BLE memory release on ESP32C2

See merge request espressif/esp-idf!20838
2022-11-14 19:32:01 +08:00
laokaiyao
8677216576 esp32h2: renaming esp32h2 to esp32h4 2022-11-08 17:05:33 +08:00
Zhi Wei Jian
d5306303f0 Merge branch 'feature/support_ble_memory_release_on_esp32c3_and_esp32s3' into 'master'
Support Bluetooth to release .bss and .data segment memory on ESP32C3 and ESP32S3

Closes IDFGH-8470

See merge request espressif/esp-idf!20700
2022-11-02 11:00:53 +08:00
Jiang Jiang Jian
b313d7e2cd Merge branch 'bugfix/esp32c2_create_sync_lost' into 'master'
Fixed occasional failure to establish sync and occasional wdt timeout issues on ESP32C2

See merge request espressif/esp-idf!20861
2022-11-01 21:00:47 +08:00
zhiweijian
29e4fab59e Fixed BLE array access out of bounds 2022-10-31 20:03:41 +08:00
zwl
de3f7888c6 Fixed occasional failure to establish sync and occasional wdt timeout issues on ESP32C2 2022-10-31 11:44:50 +08:00
Rahul Tank
7ca82b1b29 Support BLE memory release on ESP32C2 2022-10-27 18:00:01 +05:30
zwj
d600496800 support BLE memory release on ESP32C3 and ESP32S3 2022-10-27 14:22:15 +08:00
Jiang Jiang Jian
6e65b61c8a Merge branch 'bugfix/esp32c2_scan_assert' into 'master'
Fixed occasional crash during scanning

Closes BT-2784

See merge request espressif/esp-idf!20578
2022-10-14 18:02:06 +08:00
Jiang Jiang Jian
0ebae990a0 Merge branch 'bugfix/use_nonblocking_coex_callback' into 'master'
bluetooth: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth

See merge request espressif/esp-idf!20413
2022-10-13 14:57:08 +08:00
zwl
07d844f565 Fixed occasional crash during scanning 2022-10-13 11:48:50 +08:00
Jiang Jiang Jian
55eaf66a94 Merge branch 'rebase/fix_ble_mem_leak_issue' into 'master'
fix ble mem leak when sleep is enabled

See merge request espressif/esp-idf!20527
2022-10-13 10:48:15 +08:00
cjin
071abb4866 fix ble mem leak when sleep is enabled 2022-10-12 11:23:28 +08:00
Satish Solanke
34722483b3 Merge branch 'master' into 'support/Update_sdkdefaultconfig_BLE_only_flag'
# Conflicts:
#   examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble_50/peroidic_adv/sdkconfig.defaults.esp32c2
#   examples/bluetooth/bluedroid/ble_50/peroidic_sync/sdkconfig.defaults.esp32c2
2022-10-11 10:39:15 +00:00
wangmengyang
7736cdefd8 bt: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth 2022-10-11 16:36:37 +08:00
Zhi Wei Jian
1308ff3d21 Merge branch 'bugfix/fix_esp32_ble_assert_32' into 'master'
Fixed ESP32 BLE assert(32 0)

Closes BT-2809

See merge request espressif/esp-idf!20446
2022-10-08 21:51:50 +08:00
Wang Meng Yang
0fa55c897f Merge branch 'bugfix/fix_ble_lld_per_adv_assert_on_esp32c3_s3' into 'master'
Fixed BLE lld_per_adv.c line 401 assert

Closes BT-2624

See merge request espressif/esp-idf!20447
2022-10-08 20:49:43 +08:00
zwj
457006e04e Fixed BLE lld_per_adv.c line 401 assert 2022-09-30 15:45:37 +08:00
zwj
4ba1dd0a9c Fixed ESP32 BLE assert(32 0) 2022-09-30 15:07:24 +08:00
zwl
8a221f0073 Fixed the issue that master sends retransmitted data incorrectly on ESP32C2 2022-09-29 16:26:10 +08:00
cjin
0d113fb609 update controller lib for bugfix on light-sleep 2022-09-26 21:25:48 +08:00
cjin
f289710ccf fix ble compilation error 2022-09-26 20:51:13 +08:00
cjin
8e348c3f63 update ble controller lib for bugfix on esp32c2 2022-09-21 12:34:41 +00:00
cjin
872baad9b9 mbuf copy hci data error fix 2022-09-21 12:34:41 +00:00
Jiang Jiang Jian
292fe7c57f Merge branch 'bugfix/ble_light_sleep_error_on_esp32c2_master' into 'master'
Bugfix/ble light sleep error on esp32c2 master

Closes BLE-161 and BLE-162

See merge request espressif/esp-idf!20248
2022-09-21 10:53:18 +08:00
Jiang Jiang Jian
19759d5d33 Merge branch 'bugfix/acl_buf_ocf_and_conn_fail' into 'master'
bugfix/fixed the exhaustion of ACL buffer and duplicated connection requests

Closes ESPCS-855

See merge request espressif/esp-idf!19794
2022-09-20 15:12:14 +08:00
zwl
16c8a369e6 fixed wifi can't be connected after enable bt sleep mode 2022-09-20 14:44:00 +08:00
Wang Meng Yang
02aad58856 Merge branch 'bugfix/fix_ble_disconnect_due_to_channel_map_instant_passed' into 'master'
Fixed BLE disconnection issue when channel map instant passed due to bad channels

Closes BT-2764, BT-2730, and BT-2649

See merge request espressif/esp-idf!20189
2022-09-20 14:13:27 +08:00
zwl
f42eed9491 fixed ble can't enter light sleep 2022-09-20 12:08:09 +08:00
satish.solanke
77b8276578 Fix: blufi example memory leak while init and deinit 2022-09-19 10:17:50 +05:30
zwj
f95c347013 update BLE lib for ESP32C3 and ESP32S3
Fixed BLE disconnection issue when channel map update failed due to bad channels
2022-09-16 21:25:22 +08:00
zwj
c6b7bbdab9 Update ESP32-C3 and ESP32-S3 BLE lib
- Fixed the performance issue of usage of PLL track related baseband IRQsFixed 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-07 12:20:01 +08:00
jincheng
1282eda148 fixed the exhaustion of ACL buffer
fixed the duplication of connection request from the same device
2022-08-31 16:24:59 +08:00
Jiang Jiang Jian
8d9c51f76d Merge branch 'feature/add_txpwr_api_on_esp32c2' into 'master'
add set/get txpwr api for esp32c2

See merge request espressif/esp-idf!19520
2022-08-29 23:35:25 +08:00
Zhi Wei Jian
4a5662bc25 Merge branch 'feature/add_qa_test_funcs' into 'master'
Add QA test Functions for esp32

See merge request espressif/esp-idf!19735
2022-08-29 21:04:02 +08:00
zwl
30e47072f9 add set/get txpwr api and fix issues such as disconnect and abnormal tx behavior for esp32c2 2022-08-29 11:32:18 +08:00
zhiweijian
0b4122ecee Add QA test Functions 2022-08-23 21:20:43 +08:00
xiongweichao
9ee49832ea Fix bluetooth disconnection issue when light sleep and baseband power down are enabled 2022-08-22 15:06:48 +08:00
songruojing
304a8f142d esp32c6: introduce the target
Add esp32c6 target to tools and Kconfig
Create directories and files that are essential for `idf.py --preview set-target esp32c6`
2022-08-19 11:13:02 +08:00
zwj
788f7265c0 Update BLE lib for ESP32-C3 and ESP32-S3
- update ble tx power level mapping
- Fixed ble sch_arb assert
2022-08-11 21:29:26 +08:00
satish.solanke
42743a7189 Update_sdkdefaultconfig_BLE_only_flag ESP32C2 2022-08-09 16:28:01 +00:00
jingli
ee3423834e kconfig: refactor xtal freq kconfig to common configuration item 2022-08-05 19:12:29 +08:00
Island
74abb42053 Merge branch 'feature/update_to_the_latest_controller_lib' into 'master'
Feature/update to the latest controller lib

See merge request espressif/esp-idf!19372
2022-08-05 17:51:16 +08:00
zwl
dd05a3754a update ble controller lib for ble issues fixed on esp32c2(8dbbbf0269) 2022-08-04 15:19:51 +08:00
Li Shuai
4f2cec8495 1. Wi-Fi: update tsf tick interval when lpclk is modified
2. Move register_lpclk_callback to coexistence
2022-08-04 14:11:25 +08:00
xiongweichao
bb5e7004b9 make bluetooth and wifi use the same low power clock 2022-08-04 14:01:34 +08:00
xiongweichao
1fec2b9529 ESP32S3:bluetooth support use main XTAL in light sleep mode 2022-08-04 14:01:34 +08:00
xiongweichao
d85d927bb0 ESP32C3:bluetooth support use main XTAL in light sleep mode 2022-08-04 14:01:34 +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
morris
7863c1bc45 Merge branch 'bugfix/fix_rtc_freq_err_for_h2_beta1' into 'master'
Bugfix/fix rtc freq err for h2 beta1

See merge request espressif/esp-idf!18682
2022-07-04 16:46:17 +08:00
Wang Meng Yang
73cfc078a0 Merge branch 'bugfix/restore_edr_en_and_protect_for_vhci_env' into 'master'
bugfix/restore edr_en and add protect for vhci_env

Closes IDFGH-6254, IDFGH-6766, IDFGH-7605, and AUD-3629

See merge request espressif/esp-idf!18388
2022-07-01 19:31:01 +08:00
GengYuchao
95c8d775d0 Update lib for h2 beta2 2022-06-30 17:02:00 +08:00
GengYuchao
b474c83840 Add support for esp32h2 beta2 2022-06-30 17:02:00 +08:00
GengYuchao
07a470bccc Update ble lib for h2 beta1 2022-06-30 17:02:00 +08:00
xiongweichao
9531fae1d3 Fixed rtc watchdog timeout when waking up light sleep due to some functions not in IRAM 2022-06-29 19:56:47 +08:00
zwj
ed593ba168 update ble lib (444e4a2b)
- fix rpa entry err if addr resol is disabled
- fix aux connect crash
2022-06-27 14:50:26 +08:00
jincheng
70d892fbb8 restore edr_en which was wrongly cleared by role switch
add critical protection for vhci_env_p->vhci_intr_st
ignore max_page when handle remote features

Closes https://github.com/espressif/esp-idf/issues/7923
Closes https://github.com/espressif/esp-idf/issues/8394
Closes https://github.com/espressif/esp-idf/issues/1921
2022-06-21 19:23:41 +08:00
GengYuchao
1dabebf771 Fix Kconfig format issue and add option 2022-06-20 17:00:12 +08:00
GengYuchao
b2f8a3c694 Update bt controller interface file 2022-06-20 17:00:12 +08:00
GengYuchao
633e9282b7 Update the CMake compilation architecture and update the controller configuration options 2022-06-20 17:00:12 +08:00
GengYuchao
d1afa7f8d5 Update ble controller lib for esp32c2 2022-06-20 17:00:12 +08:00
Jack
cb0dd5cc75 fix the bug that some memory leaked in phy after wifi/ble deinit 2022-06-16 20:42:20 +08:00
zwj
fd90341138 support ble modem sleep and light sleep 2022-06-14 19:52:50 +08:00
Jiang Jiang Jian
b617ccfb4c Merge branch 'feature/esp32c2_eco1_bluetooth_update_0525_for_MR' into 'master'
Support bluetooth for esp32c2 chip

See merge request espressif/esp-idf!18243
2022-06-04 17:35:17 +08:00
Geng Yuchao
910b296d72 Add missing configuration items for BLE controller 2022-06-04 11:35:18 +08:00
Geng Yuchao
8533457208 Add bluetooth controller lib for esp32c2 2022-06-04 01:00:04 +08:00
Geng Yuchao
0722e6a0b7 Update controller lib for esp32h2 2022-06-04 01:00:04 +08:00
Geng Yuchao
5bba3ebed9 Fix esp32h2 controller support. 2022-06-04 00:59:56 +08:00
Geng Yuchao
5c3f0bfe7c Add esp32c2 controller support. 2022-06-04 00:59:21 +08:00
Geng Yuchao
50b762af1f Add Bluetooth controller menuconfig option for esp32c2 and esp32h2 2022-06-03 22:41:33 +08:00
xiongweichao
d888665160 Bluetooth build fail when power management is enabled
Closes https://github.com/espressif/esp-idf/issues/9081
2022-06-02 10:46:19 +08:00
satish.solanke
3a42007680 Bluedroid porting changes for esp32h2
created common Kconfig for common flag of nimbble and Bluedroid

fix compile error

created common cfg file for controller

fix the compilation error on tip of master

added common controller flags and fixed compilation error

sdkconfig rename for target specific
2022-05-30 08:42:45 +00:00
Jiang Jiang Jian
0e94779b2e Merge branch 'feature/support_esp32c2_wifi_new' into 'master'
Bringup ESP32C2 Wi-Fi

Closes IDF-3905

See merge request espressif/esp-idf!18136
2022-05-29 18:25:24 +08:00
Jack
7a8b63869f deinit BB MAC back memory when they are not used 2022-05-29 00:13:32 +08:00
Anton Maklakov
cfa3e68d1b bt: esp32s3, make int types consistent 2022-05-27 08:03:54 +00:00