Commit Graph

3439 Commits

Author SHA1 Message Date
zwl
eeea47ec5f feat(bluetooth/controller): support default tx power configurable on ESP32C2 2024-07-18 10:50:54 +08:00
linruihao
3a08385930 fix(coex): Update bt lib for ESP32-C3 and ESP32-S3(e4ba7f6)
- Fixed coexist LoadProhibited issue
2024-07-17 15:45:19 +08:00
zwl
4569090b6b fix(ble): fixed ble_htp example ci build error 2024-07-17 10:38:55 +08:00
zwl
cec91a1c10 feat(bluetooth/controller): adopting new HCI layer code on ESP32-C2 2024-07-16 20:10:03 +08:00
zwl
18efdefafe feat(bluetooth/controller): optimize bt hci layer code 2024-07-16 20:10:03 +08:00
Jiang Jiang Jian
7109734d01 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Some checks failed
docker / docker (push) Has been cancelled
Fixed some BLE bugs 240715 (backport v5.0)

See merge request espressif/esp-idf!32123
2024-07-16 10:28:41 +08:00
zhanghaipeng
3752c0ad5f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(abd7733)
- Fix the issue where RSSI is incorrect when latency is not zero
2024-07-15 15:55:17 +08:00
chenjianhua
7efd230264 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(66b5cc0)
- Fixed vendor hci get controller status command
- Prevent BLE interrupt from being preempted
2024-07-15 15:55:09 +08:00
Jin Cheng
ae7fe9eff9 fix(bt/controller): Removed an improper assertion in ACL link driver.
It can be triggered on peripheral SNIFF mode
when RX window is adjusted on ESP32.
2024-07-15 15:27:23 +08:00
Jiang Jiang Jian
6a09e585dd Merge branch 'docs/optimized_ble_controller_api_references_esp32_v5.0' into 'release/v5.0'
docs(ble): Revised the esp32 controller API explanations (v5.0)

See merge request espressif/esp-idf!31928
2024-07-15 10:39:15 +08:00
Roshan Bangar
d2c4efae24 feat(nimble): Added periodic Adv Feature Updates in BLE 5.3 2024-07-12 18:41:02 +05:30
Rahul Tank
a1ce7ed947 Merge branch 'feat/enc_adv_data_v5.0' into 'release/v5.0'
Some checks failed
docker / docker (push) Has been cancelled
NimBLE: Added support of encrypted advertising data (v5.0)

See merge request espressif/esp-idf!32046
2024-07-12 21:07:06 +08:00
Island
a8f8936b48 Merge branch 'feat/add_ble50_instant_v5.0' into 'release/v5.0'
Add support for BLE 5.0 instances in related events (v5.0)

See merge request espressif/esp-idf!31993
2024-07-12 14:52:52 +08:00
Wei Yu Han
e8d99f1b28 docs(ble): Removed duplicate note in esp_bt_mem_release 2024-07-12 09:19:11 +08:00
Wei Yu Han
7e1bc2879d docs(ble): Revised the explanation of esp_bt_mem_release and esp_bt_controller_mem_release 2024-07-12 09:10:46 +08:00
isha.pardikar@espressif.com
cdb3864e2c NimBLE: Added support of encrypted advertising data 2024-07-11 15:07:21 +05:30
zhanghaipeng
4593ae0741 fix(ble/bluedroid): Fixed BLE set adv param check 2024-07-10 12:23:55 +08:00
Wei Yu Han
0fa8fa367c docs(ble): Add the parameter name data in esp_vhci_host_send_packet 2024-07-10 10:43:25 +08:00
zhiweijian
0e504dbc90 fix(bt/nimble): split hci log in nimble 2024-07-09 17:38:40 +08:00
zhanghaipeng
7212e4e1a8 feat(ble/bluedroid): Support BLE50 instance in related event 2024-07-09 15:45:10 +08:00
linruihao
33b517a273 fix(bt/controller): Fixed some controller bugs
- Fixed fail to establish eSCO when connected to two devices
- Changed some error log level to Debug if the error have a workaround

