Commit Graph

4029 Commits

Author SHA1 Message Date
Rahul Tank
c7bbfaee25 Merge branch 'bugfix/copy_ext_adv_data_reattempt' into 'master'
fix(nimble): Use appendfrom to duplicate adv data

See merge request espressif/esp-idf!31224
2024-06-01 18:56:22 +08:00
Wang Meng Yang
809f1e347b Merge branch 'bugfix/l2cap_use_wrong_handle' into 'master'
fix(bt/bluedroid):  Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event

Closes IDFGH-12886

See merge request espressif/esp-idf!31098
2024-05-31 17:47:05 +08:00
Rahul Tank
82bb1a79e4 fix(nimble): Use appendfrom to duplicate adv data 2024-05-31 11:55:13 +05:30
zwl
5cd85b832c ble: fixed ble some issues on esp32c6 and esp32h2 2024-05-31 14:03:29 +08:00
zwl
a3e6a6b43d ble: fixed ble some issues on esp32c2 2024-05-31 14:03:29 +08:00
luoxu
cee98dae25 fix(ble_mesh): fix issues in mesh deinit 2024-05-31 11:10:30 +08:00
Rahul Tank
fdbe535434 Merge branch 'bugfix/free_reattempt_adv_data' into 'master'
fix(nimble): Added change to free memory in case of failure

See merge request espressif/esp-idf!31099
2024-05-30 17:19:40 +08:00
Wang Meng Yang
651e6a7b32 Merge branch 'bugfix/fix_rsw_collision' into 'master'
fix(bt/controller): Fixed role switch LMP collision bug

Closes BTQABR2023-283

See merge request espressif/esp-idf!30581
2024-05-29 19:38:19 +08:00
Rahul Tank
e9a857f2cc fix(nimble): Added change to free memory in case of failure 2024-05-29 14:55:43 +05:30
liqigan
49ba7d7afd fix(bt/controller): Fixed role switch LMP collision bug 2024-05-29 15:53:19 +08:00
Rahul Tank
90960d58c6 feat(nimble): Revert support for Enhanced ATT "
This reverts commit f265e50ca0.
2024-05-29 12:39:25 +05:30
xiongweichao
a3d3b74e35 fix(bt/bluedroid): Fixed deadlock caused by not unlocking 2024-05-27 19:36:17 +08:00
xiongweichao
0b0d316d4c 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-05-27 19:34:46 +08:00
Abhinav Kudnar
4eb0fef079 feat(nimble): Added API to get resolve ADV data 2024-05-27 16:48:35 +05:30
Island
43af0fbe1d Merge branch 'bugfix/fix_blecrt_147' into 'master'
fix(bt/bluedroid): Fixed BLE security vulnerability when using fixed IRK

See merge request espressif/esp-idf!30825
2024-05-27 14:56:21 +08:00
zhiweijian
9946315a5f feat(bt/nimble): support hci log for nimble 2024-05-24 14:51:06 +08:00
Island
657b35cfea Merge branch 'fix/ble_mesh_gatts_bugfix' into 'master'
fix(ble_mesh): Create service after service register success

Closes BLERP-758

See merge request espressif/esp-idf!30877
2024-05-24 14:09:31 +08:00
Island
039c6d7380 Merge branch 'fix/fix/ble_mesh_sar_bugfix' into 'master'
BLE Mesh SAR bugfix

Closes BLERP-761 and BLERP-762

See merge request espressif/esp-idf!30880
2024-05-24 14:09:14 +08:00
Rahul Tank
946d25a884 Merge branch 'bugfix/restart_advertising_if_slave_23e' into 'master'
fix(nimble): start advertising if disconnect due to 0x3E in slave

Closes BLERP-618 and BLERP-757

See merge request espressif/esp-idf!30707
2024-05-23 20:17:37 +08:00
chenjianhua
7e975ee805 fix(bt/bluedroid): Fixed BLE security vulnerability when using fixed IRK 2024-05-23 17:26:07 +08:00
luoxu
26a693eed7 fix(ble_mesh): change tx/rx lock to recursive mutex to avoid dead lock 2024-05-23 15:12:03 +08:00
luoxu
6ca1651d14 fix(ble_mesh): reference net_buf on correct positions 2024-05-23 15:12:03 +08:00
luoxu
2567b7175d fix(ble_mesh): Create service after service register success 2024-05-23 12:13:45 +08:00
Island
42f42f73b6 Merge branch 'feat/add_api_to_set_privacy_mode' into 'master'
feat(bt/bluedroid): support BLE set privacy mode

Closes BLERP-745

See merge request espressif/esp-idf!30801
2024-05-22 17:57:04 +08:00
Island
a3cb889ba3 Merge branch 'bugfix/fix_bci_416' into 'master'
Fixed BLE interrupt allocation using esp API on ESP32C3

See merge request espressif/esp-idf!30652
2024-05-22 17:57:01 +08:00
Rahul Tank
3df54c5178 fix(nimble): start advertising if disconnect due to 0x3E in slave 2024-05-22 12:53:29 +05:30
chenjianhua
f573cd09ab feat(bt/bluedroid): support BLE set privacy mode 2024-05-21 19:53:43 +08:00
Rahul Tank
7e2534d533 Merge branch 'feat/enhanced_att' into 'master'
feat(nimble): Added support for Enhanced ATT

Closes BT-3065

See merge request espressif/esp-idf!30422
2024-05-21 14:11:13 +08:00
Sumeet Singh
f265e50ca0 feat(nimble): Added support for Enhanced ATT or ATT over Enhanced L2CAP Credit Based Flow Control Mode 2024-05-17 12:27:32 +05:30
zwl
8f3c069c3c ble: fixed some issues on ESP32C6 and ESP32H2 2024-05-16 17:28:58 +08:00
Konstantin Kondrashov
28e592563c Merge branch 'feature/unuse_old_log_apis' into 'master'
feat(all): Remove usage old log macros

See merge request espressif/esp-idf!30598
2024-05-16 13:57:06 +08:00
Rahul Tank
57e8031e65 Merge branch 'feature/get_local_used_addr' into 'master'
feat(nimble): Added API to get local used address

See merge request espressif/esp-idf!30595
2024-05-16 12:14:38 +08:00
Rahul Tank
4d873e3c9f fix(nimble): Remove ESP IP dependancy on enc_adv_data example 2024-05-15 15:27:11 +05:30
Konstantin Kondrashov
668886842f feat(all): Remove usage old log macros 2024-05-15 15:25:30 +08:00
Abhinav Kudnar
c1787c24bd feat(nimble): Added API to get local used address 2024-05-15 12:12:04 +05:30
Rahul Tank
fca1c0fa3b fix(nimble): Create separate API to only extract cb info 2024-05-14 17:15:49 +05:30
chenjianhua
2c93450d59 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-05-14 14:41:39 +08:00
zhanghaipeng
afca005778 fix(ble/bluedroid): Fixed BLE set adv param check 2024-05-11 11:13:40 +08:00
Wang Meng Yang
caa248be08 Merge branch 'bugfix/loadprohibited_after_bt_deinit' into 'master'
fix(coex): fixed crash issue in coexist callback

Closes BT-3715

See merge request espressif/esp-idf!30493
2024-05-10 12:16:43 +08:00
gongyantao
88774ee612 fix(bt): fixed assert_1024 issue when bt tx and wifi coexist
Closes https://github.com/espressif/esp-idf/issues/13656
2024-05-10 10:18:54 +08:00
Rahul Tank
d42058de17 fix(nimble): Free controller memory if init fails 2024-05-08 09:57:22 +05:30
Island
705c21d38e Merge branch 'feat/display_ble_controller_init_status' into 'master'
feat(ble/controller): Display BLE controller init status for ESP32 and ESP32-C3/S3

Closes BLERP-728