Closes https://github.com/espressif/esp-idf/issues/12340
2024-07-08 14:27:06 +08:00
liqigan
efdda3105d fix(bt/controller): Fixed not report HCI_Disconnection_Complete event 2024-07-08 14:27:06 +08:00
Rahul Tank
404d41c71c Merge branch 'bugfix/revert_extra_print_v5.0' into 'release/v5.0'
Revert "fix(nimble): Added debug print to check for skipped adv report" (v5.0)

See merge request espressif/esp-idf!31934
2024-07-08 14:16:06 +08:00
Island
6ed2802567 Merge branch 'fix/blemesh24_61_v5.0' into 'release/v5.0'
fix/blemesh24_61 (v5.0)

See merge request espressif/esp-idf!31567
2024-07-08 14:06:51 +08:00
Rahul Tank
e5e63be1b8 Revert "fix(nimble): Added debug print to check for skipped adv report"
This reverts commit 69ad6bb5d1.
2024-07-05 18:10:27 +05:30
Wang Ning
a4496994f2 Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Wang Ning <wangning@espressif.com>
2024-07-05 18:08:19 +08:00
Yuhan Wei
69c9719b0d docs(ble): Add the explanations to controller parameters configurable in menuconfig 2024-07-05 18:08:19 +08:00
Wang Ning
3412201140 Apply 35 suggestion(s) to 1 file(s)
Co-authored-by: Wang Ning <wangning@espressif.com>
2024-07-05 18:08:19 +08:00
Yuhan Wei
dfaa5a960c docs(ble): Removed note in esp_bt_controller_config_t 2024-07-05 18:08:19 +08:00
Yuhan Wei
fb6595059d docs(ble): Replaced BT with Bluetooth 2024-07-05 18:08:19 +08:00
Yuhan Wei
faeab638d4 docs(ble): Removed unnecessary explanations 2024-07-05 18:08:19 +08:00
Yuhan Wei
65cdf659c6 docs(ble): Added corresponding values to the controller mode 2024-07-05 18:08:19 +08:00
Yuhan Wei
314e964764 docs(ble): Fixed the explanation of TX power type 2024-07-05 18:08:19 +08:00
Yuhan Wei
1446d2b9bd docs(ble): Added typeof for BLE sleep clock accuracy enum 2024-07-05 18:08:19 +08:00
Yuhan Wei
45d84a1afd docs(ble): Added a name for BLE sleep clock accuracy enum 2024-07-05 18:08:19 +08:00
Yuhan Wei
6d65a7db74 docs(ble): Revised the esp32 controller API explanations 2024-07-05 18:08:18 +08:00
Island
8599e25cfe Merge branch 'bugfix/fixed_ble_issues_on_esp32c2_esp32c6_v5.0' into 'release/v5.0'
Some checks failed
docker / docker (push) Has been cancelled
Bugfix/fixed ble issues on esp32c2 esp32c6 (v5.0)

See merge request espressif/esp-idf!31862
2024-07-05 10:39:18 +08:00
luoxu
110b7adc6a fix(ble_mesh): ensure the operation of adv busy is thread-safe 2024-07-04 12:12:48 +08:00
luoxu
006086c50b feat(ble_mesh): add cas operation for bt_mesh_atomic_val_t 2024-07-04 12:12:48 +08:00
zwl
422c244fa6 fix(ble): fixed some ble controller issues on ESP32-C2 2024-07-02 15:44:55 +08:00
Rahul Tank
69ad6bb5d1 fix(nimble): Added debug print to check for skipped adv report 2024-07-01 15:34:05 +05:30
Jiang Jiang Jian
9a0c562b94 Merge branch 'bugfix/fix_ble_connect_fail_report_time_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed BLE report event when connection fails (v5.0)