See merge request espressif/esp-idf!30651
2024-05-08 10:28:31 +08:00
zhanghaipeng
fc9290d8a2 fix(ble/bluedroid): Fixed BLE spelling error in word 2024-05-07 16:24:27 +08:00
zhanghaipeng
b270f0abc3 feat(ble/bluedroid): Add BLE memory allocation failure message 2024-05-07 15:32:11 +08:00
Island
5a09fce7e4 Merge branch 'bugfix/fix_ble_scan_back_off' into 'master'
fix(ble/controller): Update esp32 bt-lib (b79d7e2)

Closes IDFCI-2016

See merge request espressif/esp-idf!30582
2024-05-07 14:14:42 +08:00
Rahul Tank
5791913b85 Merge branch 'bugfix/disable_mbedtls_options' into 'master'
fix(nimble): Deselect MBEDTLS_ECP_RESTARTABLE when mbedTLS is used

See merge request espressif/esp-idf!30497
2024-05-07 12:37:42 +08:00
zhanghaipeng
24e7d9b1cb feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3 2024-05-07 11:00:03 +08:00
Island
498cf723f0 Merge branch 'bugfix/fix_ble_pktlen_change' into 'master'
Bugfix/fix ble pktlen change

Closes BLERP-726

See merge request espressif/esp-idf!30630
2024-05-07 09:28:27 +08:00
Rahul Tank
4b4602d846 fix(nimble): Deselect MBEDTLS_ECP_RESTARTABLE when mbedTLS is used 2024-05-06 15:15:36 +05:30
zhanghaipeng
840da7ab11 fix(ble/controller): Update esp32 bt-lib (b79d7e2)
- Fixed BLE scan backoff
2024-05-06 16:17:14 +08:00
zhanghaipeng
bc1851d793 fix(ble/bluedroid): Optimize BLE stack connect callback name 2024-05-06 15:43:09 +08:00
zhanghaipeng
f2cfe4a0f0 fix(ble/bluedroid): Fixed BLE no data length change event 2024-05-06 15:34:21 +08:00
Wang Meng Yang
8c76bd49b2 Merge branch 'bugfix/add_param_check_for_enh_sync_conn' into 'master'
fix(bt/controller): Parse out the correct packet types from Host parameters

See merge request espressif/esp-idf!29973
2024-05-06 10:07:03 +08:00
Jin Cheng
b79fcbb9d7 fix(bt/controller): Parse out the correct packet types from Host parameters
- For HCI command HCI_Enhanced_Setup_Synchronous_Connection
2024-04-30 17:38:58 +08:00
liqigan
284b80024c fix(bt/bluedroid): Fix HID Device connection failed bug
Closes https://github.com/espressif/esp-idf/issues/13671
2024-04-30 12:40:04 +08:00
zhanghaipeng
49cab1a22f fix(ble/bluedroid): Fixed BLE report event when connection fails 2024-04-28 15:44:13 +08:00
baohongde
5912194ccd fix(coex): Fixed some coexist issues
- Fixed crash issue in coexist callback
- Fixed coexist scheme status update issue
2024-04-28 11:59:01 +08:00
Island
39a1e17c32 Merge branch 'bugfix/fix_ble_coex_assert' into 'master'
fix(bt): Update esp32 bit-lib (4012cfb)

Closes BT-3674 and BLERP-715

See merge request espressif/esp-idf!30447
2024-04-28 10:48:24 +08:00
zhanghaipeng
4b083ca59c feat(ble/bluedroid): Support BLE command status debug log 2024-04-26 17:08:17 +08:00
zhanghaipeng
89b848d018 fix(ble/controller): Update esp32 bt-lib (4012cfb)
- Fixed BLE coex assert
- Fixed BLE DTM status and tx count
2024-04-26 16:43:31 +08:00
Island
6c032a0b70 Merge branch 'bugfix/fix_some_ble_bugs_240420' into 'master'
Fixed some BLE bugs 240420 on ESP32C3 (a771b7c)

Closes BLERP-704, BLERP-705, BLERP-706, BLERP-707, BLERP-708, and BLERP-709

See merge request espressif/esp-idf!30400
2024-04-26 16:37:46 +08:00
Rahul Tank
9433067f33 fix(nimble): Expose API to set RPA Timeout 2024-04-23 11:21:26 +05:30
chenjianhua
22cdf8db16 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-04-23 11:30:02 +08:00
Island
148aa32c64 Merge branch 'feat/optimzie_ble_ctrl_memory' into 'master'
ble: support only legacy adv and slave function on esp32c2

Closes BLERP-675

See merge request espressif/esp-idf!30186
2024-04-22 22:50:58 +08:00
Wang Meng Yang
64bb591ef3 Merge branch 'bugfix/hf_local_param_null' into 'master'
fix(bt/bluedroid): allocate memory for control block of HFP Audio Gateway in...

See merge request espressif/esp-idf!30123
2024-04-22 15:25:06 +08:00
zwl
dcb9780302 ble: optimize bt cmakelists.txt file 2024-04-22 11:25:04 +08:00
zwl
917134f890 ble: support only legacy adv and slave function on esp32c2 2024-04-22 11:25:04 +08:00
Wang Meng Yang
14bf30d5b6 Merge branch 'bugfix/optimize_hidh_connection' into 'master'
fix(bt/bluedroid): Fix HID Host connection bugs

Closes BT-3680

See merge request espressif/esp-idf!30160
2024-04-22 09:33:28 +08:00
Zhi Wei Jian
713e36e776 Merge branch 'bugfix/remove_ble_func_discard_declaration' into 'master'
fix(ble/bluedroid): Remove BLE functions discard declaration

Closes BLERP-663

See merge request espressif/esp-idf!30011
2024-04-18 19:00:55 +08:00
zhiweijian
b9a1756202 fix(ble/bluedroid): Remove BLE functions discard declaration
fix(nt/bluedroid): Split the device name set functions

feat(bt/bluedroid): added APIs to get/set device name on BT GAP side

change(bt/common): Marked some APIs in device module as deprecated

1. esp_bt_dev_set_device_name
2. esp_bt_dev_get_device_name

change(bt/bluedroid): use BT GAP APIs to set/get device name in bluetooth classic examples

change(bt/bluedroid): use BT/BLE GAP APIs to set/get device name in coexist examples
2024-04-18 15:53:54 +08:00
zhiweijian
5725595d84 fix(ble/bluedroid): Remove esp_bluedroid_init() discard declaration 2024-04-18 15:53:30 +08:00
Rahul Tank
d80a4e0ce1 Merge branch 'bugfix/fix_hex2val_ret' into 'master'
fix(nimble): Add check for return value of hex2val

Closes BT-3695

See merge request espressif/esp-idf!30304
2024-04-18 14:00:21 +08:00
Island
2cdd56ebc3 Merge branch 'bugfix/fixed_coex_asset_on_esp32c2' into 'master'
ble: fixed an occasional assertion issue in coexistence scenarios on ESP32C2

See merge request espressif/esp-idf!30300
2024-04-18 10:54:15 +08:00
Island
fc4e48dca5 Merge branch 'bugfix/fix_ble_appearance' into 'master'
Fixed BLE appearance category ranges

Closes IDFGH-12628

See merge request espressif/esp-idf!30284
2024-04-18 10:43:23 +08:00
zhanghaipeng
0a4636a8be fix(ble/bluedroid): Fixed set BLE appearance value 2024-04-17 20:38:36 +08:00
Rahul Tank
7ee1e0b8fb fix(nimble): Add check for return value of hex2val 2024-04-17 18:07:59 +05:30
Island
e82a723abf Merge branch 'bugfix/ble_mesh_fsm_list_init' into 'master'
bugfix/ble_mesh_fsm_list_init

Closes BLERP-539 and BLERP-451

See merge request espressif/esp-idf!30281
2024-04-17 20:09:52 +08:00
Wang Meng Yang
d8ddc102f6 Merge branch 'bugfix/crash_after_bluedroid_deinit' into 'master'
fix(bt/bluedroid): Fixed controller using null pointer after bluedroid deinit

Closes BTQABR2023-248

See merge request espressif/esp-idf!30172
2024-04-17 17:26:06 +08:00
zwl
d0c1ff0376 ble: fixed an occasional assertion issue in coexistence scenarios on ESP32C2 2024-04-17 14:46:02 +08:00
luoxu
b6c09192c8 fix(ble_mesh): rpr server and df bug fixed(10f7fdc1a9) 2024-04-17 11:14:18 +08:00
Sumeet Singh
19ad84f008 fix(nimble): Removed code for termination upon signed write operation failure 2024-04-16 09:57:25 +05:30
Island
46e0760619 Merge branch 'feat/support_ble_add_device_to_resolving_list' into 'master'
feat(ble/bluedroid): Support BLE add device to resolving list

Closes BLERP-681

See merge request espressif/esp-idf!30216
2024-04-16 10:35:16 +08:00
zhanghaipeng
9ae6007b5b feat(ble/bluedroid): Support create BLE static random address and NRPA 2024-04-15 21:04:52 +08:00
zhanghaipeng
36c9953588 feat(ble/bluedroid): Support BLE add device to resolving list 2024-04-15 19:37:02 +08:00
Island
8e0714341a Merge branch 'feat/support_qa_test_vendor_hci_esp32c3' into 'master'
Support QA test vendor HCI command and event on ESP32C3

Closes BLERP-578

See merge request espressif/esp-idf!29282
2024-04-15 14:08:40 +08:00
Island
caf0712174 Merge branch 'feat/support_qa_test_vendor_hci_esp32' into 'master'
Support QA test vendor HCI command and event on ESP32

Closes BLERP-578

See merge request espressif/esp-idf!29372
2024-04-15 14:08:34 +08:00
Jin Cheng
081dc80eb8 fix(bt/bluedroid): allocate memory for control block of HFP Audio Gateway in its initialization when dynamic memory is wnabled 2024-04-15 11:20:55 +08:00
Rahul Tank
f2fd8192fc fix(nimble): Fix compilation issues when CCCD is set to 0 2024-04-12 11:01:47 +05:30
Rahul Tank
052e884f34 Merge branch 'bugfix/fix_cve_2024_24746' into 'master'
fix(nimble): Fix for Vulnerability CVE_2024_24746

See merge request espressif/esp-idf!30106
2024-04-12 13:12:35 +08:00
Wang Meng Yang
d4552c6274 Merge branch 'bugfix/bt_bss_in_extram' into 'master'
BT: Fix non-existent linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled

Closes IDFGH-9017

See merge request espressif/esp-idf!21790
2024-04-12 08:57:10 +08:00
Rahul Tank
1e8c5fb247 fix(nimble): Fix for Vulnerability CVE_2024_24746 2024-04-11 19:28:44 +05:30
Rahul Tank
8a061af163 Merge branch 'feat/add_data_len_chg_evt' into 'master'
fix(nimble): Add support for data length change evt

Closes BLERP-666 and BLERP-665

See merge request espressif/esp-idf!29799
2024-04-11 21:09:53 +08:00
Island
0545816211 Merge branch 'bugfix/fix_ble_max_attribute_value' into 'master'
fix(ble/bluedroid): Fixed BLE GATT max length of an attribute value

Closes IDFGH-12362

See merge request espressif/esp-idf!30155
2024-04-11 19:11:20 +08:00
Rahul Tank
beb87e30f0 fix(nimble): Add support for data length change evt 2024-04-11 11:01:59 +05:30
xiongweichao
f535fdff2d fix(bt/bluedroid): Fixed crash after bluedroid deinit
hci_host_env.downstream_data_ready is set to NULL during bluedroid deinit,
causing the controller to use a null pointer when calling callback.
2024-04-11 10:39:44 +08:00
Rahul Tank
fdd630425d fix(nimble): Fix the size of num_packets in dtm event 2024-04-10 19:26:07 +05:30
Xu Xiao
f0365ba6b5 Merge branch 'chip/esp32c5_beta3_support_wifi_rebase_master' into 'master'
feat(wifi): add esp32c5 beta3 wifi support

See merge request espressif/esp-idf!29296
2024-04-10 20:21:47 +08:00
Zhi Wei Jian
48464e91bd Merge branch 'feature/move_vendor_hci_api_to_ble_part' into 'master'
feat(ble/bluedroid): move vendor hci api to ble internal code

Closes BLERP-669

See merge request espressif/esp-idf!30117
2024-04-10 19:43:36 +08:00
zhanghaipeng
20a780da8c fix(ble/bluedroid): Fixed BLE GATT max length of an attribute value 2024-04-10 19:41:46 +08:00
Wang Mengyang
d69767fcb8 change(bt): Follow the same implementation of esp_bt_mem_release on ESP32-C5 2024-04-10 19:13:17 +08:00
Wang Mengyang
745922ac72 change(bt): Add a test for release bt .bss and .data memory to heap
1. use nimble host, initialize and then deinitialize bt stack in the test
2. support tests for different SoC targets and multiple configuration options
2024-04-10 19:13:17 +08:00
Wang Mengyang
95a249e3f6 change(bt): Modify test_app directory layout
- Existing test app is put in a new subdirectory "basic_unit_test"
2024-04-10 19:13:17 +08:00
Wang Mengyang
1d9559cc9d 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-04-10 19:13:17 +08:00
Wang Mengyang
0aca5ec357 fix(bt): Fix missing linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled
1. Closes https://github.com/espressif/esp-idf/issues/10427
2. add two linker script to unify linker script symbols for BT libraries
3. The memory release functions have also been simplified
2024-04-10 19:13:17 +08:00
xuxiao
ec872c0c81 fix(wifi): fix code review comments 2024-04-10 15:27:50 +08:00
liqigan
e1d2e0393d 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-04-10 15:22:02 +08:00
chenjianhua
765af1aba4 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(c23ab4c)
- Support QA test vendor HCI command and event
2024-04-10 14:24:07 +08:00
chenjianhua
10735b7ea5 feat(bt): Update bt lib for ESP32(e314148)
- Support QA test vendor HCI command and event
2024-04-10 14:23:00 +08:00
zhiweijian
0b4695435f feat(bt/common): Add bluerooth hci layer data stream record 2024-04-10 14:17:31 +08:00
zhiweijian
379484f4db feat(ble/bluedroid): move vendor hci api to ble internal code 2024-04-10 14:17:01 +08:00
xuxiao
27f61966cd feat(wifi): add esp32c5 beta3 wifi support 2024-04-10 14:09:40 +08:00
zwl
a99d1739b6 ble: fixed the bt cmakelist error when use nimble host only 2024-04-10 10:26:59 +08:00
Island
21f5fda319 Merge branch 'bugfix/ble_mesh_heartbeat_filter_add' into 'master'
Fix(ble_mesh):fix error condition for heartbeat filter adding node address

Closes BLERP-654

See merge request espressif/esp-idf!29985
2024-04-09 12:05:21 +08:00
Rahul Tank
60156a4006 Merge branch 'bugfix/set_correct_addr_type' into 'master'
fix(nimble): Set correct peer_addr during reattempt connection

See merge request espressif/esp-idf!30051
2024-04-08 20:32:43 +08:00
Island
e3839a31bf Merge branch 'bugfix/fix_ble_scan_assert' into 'master'
fix(bt/controller): Update bt lib for ESP32(5838b68)

Closes IDFGH-6912, BLERP-628, BLERP-400, IDFCI-2016, BLERP-629, BLERP-634, IDFGH-12506, and FCS-1421

See merge request espressif/esp-idf!29686
2024-04-08 20:12:29 +08:00
Zhi Wei Jian
b9ea883781 Merge branch 'bugfix/fix_adv_not_resatrt_due_to_dis_reason' into 'master'
fix(ble/bluedroid): Fixed adv do not restart due to disconnection reason 0x3e

Closes BLERP-635