See merge request espressif/esp-idf!31784
2024-07-01 14:19:55 +08:00
Rahul Tank
dc13544d53 Merge branch 'bugfix/set_correct_cb_arg_v5.0' into 'release/v5.0'
fix(nimble): Pass the correct cb arg during reconnection attempt (v5.0)

See merge request espressif/esp-idf!31720
2024-06-28 20:58:41 +08:00
zhanghaipeng
eec3f541f0 fix(ble/bluedroid): Fixed BLE report event when connection fails 2024-06-28 12:00:51 +08:00
Island
ef922dd380 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Fixed some BLE bugs 240620 (backport v5.0)

See merge request espressif/esp-idf!31648
2024-06-26 20:33:09 +08:00
Jiang Jiang Jian
f864a09ca6 Merge branch 'bugfix/l2cap_use_wrong_handle_v5.0' into 'release/v5.0'
fix(bt/bluedroid):  Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event(v5.0)

See merge request espressif/esp-idf!31281
2024-06-26 10:36:50 +08:00
Island
04c4ec4ac3 Merge branch 'feat/optimize_bt_porting_layer_0619_v5.0' into 'release/v5.0'
Feat/optimize bt porting layer 0619 (v5.0)

See merge request espressif/esp-idf!31675
2024-06-25 14:18:53 +08:00
Rahul Tank
4f0a43e039 fix(nimble): Pass the correct cb arg during reconnection attempt 2024-06-25 08:35:34 +05:30
chenjianhua
ef3c6da507 feat(bt/bluedroid): Add definition for the reason of BLE authentication failure 2024-06-24 19:48:36 +08:00
chenjianhua
b9fb0b8907 fix(bt/bluedroid): Fixed BLE security vulnerability when using fixed IRK 2024-06-24 19:48:36 +08:00
chenjianhua
1b65330ac5 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(0738a61)
- Fixed BT BB interrupt allocation
- Refactor the prefix of assert print
- Fixed HCI LE set privacy mode command handle
2024-06-24 19:48:36 +08:00
chenjianhua
35e79a6437 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(eca46a0)
- Fixed adv data buffer free after restart adv
- Fixed BLE interrupt allocation using esp API
2024-06-24 19:48:36 +08:00
gongyantao
0745e7d884 fix(bt): add integrity check when temporary link key selected 2024-06-24 17:51:43 +08:00
zwl
a76076fe14 feat(bluetooth/controller): adjust bt/porting code structure and delete redundant code 2024-06-24 16:03:18 +08:00
Rahul Tank
a0824ba73c fix(nimble): Clear resource before re-starting advertising 2024-06-20 11:04:42 +05:30
xiongweichao
6ff142be7e fix(bt/bluedroid): Fixed deadlock caused by not unlocking 2024-06-17 19:02:51 +08:00
xiongweichao
4633d09ff1 fix(bt/bluedroid): Fixed L2CAP using wrong handle
- Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event.
- Closes https://github.com/espressif/esp-idf/issues/13847
2024-06-17 19:02:51 +08:00
zwl
1c2d0d20c0 feat(bluetooth/controller): update controller api name on ESP32-C2 2024-06-17 16:44:32 +08:00
Rahul Tank
1ab61d2d33 fix(nimble): Added change to handle extra memory for ext adv reattempt 2024-06-14 12:08:02 +05:30
linruihao
67eb7a79bf fix(bt/controller): Fixed assert issue caused by DPORT access 2024-06-13 17:35:22 +08:00
zhanghaipeng
3883a4e250 fix(ble/controller): Update esp32 bt-lib (1e63e23)
- Optimized GATT write and notify throughput on ESP32
- Fixed BLE connect timeout after using DTM on ESP32
- Added ke memory debug tools on ESP32
- Fixed memory leak issue when BLE SCAN and other event coexist on ESP32
2024-06-13 16:39:57 +08:00
Island
9e49bf80b3 Merge branch 'bugfix/fix_ble_pktlen_change_v5.0' into 'release/v5.0'
Bugfix/fix ble pktlen change (v5.0)