See merge request espressif/esp-idf!29733
2024-04-08 19:58:42 +08:00
Wang Meng Yang
02fe8fc671 Merge branch 'bugfix/loadprohibited_after_bluetooth_deinit' into 'master'
fix(ble/controller): Fixed LoadProhibited after bluetooth deinit

Closes BT-3672

See merge request espressif/esp-idf!30074
2024-04-08 19:15:11 +08:00
Shen Wei Long
4ec0e7bc43 Merge branch 'feature/support_ble_on_esp32c5beta3_master' into 'master'
feat(ble): Support BLE on esp32c5beta3

See merge request espressif/esp-idf!29992
2024-04-08 19:13:43 +08:00
Wang Meng Yang
6b453b803f Merge branch 'feat/set_get_lpclk_src' into 'master'
feat(ble): Added API to get low power clock source

Closes BTQABR2023-133, BTQABR2023-163, BTQABR2023-182, BTQABR2023-179, and BTQABR2023-178

See merge request espressif/esp-idf!28997
2024-04-08 17:59:23 +08:00
Island
4726afa3e6 Merge branch 'feat/support_ble_set_rpa_timeout_by_api' into 'master'
feat(ble/bluedroid): Support set resolvable provate address timeout by api

Closes BLERP-650

See merge request espressif/esp-idf!29935
2024-04-08 15:23:20 +08:00
zhiweijian
adde5a3dd6 fix(ble/bluedroid): Fixed adv not restart due to disconnection reason 0x3e 2024-04-08 14:51:33 +08:00
zhanghaipeng
9c6869fbf8 fix(bt/controller): Update bt lib for ESP32(5838b68)
- Fixed BLE scan assert
 - Fixed assert(10,0) in lld_pdu
 - Add BLE scan backoff in menuconfig
2024-04-08 14:49:06 +08:00
luoxu
0e21cdd18a fix(ble_mesh): fix error condition for heartbeat filter adding node address 2024-04-08 14:25:18 +08:00
baohongde
d60c0441f0 fix(ble/controller): Fixed LoadProhibited after bluetooth deinit 2024-04-08 11:49:05 +08:00
Island
f36a16bea7 Merge branch 'bugfix/fix_some_ble_bugs_240401' into 'master'
Fixed some BLE bugs 240401 on ESP32C3(5274796)

Closes BLERP-656, BLERP-657, BLERP-535, BLERP-644, BLERP-645, BLERP-658, BLERP-659, and BLERP-660

See merge request espressif/esp-idf!29998
2024-04-08 11:06:56 +08:00
zhanghaipeng
8c42f6a891 feat(ble/bluedroid): Support set resolvable provate address timeout by api 2024-04-07 20:40:29 +08:00
xiongweichao
3d19c3db13 feat(ble): Added API to get low power clock source 2024-04-07 17:30:55 +08:00
xiongweichao
cca828d03a fix(bt/bluedroid): Fix SPP crash after deinit
- The disconnection event comes up after spp disable is completed, so a null pointer is used.
2024-04-07 15:51:43 +08:00
Rahul Tank
d0853d70ce fix(nimble): Remove extra code in reattempt connection 2024-04-05 21:33:12 +05:30
chenjianhua
ae95ad5958 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(5274796)
- Fixed extended uncoded and coded scan scheduling
- Add config for channel assessment and ping procedure
- Clear random address for extended advertising
- Add periodic advertising list check
- Fixed periodic advertising data setting with zero length
2024-04-03 17:56:21 +08:00
Island
28f68a0376 Merge branch 'feat/adjust_ble_log_init_order' into 'master'
Feat/adjust ble log init order

Closes BLERP-649, BLERP-651, BLERP-631, BLERP-652, and BLERP-655

See merge request espressif/esp-idf!29931
2024-04-03 12:39:49 +08:00
Shen Weilong
f09dcff91e feat(ble): Support BLE on esp32c5beta3 2024-04-03 10:58:06 +08:00
Jiang Jiang Jian
8ae1d9907f Merge branch 'optimize/bt_make_alarm_num_configurable' into 'master'
optimize(ble_mesh): Make alarm number configurable

Closes BLERP-577

See merge request espressif/esp-idf!28965
2024-04-02 16:18:36 +08:00
Rahul Tank
9c846916fa Merge branch 'bugfix/revamp_reconn_scheme' into 'master'
fix(nimble): Cleanup code in connection reconnection implementation

Closes BLERP-633

See merge request espressif/esp-idf!29941
2024-04-02 14:23:58 +08:00
luoxu
8160ddee46 fix(ble_mesh): fix NRF mesh(android) provisioning node failed
Closes: https://github.com/espressif/esp-idf/issues/12871
2024-04-02 10:41:57 +08:00
Jin Cheng
98230244df fix(bt/controller): Use embedded assembly to get access to DPORT registers 2024-04-01 18:53:47 +08:00
Rahul Tank
7e34300a1b fix(nimble): Change reconnection scheme 2024-04-01 16:05:41 +05:30
Jiang Jiang Jian
d954057ed8 Merge branch 'feat/coex_schm_ble' into 'master'
feat(ble/controller): Add coexist schm for BLE

See merge request espressif/esp-idf!29740
2024-04-01 18:26:52 +08:00
Wang Meng Yang
ef30e40151 Merge branch 'fix/rd_stored_link_key_error' into 'master'
fix(bt/controller): fix some issues in bt controller

Closes CBI-722, CBI-709, and BTQABR2023-210

See merge request espressif/esp-idf!29454
2024-04-01 18:17:37 +08:00
cjin
2f60e19696 feat(ble): add cca related config in c6, h2 and c2 2024-04-01 15:57:06 +08:00
cjin
edb3f70562 change(ble): support ble light sleep using ext 32k xtal on C2 2024-04-01 15:57:06 +08:00
zwl
5e443311da ble: update esp32c2 lib to 7a428d35 2024-04-01 15:57:06 +08:00
zwl
f2da3c12e9 ble: update esp32h2 and esp32c6 lib to 39c6e050 2024-04-01 15:57:06 +08:00
zhaoweiliang
29eb1400ae ble : adjust the log initialization sequence of ESP32C6 and ESP32H2 2024-04-01 15:57:06 +08:00
wangjialiang
6df1997db5 feat(ble_mesh): Make alarm number configurable 2024-04-01 11:57:07 +08:00
xiehang
f3c5047638 feat(extconn): Supports external WiFi connections for ESP32p4 and other espressf chips 2024-04-01 11:44:52 +08:00
gongyantao
9e2ffff9b6 fix(bt): fix some issues in bt controller
1: fixed the incorrect timeing in reporting HCI_Link_Key_Type_Changed.
2: fixed the incorrect iv value during resuming encryption.
3: fixed the incorrect return with hci command rd_stored_link_key.
2024-04-01 11:40:10 +08:00
Xiong Wei Chao
7915aee213 Merge branch 'bugfix/sdp_remove_record_no_evt' into 'master'
fix(bt/bluedroid): Fixed the crash caused by using illegal pointers during SDP deinit

Closes BTQABR2023-201

See merge request espressif/esp-idf!29288
2024-04-01 10:17:31 +08:00
Jiang Jiang Jian
0c68b9b06c Merge branch 'feat/sleep_retention_depends_power_state_management' into 'master'
sleep retention multiple modules initialization and dependency management

Closes WIFI-5252 and IDFGH-11302

See merge request espressif/esp-idf!28941
2024-04-01 09:28:42 +08:00
Li Shuai
c0f3570237 change(bt): use new retention api to implement BT mac and bb retention 2024-03-30 11:51:52 +08:00
luoxu
22f3006dd1 fix(ble_mesh): Free segment tx buffers on tx reset for SAR enhancement
Closes: https://github.com/espressif/esp-idf/issues/13384
2024-03-29 10:14:14 +08:00
Jiang Jiang Jian
969a43cf6d Merge branch 'bugfix/fix_bt_cmakefile_error_on_c2' into 'master'
fix(bt): fixed cmakelist error on c2

Closes IDFGH-12430