See merge request espressif/esp-idf!31252
2024-06-13 11:03:31 +08:00
Abhinav Kudnar
b9205a00af fix(nimble): Added return code in ble_gap_unpair error logs 2024-06-06 10:15:38 +05:30
gongyantao
5c6c256630 fix(bt): fix some issues in bluetooth controller
1: fix return incorrect link key with hci command rd_stored_link_key
2: fix the assert triggered during APB TX
3: fix role switch LMP collision bug
2024-06-05 09:13:18 +08:00
Rahul Tank
73fb760c8a fix(nimble): Explicitly NULL assign adv data 2024-06-04 12:17:42 +05:30
Island
add3c94c02 Merge branch 'feat/add_hci_log_record_for_nimble_v5.0' into 'release/v5.0'
feat(bt/nimble): support hci log for nimble (backport v5.0)

See merge request espressif/esp-idf!31216
2024-06-04 14:18:56 +08:00
Island
b6f8340101 Merge branch 'bugfix/esp32c2_fixed_some_ble_issues_master_v5.0' into 'release/v5.0'
Bugfix/esp32c2 fixed some ble issues master (v5.0)

See merge request espressif/esp-idf!31235
2024-06-04 10:22:00 +08:00
Island
432f1ff7eb Merge branch 'fix/ble_mesh_gatts_bugfix_v5.0' into 'release/v5.0'
BLE Mesh Gatts bugfix (v5.0)

See merge request espressif/esp-idf!30875
2024-06-03 10:27:10 +08:00
zhiweijian
1c834a6e6e feat(bt/nimble): support hci log for nimble 2024-06-03 09:53:15 +08:00
zhanghaipeng
846273356a fix(ble/bluedroid): Optimize BLE stack connect callback name 2024-06-02 19:26:38 +08:00
zhanghaipeng
1d8f0aec81 fix(ble/bluedroid): Fixed BLE no data length change event 2024-06-02 19:26:27 +08:00
Rahul Tank
f6c564115b fix(nimble): Use appendfrom to duplicate adv data 2024-06-01 20:32:18 +05:30
zwl
1f97c76d0c ble: fixed ble some issues on esp32c2 2024-05-31 17:14:43 +08:00
Island
1505232737 Merge branch 'bugfix/bleqabr24-549_v5.0' into 'release/v5.0'
fix(ble_mesh): fix issues in mesh deinit_v5.0

See merge request espressif/esp-idf!30543
2024-05-31 15:18:28 +08:00
luoxu
cafc47cf07 fix(ble_mesh): Create service after service register success 2024-05-31 12:11:26 +08:00
luoxu
1121ffa55d fix(ble_mesh): fix issues in mesh deinit 2024-05-30 20:42:06 +08:00
Rahul Tank
e049357001 fix(nimble): start advertising if disconnect due to 0x3E in slave 2024-05-29 15:40:52 +05:30
Abhinav Kudnar
b819382db2 feat(nimble): Added API to get resolve ADV data 2024-05-28 18:04:07 +08:00
Alexey Lapshin
ef4a5fda2d fix(bt): fix gcc 13.1.0 warnings 2024-05-28 15:57:46 +08:00
Island
6d288efe7c Merge branch 'feat/add_api_to_set_privacy_mode_v5.0' into 'release/v5.0'
feat(bt/bluedroid): support BLE set privacy mode (v5.0)

See merge request espressif/esp-idf!30907
2024-05-27 14:56:10 +08:00
baohongde
1d9f0a6259 fix(coex): Fixed some coexist issues
- Fixed crash issue in coexist callback
- Fixed coexist scheme status update issue
2024-05-22 11:49:59 +08:00
chenjianhua
f205edb6e9 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(a771b7c)
- Fixed assert when starting advertising due to preemption
- Fixed RPA generation after each reboot
- Fixed RPA renew timer start and stop
2024-05-22 11:49:59 +08:00
chenjianhua
8991f6912a feat(bt/bluedroid): support BLE set privacy mode 2024-05-22 10:46:33 +08:00
Rahul Tank
e746d29f39 Merge branch 'feature/get_local_used_addr_v5.0' into 'release/v5.0'
feat(nimble): Added API to get local used address (v5.0)