See merge request espressif/esp-idf!29880
2024-03-28 12:00:53 +08:00
Wang Meng Yang
10d4843b02 Merge branch 'feat/add_vsc_to_set_min_enc_key_sz' into 'master'
feat(bt/bluedroid): added a VSC to set minimal encryption key size

Closes BT-3590 and BTQABR2023-211

See merge request espressif/esp-idf!28263
2024-03-28 08:27:35 +08:00
linruihao
4a61fda5fb fix(bt): fixed cmakelist error on c2
Closes https://github.com/espressif/esp-idf/issues/13451
2024-03-27 19:38:45 +08:00
xiongweichao
eabd31e849 fix(bt/bluedorid): Fixed crash caused by using illegal pointer 2024-03-27 19:05:39 +08:00
xiongweichao
1c30191ac4 fix(bt/bluedorid): Fixed no event when removing an invalid SDP record 2024-03-27 19:05:39 +08:00
baohongde
4207909f5c feat(ble/controller): Add coexist schm for BLE 2024-03-26 14:44:46 +08:00
Abhinav Kudnar
1bc6570b1f fix(nimble): Migrate to nimble 1.6 2024-03-26 10:50:24 +05:30
Jin Cheng
82542d2e96 feat(bt/bluedroid): added a VSC to set minimal encryption key size 2024-03-25 10:50:06 +08:00
Rahul Tank
0883569b6f fix(nimble): Handle auto connection flag for extended connect 2024-03-21 12:33:50 +05:30
Jin Cheng
45af060963 change(bt/bluedroid): Use BTC util to convert HCI status to ESP status 2024-03-20 10:38:44 +08:00
Darshan Dobariya
e0e89b8bde fix(nimble): Added support for deleting the oldest bonded device across reboot 2024-03-19 22:26:22 +05:30
Roshan Bangar
23c702cdc1 fix(nimble): Fix compilation issues and Minor enhancements to esp_hid 2024-03-19 16:27:17 +05:30
Rahul Tank
1a9f9d69ea Merge branch 'bugfix/compilation_issue_on_disabling_security' into 'master'
fix(nimble): Fixed compilation issues on disabling security

See merge request espressif/esp-idf!29582
2024-03-19 17:44:50 +08:00
zhanghaipeng
bce1715dfd fix(ble/bluedroid): Optimize BLE documentation comments to comply with Doxygen syntax 2024-03-18 16:10:02 +08:00
Roshan Bangar
ee75e6cc63 fix(nimble): Fixed compilation issues on disabling security 2024-03-18 09:56:19 +05:30
Wang Meng Yang
36e4ba10f5 Merge branch 'bugfix/make_coexist_callback_safe' into 'master'
fix(bt/controller): Fixed some bugs in esp32 bt controller

Closes BT-3625

See merge request espressif/esp-idf!29543
2024-03-15 18:53:10 +08:00
linruihao
3d0d4de125 fix(bt/controller): Fixed some bugs in esp32 bt controller
1. fixed crash issue in coexist callback
2. fixed wrong LMP message send when expect peer device increase tx power to max
2024-03-15 11:31:57 +08:00
Jiang Jiang Jian
63db118bcc Merge branch 'feat/move_ag_cb_malloc_to_btc' into 'master'
feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module

Closes BTQABR2023-208

See merge request espressif/esp-idf!29310
2024-03-14 10:46:01 +08:00
Island
556d71b97f Merge branch 'bugfix/BT-3491' into 'master'
bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have...

Closes BT-3491 and BLEMESH-437

See merge request espressif/esp-idf!27087
2024-03-13 17:16:38 +08:00
Island
950b728f5c Merge branch 'bugfix/BLEQABR23-798' into 'master'
bugfix(ble_mesh): Close BLEQABR23-798

Closes BLEQABR23-798 and BLERP-209

See merge request espressif/esp-idf!26776
2024-03-13 17:16:13 +08:00
Rahul Tank
aa6e49e60f Merge branch 'bugfix/reconnect_host_based' into 'master'
fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32

See merge request espressif/esp-idf!29479
2024-03-13 12:15:21 +08:00
wangjialiang
4b347ba1ad update invalid links in the ble mesh example documentation 2024-03-13 11:38:27 +08:00
luoxu
36297f93e7 bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have already left the network. 2024-03-13 11:38:27 +08:00
luoxu
99744ec1b9 bugfix(ble_mesh): Close BLEQABR23-798 2024-03-13 11:32:40 +08:00
Island
3dc9d6652b Merge branch 'bugfix/ble_update_lib_20240306' into 'master'
update lib on master

Closes BLERP-562, BLERP-600, BLERP-557, BLERP-601, BLERP-602, and BLERP-603

See merge request espressif/esp-idf!29435
2024-03-13 10:18:05 +08:00
Darshan Dobariya
016df4cbde fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32 2024-03-12 20:57:01 +05:30
Rahul Tank
7636c1d64c Merge branch 'bugfix/fix_strict_prototype_hid' into 'master'
fix(nimble): Address compilation errors when strict-prototype is enabled

See merge request espressif/esp-idf!29513
2024-03-12 18:53:21 +08:00
Rahul Tank
c460e1cd7e Merge branch 'bugfix/expose_baud_rate_in_menu' into 'master'
fix(nimble): Exposed the baud rate for hci uart in menuconfig

See merge request espressif/esp-idf!29412
2024-03-08 22:51:20 +08:00
Rahul Tank
9921d5bcfe Merge branch 'bugfix/gap_connect_failed_with_0x0d' into 'master'
fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT

See merge request espressif/esp-idf!29475
2024-03-08 22:43:22 +08:00
Rahul Tank
de9434549c fix(nimble): Address compilation errors when strict-prototype is enabled 2024-03-08 20:09:30 +05:30
Rahul Tank
a93a6ef447 Merge branch 'feat/read_multiple_variable_length' into 'master'
feat(nimble): read multiple variable length characteristics

Closes BLERP-423

See merge request espressif/esp-idf!29054
2024-03-08 19:40:02 +08:00
Island
56756a799e Merge branch 'bugfix/fix_ble_periodic_adv_params_check' into 'master'
fix(ble/bluedroid): Fixed BLE  periodic advertising create sync parameter check

Closes BLERP-599

See merge request espressif/esp-idf!29442
2024-03-08 16:48:31 +08:00
Zhang Hai Peng
e7d88505e5 Merge branch 'bugfix/fix_ble_host_crash_on_deinitialization' into 'master'
fix(ble/bluedroid): Fixed BLE crash when repeatedly iniitialize and deinitialize host

Closes BLERP-584 and BLERP-583

See merge request espressif/esp-idf!29319
2024-03-08 15:21:52 +08:00
Roshan Bangar
f95784e4a9 fix(nimble): Exposed the baud rate for hci uart in menuconfig 2024-03-08 13:06:11 +08:00
Sumeet Singh
9f34e4e9d9 feat(nimble): read multiple variable length characteristics 2024-03-07 19:46:54 +05:30
Rahul Tank
8e863fa9a8 Merge branch 'bugfix/handle_callout_free_in_deinit' into 'master'
fix(nimble): Handle memory leak in callout deinit

See merge request espressif/esp-idf!29433
2024-03-07 22:02:17 +08:00
Rahul Tank
b6e0ef0297 Merge branch 'bugfix/add_esp_timer_get_expiry_time' into 'master'
fix(nimble): Add support for esp_timer_get_expiry_time to nimble porting layer

See merge request espressif/esp-idf!29414
2024-03-07 21:48:23 +08:00
Abhinav Kudnar
20ba589f1c fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT. 2024-03-07 14:40:12 +05:30
Chen Jian Hua
9c075b9ab0 Merge branch 'bugfix/fix_idfci_1944' into 'master'
Fixed HCI command status event sending for disconnect command on ESP32

Closes BLERP-595 and BLERP-596

See merge request espressif/esp-idf!29373
2024-03-07 10:41:07 +08:00
Chen Jian Hua
d76ac4527d Merge branch 'bugfix/fix_fcs_1385' into 'master'
fix(bt/bluedroid): Fixed crash when calculating GATTS database hash

See merge request espressif/esp-idf!28788
2024-03-07 10:40:32 +08:00
zhanghaipeng
2c3d9ae5de fix(ble/bluedroid): Fixed BLE BLE periodic advertising parameter check 2024-03-06 18:10:30 +08:00
Rahul Tank
20eda4bb26 fix(nimble): Handle memory leak in callout deinit 2024-03-06 15:40:22 +05:30
Rahul Tank
06dc388b21 Merge branch 'bugfix/addr_resol_for_esp32' into 'master'
fix(nimble): Added the check to prevent address resolution in case of identity addr for esp32

Closes BLERP-580 and BLERP-594

See merge request espressif/esp-idf!29297
2024-03-06 17:37:17 +08:00
zhanghaipeng
82c2602afa fix(ble/bluedroid): Fixed BLE crash when repeatedly initialize and deinitialize host 2024-03-06 15:49:01 +08:00
zwl
bc3bb46f13 ble(update):
Update h2 lib to d0218de8
Update c6 lib to d0218de8
2024-03-06 14:17:14 +08:00
Island
7b32d26e8b Merge branch 'feat/support_get_bluedroid_status' into 'master'
feat(bt/bluedroid): Add ext adv and privacy status check

Closes BLERP-468

See merge request espressif/esp-idf!29218
2024-03-06 11:41:55 +08:00
Island
be29217eeb Merge branch 'bugfix/fix_some_bluedroid_bugs_2402' into 'master'
fix(bt/blufi): Fixed BluFi module link error(C++ hybrid compilation)

See merge request espressif/esp-idf!29220
2024-03-06 11:41:50 +08:00
Abhinav Kudnar
2bd7f672cb fix(nimble): Added the check to prevent address resolution in case of identity addr for esp32 2024-03-05 14:56:02 +05:30
Rahul Tank
b2c9d7a834 fix(nimble): Add support for esp_timer_get_expiry_time to nimble porting layer 2024-03-05 14:28:24 +05:30
Wan Lei
3459db1bbb Merge branch 'feat/c6lite_c61_introduce_step1_target' into 'master'
feat(esp32c61): introduce target esp32c61 (1/8) 🌱

See merge request espressif/esp-idf!29238
2024-03-05 11:36:17 +08:00
chenjianhua
66df2b9dd5 fix(bt): Update bt lib for ESP32(5ea2fca)
- Fixed HCI command status event sending for disconnect command
- Fixed LE transmitter test command param check
2024-03-04 21:19:33 +08:00
Rahul Tank
f723b18d86 Merge branch 'bugfix/increase_reattempt_conn_count' into 'master'
fix(nimble): Increase range of reattempt connection count

See merge request espressif/esp-idf!29311
2024-03-04 19:43:21 +08:00
wanlei
ee02b71f1c feat(esp32c61): introduce target esp32c61 2024-03-01 21:12:25 +08:00
chenjianhua
2e122313c2 feat(bt/bluedroid): Add ext adv and privacy status check 2024-03-01 11:07:37 +08:00
Jin Cheng
cdb2f2c570 fix(bt/controller): Fixed 3 esp32 bt controller bugs
update esp32 bt-lib (952debf4)

1. Increased the length of queue for coexist requestions
2. fix(bt/controller): Cleared BT SNIFF when no connections exists
3. fix(bt/controller): Corrected a typo in coex module
2024-02-29 11:02:37 +08:00
Wang Meng Yang
e99abdd6de Merge branch 'bugfix/fix_hci_cmd_status_evt_sent' into 'master'
Fixed HCI command status event send when LLCP busy on ESP32

Closes BLERP-333

See merge request espressif/esp-idf!27858
2024-02-29 10:48:06 +08:00
Jin Cheng
f4f26e94bd feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module 2024-02-28 20:30:38 +08:00
Island
28b4ad2b53 Merge branch 'bugfix/ble_update_lib_20240223' into 'master'
update lib on master

Closes BLERP-563, BLERP-567, BLERP-548, BLERP-561, BLERP-569, BLERP-542, BLERP-541, BLERP-543, BLERP-540, BLERP-570, BLERP-571, BLERP-572, and BLERP-573

See merge request espressif/esp-idf!29207
2024-02-28 16:54:14 +08:00
Jin Cheng
20f2207d5f Merge branch 'bugfix/mem_leak_op_dev_name' into 'master'
fix(bt/bluedroid): Avoided possible memory leak in the module of BT device

See merge request espressif/esp-idf!29141
2024-02-28 15:54:24 +08:00
Rahul Tank
30d5c36aac fix(nimble): Increase range of reattempt connection count 2024-02-28 12:56:57 +05:30
chenjianhua
7df536d325 fix(bt): Update bt lib for ESP32(2de69f3)
- Fixed HCI command status event send when LLCP busy
2024-02-28 12:09:03 +08:00
zwl
7b8b85e140 bugfix(ble) : fixed some ble issues on ESP32-C2 2024-02-27 23:28:25 +08:00
zwl
093bc1a4f5 ble(update):
Update c2 lib to 79be7ec9
Update h2 lib to c6f7cb08
Update c6 lib to c6f7cb08
2024-02-27 23:28:25 +08:00
Joshua
09503600f2 fix(bt/blufi): Fixed BluFi module link error(C++ hybrid compilation) 2024-02-27 22:32:14 +08:00
thekurtovic
3e74922c9e fix(bt/bluedroid): Fixed "reprot" typo in esp_ble_gap_ext_adv_reprot_t 2024-02-27 22:32:14 +08:00
zhanghaipeng
3eec662473 fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration 2024-02-27 22:03:37 +08:00
Wang Meng Yang
e265484084 Merge branch 'change/reduce_usage_of_iram_when_bt_in_single_mode' into 'master'
change(bt/bluedroid): reset the app  redirected functions in controller based on the bluetooth mode

Closes BT-3546

See merge request espressif/esp-idf!28040
2024-02-23 17:59:34 +08:00
Jin Cheng
a288640655 fix(bt/bluedroid): Avoided possible memory leak in the module of BT device 2024-02-23 14:14:50 +08:00
Zhi Wei Jian
76c4cfc834 Merge branch 'feature/add_api_to_send_vendor_hci_cmd' into 'master'
Add api to send vendor hci command

Closes BLERP-546

See merge request espressif/esp-idf!28855
2024-02-23 10:29:42 +08:00
Darshan Dobariya
e6bf35b3c9 fix(nimble): Change 'move_count' to uint8_t type 2024-02-22 21:34:11 +05:30
zhiweijian
7ea7f1536f feat(bt/bluedroid): add api to setnd vendor hci command 2024-02-22 18:00:30 +08:00
Rahul Tank
dd38f2406b fix(nimble): update variable name to avoid using keyword 2024-02-22 15:14:33 +05:30
Island
6790a5f79f Merge branch 'bugfix/ble_mesh_pb_adv_compile_error' into 'master'
fix(ble_mesh): Fix compiling error when PB-ADV is disabled

Closes IDFGH-12147

See merge request espressif/esp-idf!29126
2024-02-22 11:33:59 +08:00
Roshan Bangar
167c663542 fix(nimble): fixed missing controller disabled guard in esp_nimble_deinit 2024-02-21 11:55:41 +05:30
Rahul Tank
01bc97ab04 Merge branch 'bugfix/signed_write_fix' into 'master'
fix(nimble): Message to be signed is corrected in signed write

See merge request espressif/esp-idf!28816
2024-02-21 14:19:01 +08:00
Island
41ee4ad23f Merge branch 'bugfix/fix_ble_free_all_crash_issue' into 'master'
fix(ble): Fixed the free_all crash on esp32c6 and esp32h2

Closes BLERP-565