See merge request espressif/esp-idf!30759
2024-05-16 17:43:25 +08:00
Jiang Jiang Jian
d4f35fcb98 Merge branch 'fix/assert_1024_in_rwbt_isr_v5.0' into 'release/v5.0'
fix(bt/ble): fix some issues in bluetooth controller(backport v5.0)

See merge request espressif/esp-idf!30816
2024-05-16 16:44:56 +08:00
Abhinav Kudnar
63b02c9273 feat(nimble): Added API to get local used address 2024-05-16 09:47:48 +05:30
Rahul Tank
377a24d319 fix(nimble): Create separate API to only extract cb info 2024-05-15 11:03:31 +05:30
gongyantao
fc17843294 fix(bt/ble): fix some issues in bluetooth controller
1: fix assert 1024 issue when bt tx and wifi coexist on esp32
2: fix ble scan backoff
3: parse out the correct packet types from host parameters for
   hci command hci_enhanced_setup_synchronous_connection
2024-05-14 10:06:57 +08:00
Jiang Jiang Jian
6a17b9c1c7 Merge branch 'bugfix/bt_bss_in_extram_v5.0' into 'release/v5.0'
fix(bt): Fix missing linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled(backport v5.0)

See merge request espressif/esp-idf!30377
2024-05-13 11:03:07 +08:00
Island
8e81b118e2 Merge branch 'fix/idfgh-12762_v5.0' into 'release/v5.0'
fix(ble_mesh):Fixed a compatibility issue with the provisioner (v5.0)

See merge request espressif/esp-idf!30732
2024-05-10 17:14:20 +08:00
Island
ed6f245a5b Merge branch 'bugfix/BLEQABR23-798_v5.0' into 'release/v5.0'
bugfix(ble_mesh): Close BLEQABR23-798 (v5.0)

See merge request espressif/esp-idf!30647
2024-05-10 17:14:02 +08:00
Wang Meng Yang
7649270896 Merge branch 'optimize/bt_make_alarm_num_configurable_v5.0' into 'release/v5.0'
optimize(ble_mesh): Make alarm number configurable (v5.0)

See merge request espressif/esp-idf!30508
2024-05-10 15:05:48 +08:00
Wang Meng Yang
e8641f62e4 Merge branch 'bugfix/fix_hid_connection_failed_bug_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix HID connection bugs[backport 5.0]

See merge request espressif/esp-idf!30591
2024-05-10 12:18:50 +08:00
Rahul Tank
c211aaeeaa fix(nimble): Free controller memory if init fails 2024-05-09 12:26:04 +05:30
luoxu
aa830471f4 fix(ble_mesh):Fixed a compatibility issue with the provisioner
Closes https://github.com/espressif/esp-idf/issues/13741
2024-05-09 10:57:39 +08:00
liqigan
eb99868b56 fix(bt/bluedroid): Fix HID Device connection failed bug
Closes https://github.com/espressif/esp-idf/issues/13671
2024-05-09 09:24:16 +08:00
liqigan
a91bee2b4c fix(bt/bluedroid): Fix HID Host connection bugs
1. Fix is_orig value inconsistency for HIDH open event
2. Fix the error state for repeat connection of the same device
2024-05-09 09:24:16 +08:00
luoxu
d9186f52c3 bugfix(ble_mesh): Close BLEQABR23-798 2024-05-07 09:49:13 +08:00
Rahul Tank
54f171ec5c fix(nimble): Deselect MBEDTLS_ECP_RESTARTABLE when mbedTLS is used 2024-05-06 15:22:39 +05:30
Wang Mengyang
76486bbfcb change(bt): Rename linker script file names and symbol names
1. rename linker files
2. support memory release in case that ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY is enabled
3. improve the implementation of memory release
2024-05-06 17:14:58 +08:00