See merge request espressif/esp-idf!29107
2024-02-20 17:56:54 +08:00
Liu Linyan
2d25ef62d1 fix(ble_mesh): Fix compiling error when PB-ADV is disabled
Closes https://github.com/espressif/esp-idf/issues/13203
2024-02-20 16:40:30 +08:00
Sudeep Mohanty
9605f9be3f Merge branch 'contrib/github_pr_12800' into 'master'
feat(freertos): Added new Kconfig option CONFIG_FREERTOS_NUMBER_OF_CORES

Closes IDFGH-11693 and IDF-8785

See merge request espressif/esp-idf!28505
2024-02-20 15:21:47 +08:00
SumeetSingh19
14221b74f4 fix(nimble): message to be signed is corrected in signed write 2024-02-20 11:14:53 +05:30
gongyantao
112ad700fc change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode 2024-02-20 10:24:59 +08:00
ShenWeilong
d200f0f0e4 fix(ble): Fixed the free_all crash on esp32c6 and esp32h2 2024-02-19 20:00:29 +08:00
Darshan Dobariya
169ee08c04 feat(nimble): Authorize or deauthorize a BLE device for a connection 2024-02-19 18:54:41 +08:00
Island
10f14d5cca Merge branch 'bugfix/ble_update_lib_20240207' into 'master'
update lib on master

See merge request espressif/esp-idf!28969
2024-02-19 18:11:19 +08:00
Wang Meng Yang
28ff8e3788 Merge branch 'feat/add_test_api_for_sec' into 'master'
Feat/add test api for sec

Closes BT-3578 and BT-3579

See merge request espressif/esp-idf!28191
2024-02-18 09:57:37 +08:00
fl0wl0w
90d1dcfd76 feat(freertos): Introduced new Kconfig option CONFIG_FREERTOS_NUMBER_OF_CORES
This commit replaces the use of portNUM_PROCESSORS and configNUM_CORES
macros in all of ESP-IDF. These macros are needed to realize an SMP
scenario by fetching the number of active cores FreeRTOS is running on.
Instead, a new Kconfig option, CONFIG_FREERTOS_NUMBER_OF_CORES, has been
added as a proxy for the FreeRTOS config option, configNUMBER_OF_CORES.
This new commit is now used to realize an SMP scenario in various places
in ESP-IDF.

[Sudeep Mohanty: Added new Kconfig option CONFIG_FREERTOS_NUMBER_OF_CORES]

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2024-02-09 09:11:28 +01:00
Roland Dobai
1a80217af5 Merge branch 'bugfix/kconcheck_file_checks' into 'master'
bugfix: Fixed KConfig files that were not succesfully checked

Closes IDF-9028 and IDF-9027

See merge request espressif/esp-idf!28385
2024-02-07 19:12:25 +08:00
luomanruo
b037585852 ble(update):
Update h2 lib to eb112893
Update c6 lib to eb112893
2024-02-07 17:29:25 +08:00
Wang Meng Yang
4fb231088d Merge branch 'bugfix/fix_dangling_pointer_in_remove_bond_list_section' into 'master'
fix(bt/bluedroid): fix dangling pointer issue when logging removed section

See merge request espressif/esp-idf!28734
2024-02-07 14:51:17 +08:00
Rahul Tank
1741705517 Merge branch 'bugfix/fix_out_of_order_messages_causing_dos' into 'master'
fix(nimble): Out of order messages during SMP causing DOS vulerability

Closes BLERP-498

See merge request espressif/esp-idf!28544
2024-02-06 12:40:12 +08:00
Island
37f0447961 Merge branch 'bugfix/fix_dtm_tx_count' into 'master'
fix(ble/controller): Fixed tx count in direct test mode

Closes BLERP-537, BLERP-549, and BLERP-550

See merge request espressif/esp-idf!28781
2024-02-05 14:45:05 +08:00
SumeetSingh19
78a46316f1 fix(nimble): Out of order messages during SMP causing DOS vulerability 2024-02-05 09:30:55 +05:30
Jiang Jiang Jian
1bfd5cd5c5 Merge branch 'feature/add_api_to_get_controller_status_on_esp32' into 'master'
feat(ble/controller): Add API to get BLE controller status on ESP32

Closes BLERP-549

See merge request espressif/esp-idf!28875
2024-02-05 11:07:07 +08:00
Jiang Jiang Jian
289de9d872 Merge branch 'bugfix/fix_xQueueSemaphoreTask_assert_when_deinit_host' into 'master'
Fixed xQueueSemaphoreTask assert when deinit host during scan

Closes BLERP-536 and BLERP-552

See merge request espressif/esp-idf!28767
2024-02-05 11:03:12 +08:00
gongyantao
3f205d4d85 fix(bt/bluedroid): fix dangling pointer issue when logging remove section 2024-02-05 10:01:44 +08:00
Wu Zheng Hui
5454d37d49 Merge branch 'feature/support_gdma_retention' into 'master'
feature: support gdma retention in pd_top lightsleep

Closes IDF-7704 and IDFGH-11389

See merge request espressif/esp-idf!27246
2024-02-04 20:17:02 +08:00
Island
24aba63c5b Merge branch 'feat/support_get_bluedroid_status' into 'master'
feat(bt/bluedroid): Support get status of bluedroid host

Closes BLERP-468

See merge request espressif/esp-idf!28555
2024-02-04 16:00:42 +08:00
zhiweijian
307b2507f3 feat(ble/controller): Add API to get BLE controller status on ESP32 2024-02-04 14:16:40 +08:00
zhanghaipeng
eb92ea3461 fix(ble/controller): Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- fixed modem sleep enter failed sometimes
2024-02-04 11:49:47 +08:00
Island
adc49dfed7 Merge branch 'bugfix/fix_some_ble_bugs_2401' into 'master'
FIxed some BLE bugs 2401 on ESP32C3(91980c2)

Closes BLERP-513, BLERP-514, BLERP-515, BLERP-516, BLERP-517, BLERP-518, BLERP-519, BLERP-520, BLERP-521, BLERP-522, BLERP-523, BLERP-524, BLERP-525, BLERP-526, and BLERP-527

See merge request espressif/esp-idf!28691
2024-02-04 10:49:23 +08:00
Jakub Kocka
0b00e49ac5 fix: Fixed KConfig files that were not succesfully checked 2024-02-02 14:13:45 +01:00
chenjianhua
a3f5382eaa feat(bt/bluedroid): Support get status of bluedroid host 2024-02-02 17:29:11 +08:00
Rahul Tank
4a7db059ba fix(nimble): Added API to get current stack operation status 2024-02-02 13:57:46 +05:30
wuzhenghui
247b4e0574
change(esp_hw_support): collect retention link priority definition 2024-02-02 11:21:44 +08:00
Rahul Tank
ac63f7c9dd fix(nimble): Add adv interval min/max range check 2024-02-01 13:35:28 +05:30
chenjianhua
20acc39eb2 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(91980c2)
- Fixed scheduling when modem sleep wakeup delayed
- Fixed IRQ FIFO overflow when enter critical
- Fixed clock sync timeout for modem sleep
- Fixed directed adv with RPA when privacy disabled
- Fixed instant passed for connection update and PHY update
2024-01-31 19:39:04 +08:00
zhiweijian
5b63a473f8 Fixed xQueueSemaphoreTask assert when deinit host during scan 2024-01-31 19:06:22 +08:00
Rahul Tank
6c614a50ab fix(nimble): Merge hci_common.h file for all chips 2024-01-31 13:41:31 +05:30
Roshan Bangar
51efb20516 feat(nimble): Nimble Host only mode over uart 2024-01-31 09:49:21 +05:30
chenjianhua
b99cb002ed fix(bt/bluedroid): Fixed crash when calculating GATTS database hash 2024-01-31 10:08:16 +08:00
Jiang Jiang Jian
6ebda2a9b4 Merge branch 'bugfix/ble_rtc_slow_clk_drift_err' into 'master'
fix(ble): Fixed macro definition error for 136K clock drift

See merge request espressif/esp-idf!28749
2024-01-30 15:27:32 +08:00
Rahul Tank
4e5e8a7102 Merge branch 'feat/add_dtm_function_support' into 'master'
feat(nimble): Add APIs to support BLE DTM functions

Closes BLERP-238

See merge request espressif/esp-idf!27121
2024-01-29 19:55:17 +08:00
Island
c3645202da Merge branch 'bugfix/ble_mesh_deinit_reinit' into 'master'
ble mesh: improve ble mesh deinit

See merge request espressif/esp-idf!19199
2024-01-29 13:59:07 +08:00
Rahul Tank
baf9b98cd0 feat(nimble): Add APIs to support BLE DTM functions 2024-01-29 11:20:10 +05:30
Rahul Tank
c8220ad5af Merge branch 'feat/features_and_fixes_for_pts_qualification' into 'master'
feat(nimble): Features and Fixes for PTS Qualification

Closes BLERP-427, BLERP-429, and BLERP-430

See merge request espressif/esp-idf!28608
2024-01-29 13:37:45 +08:00
xiongweichao
dd943fad9a fix(ble): Fixed macro definition error for 136K clock drift 2024-01-29 11:29:01 +08:00
Island
ec807d9127 Merge branch 'bugfix/ble_update_lib_20240125' into 'master'
Update C6 H2 lib to bb9d578e

Closes BLERP-528, BLERP-469, BLERP-530, and BLERP-533

See merge request espressif/esp-idf!28700
2024-01-29 10:40:28 +08:00
SumeetSingh19
92d20f6708 feat(nimble): client presentation and aggregate format descriptor support 2024-01-25 18:34:55 +05:30
SumeetSingh19
0bd8301755 feat(nimble): signed write support 2024-01-25 18:34:55 +05:30
SumeetSingh19
7ad6df977e feat(nimble): additional AD types for advertisements 2024-01-25 18:34:55 +05:30
SumeetSingh19
7bda1db4f8 feat(nimble): authorization permission on gatt read and write 2024-01-25 18:34:55 +05:30
SumeetSingh19
2d71f64033 fix(nimble): allow auto connection and observer role 2024-01-25 18:34:55 +05:30
zwl
2f7c122c51 Update ble lib to eb473dda on ESP32-C6 and ESP32-H2 2024-01-25 20:26:35 +08:00
zwl
5172a99c9b feat(ble): add ble controller version output on ESP32-C6 and ESP32-H2 2024-01-25 17:04:48 +08:00
zwl
4a5127c029 feat(ble): add ble controller status check api on ESP32-C6 and ESP32-H2 2024-01-25 17:04:48 +08:00
zwl
e1d27c3b5d fix(ble): fixed build error when disable sm feature 2024-01-25 17:04:44 +08:00
luomanruo
688cbcfa31 Update C6 H2 lib to bb9d578e 2024-01-25 16:09:08 +08:00
xiongweichao
3e2ef4f26c fix(ble): Fixed Bluetooth not waking up due to clock drift 2024-01-25 10:23:02 +08:00
Rahul Tank
bcb8d179dd Merge branch 'bugfix/fix_sm_inject_io_return_val' into 'master'
fix(nimble): Added change to ensure that API execution returns success

See merge request espressif/esp-idf!28402
2024-01-23 18:06:16 +08:00
Island
9746de97ce Merge branch 'bugfix/struct_init_order_blemesh' into 'master'
ble mesh: Modify the structure initialization order to meet C++ requirements

See merge request espressif/esp-idf!18077
2024-01-23 12:20:18 +08:00
Island
a4268b88c5 Merge branch 'bugfix/fix_ble_remove_bond' into 'master'
fix(ble/bluedroid): Fix dangling pointer issue in deletion of bonded devices

Closes BLERP-478

See merge request espressif/esp-idf!28589
2024-01-22 20:35:51 +08:00
InfiniteYuan
8191f319a3 ble_mesh: stack: fix the structure init order to meet C++ requirements 2024-01-22 14:12:11 +08:00
Island
ed025da95c Merge branch 'feat/support_ble_aux_when_data_length_zero' into 'master'
feat(bt/bluedroid): Support ext adv aux option

Closes BLERP-253 and BLERP-470

See merge request espressif/esp-idf!28458
2024-01-22 11:06:01 +08:00
Jiang Jiang Jian
54bcaae1ac Merge branch 'bugfix/fix_scan_request_ifs_error' into 'master'
Fixed BLE scan request ifs time error in coexistence scenarios on ESP32

Closes BT-3593, CBLE50Y23-138, and BT-3605

See merge request espressif/esp-idf!28460
2024-01-22 11:00:54 +08:00
Island
f8a12adcf5 Merge branch 'feat/support_ble_get_callback' into 'master'
Feat/support ble get callback

See merge request espressif/esp-idf!28355
2024-01-22 10:43:28 +08:00
Island
44862867a7 Merge branch 'bugfix/fix_ble_memory_leak' into 'master'
fix(ble/bluedroid): Fix ble memory leak when gattc config off

See merge request espressif/esp-idf!28468
2024-01-22 10:42:56 +08:00
Island
b667d20312 Merge branch 'bugfix/ble_update_lib_20231229' into 'master'
update lib on master

Closes BLERP-414, BLERP-415, BLERP-416, BLERP-418, BLERP-419, BLERP-417, BLERP-355, BLERP-420, BLERP-421, BLERP-422, BLERP-443, BLERP-445, BLERP-444, BLERP-442, BLERP-446, and BT-3558

See merge request espressif/esp-idf!28186
2024-01-22 10:38:16 +08:00
zhanghaipeng
101bfcd7a1 fix(ble/bluedroid): Fix BLE background connection log level 2024-01-20 16:42:54 +08:00
zhanghaipeng
b491c7bb6f fix(ble/bluedroid): Fix dangling pointer issue in deletion of bonded devices 2024-01-20 16:35:38 +08:00
zhiweijian
5552941e57 Fixed BLE scan request ifs timer error in coexistence scenarios 2024-01-20 11:26:52 +08:00
Darshan Dobariya
35d3306200 fix(nimble): Added change to ensure that API execution returns success 2024-01-19 14:48:43 +05:30
zhanghaipeng
aeeb64966b feat(bt/bluedroid): Support ext adv aux option 2024-01-19 16:48:18 +08:00
luomanruo
dededd1267 change(ble): npl count is zero if nimble host is not used
change(ble): added npl eventq put to front

change(ble): added cache safe check in ble power save example

ble(update):
    Update c2 lib to 91b81332
    Update h2 lib to 620fbe79
    Update c6 lib to 620fbe79

fix(ble): fix stack overflow disable at sleep

Revert "change(ble): added ble cca en and thresh option"

This reverts commit 71901499b9.
2024-01-19 16:13:12 +08:00
zhanghaipeng
0f29b3cef9 fix(bt/bluedroid): Fix BLE malloc internal wrapper fail 2024-01-19 11:22:33 +08:00
zhanghaipeng
ee4d4f1d35 docs(ble/bluedroid): Optimize documentation for BLE duplicate scan 2024-01-19 11:21:42 +08:00
zhanghaipeng
8de484888f feat(ble/bluedroid): Add getter for BLE GATTC calllback 2024-01-19 11:21:42 +08:00
Zeke Gustafson
be47da1962 feat(ble/bluedroid): Add getter for BLE GATTS callback 2024-01-19 11:21:42 +08:00
Zeke Gustafson
6bc5b0069f feat(ble/bluedroid): Add getter for BLE GAP callback 2024-01-19 11:21:42 +08:00
Omar Chebib
cdde05335e Merge branch 'refactor/riscv_interrupt' into 'master'
refactor(riscv): Refactor crosscore interrupts and core interrupt code

Closes IDF-5720, DOC-5177, and IDF-7899

See merge request espressif/esp-idf!27845
2024-01-19 10:51:04 +08:00
Omar Chebib
102d5bbf72 refactor(riscv): added a new API for the interrupts 2024-01-18 16:36:53 +08:00