Commit Graph

3357 Commits

Author SHA1 Message Date
Roshan Bangar
dc9d9b41f2 fix(nimble): Added periodic_adv_enh soc_caps for c2, h2 2023-12-27 15:03:17 +05:30
Jiang Jiang Jian
48091104b6 Merge branch 'test/ctrl_acl_u_pkt_type_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic

See merge request espressif/esp-idf!27598
2023-12-27 16:53:43 +08:00
Jiang Jiang Jian
ddd142e624 Merge branch 'bugfix/fix_ble_recorrect_enable_bug_v5.1' into 'release/v5.1'
fix(ble/controller): Fixed BLE recorrect enable bug and fixed BLE bb isr enable by default (backport v5.1)

See merge request espressif/esp-idf!28110
2023-12-27 12:03:47 +08:00
Jin Cheng
9d41ed6546 feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic 2023-12-26 20:21:15 +08:00
Jin Cheng
f7cfcebe69 fix(bt/bluedroid): Disabled Sniff Subrating temporarily as it did not work well 2023-12-26 11:51:32 +08:00
Jin Cheng
885c070eb8 fix(bt/bluedroid): Changed the default air mode to invalid value 2023-12-26 11:51:32 +08:00
Jin Cheng
5f621c33da fix(bt/bluedroid): Removed redundant operation of SCO clean up 2023-12-26 11:51:32 +08:00
Jin Cheng
bf7e27d126 fix(bt/bluedroid): Corrected the definitions of HF Client callback events 2023-12-26 11:51:32 +08:00
Jin Cheng
94faa4a112 fix(bt/bluedroid): Avoided crash of LoadProhibited during HFP AG deinitialization
Move the release of the control blocks from the start
of deinitialization to the profile disabled event.
2023-12-26 11:51:32 +08:00
Jin Cheng
3c088db873 fix(bt/bluedroid): Added dynamic memory allocation for HFP control blocks 2023-12-26 11:51:32 +08:00
Jin Cheng
244a3f892e fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in L2CAP layer 2023-12-26 11:04:46 +08:00
Jin Cheng
0d5d7cbff7 fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in BTC layer 2023-12-26 11:04:46 +08:00
Island
d24b321eec Merge branch 'bugfix/fixed_stop_periodic_adv_assert_issue_v5.1' into 'release/v5.1'
fixed(ble): fixed an assertion issue when stopping periodic adv on ESP32C6 and ESP32H2

See merge request espressif/esp-idf!28084
2023-12-25 18:31:20 +08:00
zhiweijian
dd6e1b76fc fix(ble/controller): Fixed BLE recorrect enable bug and fixed BLE bb isr enable by default 2023-12-25 16:21:47 +08:00
linruihao
ddab5dbaa4 fix(bt/controller): Fixed establish two sco connections failed 2023-12-25 10:42:36 +08:00
Jiang Jiang Jian
df8cc9ad37 Merge branch 'fix/btc_config_lock_error_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fixed btc_config_lock error (backport v5.1)

See merge request espressif/esp-idf!28070
2023-12-25 10:18:26 +08:00
zhanghaipeng
6644bcc320 fix(bt/bluedroid): Fix BLE prepare write 2023-12-23 20:19:37 +08:00
Rahul Tank
0dc286db38 fix(nimble): Add VSC support for setting chan select algo 2023-12-22 18:31:52 +05:30
Rahul Tank
3629f070b6 Merge branch 'feature/hogp_example_support_v5.1' into 'release/v5.1'
feat(nimble): Added HID over Gatt Profile Support (v5.1)

See merge request espressif/esp-idf!28025
2023-12-22 20:52:17 +08:00
zwl
0fe3057529 fixed(ble): fixed an assertion issue when stopping periodic adv on ESP32C6 and ESP32H2 2023-12-22 15:35:28 +08:00
Island
6deb0ae743 Merge branch 'bugfix/ble_update_lib_20231219_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!27999
2023-12-22 14:57:32 +08:00
Roshan Bangar
a95bf9e0c3 feat(nimble): added HID over Gatt profile support 2023-12-22 11:23:05 +05:30
Rahul Tank
04b6feb1ad Merge branch 'bugfix/handle_all_zero_bdaddr_v5.1' into 'release/v5.1'
fix(nimble): Handle all 0s address of external controllers during IRK generation (v5.1)

See merge request espressif/esp-idf!27960
2023-12-22 11:53:07 +08:00
gongyantao
83a99d954d fix(bt/bluedroid): fixed btc_config_lock error 2023-12-22 11:30:39 +08:00
Island
b34ab72832 Merge branch 'bugfix/BLEQABR23-811_v5.1' into 'release/v5.1'
bugfix(ble_mesh): Enable CONFIG_BT_NIMBLE_VS_SUPPORT when using the duplicate...(v5.1)

See merge request espressif/esp-idf!27568
2023-12-21 20:22:26 +08:00
Jiang Jiang Jian
925e3e2ed5 Merge branch 'fix/build_error_in_compiler_performance_mode_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fixed build error when compiler in performace mode (backport v5.1)

See merge request espressif/esp-idf!27864
2023-12-21 11:30:38 +08:00
Jiang Jiang Jian
90435019a1 Merge branch 'bugfix/fix_memory_leak_in_c3_s3_controller_v5.1' into 'release/v5.1'
Fixed memory leak in ESP32C3 and ESP32S3 controller (Backport v5.1)

See merge request espressif/esp-idf!27892
2023-12-21 11:29:39 +08:00
luoxu
b37d4079ff bugfix(ble_mesh): Enable CONFIG_BT_NIMBLE_VS_SUPPORT when using the duplicate scan feature on the NimBLE host. 2023-12-20 11:18:36 +08:00
muhaidong
13094f2216 change(wifi): update esp_coexist_internal.h and esp_modem_wrapper.h 2023-12-19 19:15:49 +08:00
cjin
d5bfb9b326 change(ble): added ble cca en and thresh option 2023-12-19 14:34:44 +08:00
luomanruo
c67710bacf ble: support for selecting CSA#2 by menuconfig
ble(fix): fixed event receiving on host side without returning event buffer to pool
2023-12-19 14:20:19 +08:00
luomanruo
90497ae541 ble(update):
Update c2 lib to 7c6c9d53
Update h2 lib to 0ecb36f0
Update c6 lib to 0ecb36f0
2023-12-19 12:25:26 +08:00
Island
fae6ce0e7d Merge branch 'bugfix/ble_stack_disable_v5.1' into 'release/v5.1'
Bugfix/ble stack disable v5.1(backport v5.1)

See merge request espressif/esp-idf!27650
2023-12-19 12:00:04 +08:00
zhanghaipeng
103656e7a2 feat(bt/bluedroid): Support ble create sync report disable and filter duplicate 2023-12-18 11:51:29 +08:00
zhanghaipeng
e0a0ee9ae9 fix(bt/bluedroid): Fix bluedroid menuconfig 2023-12-18 11:51:29 +08:00
zhanghaipeng
8d78433dea fix(bt/bluedroid): Fix BLE SMP register log level 2023-12-18 11:51:29 +08:00
zhanghaipeng
55409e2395 fix(bt/bluedroid): Fix ble adv and scan status when deinit bluedroid 2023-12-18 11:47:50 +08:00
Rahul Tank
c0cfdd9c46 fix(nimble): Handle all 0s address of external controllers during IRK generation 2023-12-16 17:31:57 +05:30
Rahul Tank
3c49099503 fix(nimble): Added NULL peer addr check 2023-12-15 18:06:40 +05:30
Rahul Tank
8a6d244a21 Merge branch 'bugfix/fix_sm_inject_return_value_v5.1' into 'release/v5.1'
fix(nimble): Added change to return success for API execution (v5.1)

See merge request espressif/esp-idf!27727
2023-12-15 19:33:16 +08:00
Rahul Tank
820d4a92d2 Merge branch 'feature/current_time_service_v5.1' into 'release/v5.1'
feat(nimble): Added Example support for Current Time Service (v5.1)

See merge request espressif/esp-idf!27262
2023-12-15 13:18:24 +08:00
Rahul Tank
4c288321cb fix(nimble): Added change to return success for API execution 2023-12-14 20:57:30 +05:30
Roshan Bangar
e8503d6efe feat(nimble): Added example support for Current Time Service 2023-12-14 20:24:20 +05:30
zhanghaipeng
bd1dc8dfaf fix(bt/bluedroid): Fix ble gattc deregister 2023-12-14 17:53:22 +08:00
Darshan Dobariya
6bae5e5d6f fix(nimble): Fixed authcomplete failure caused by a mismatch in the c1 value (v5.1) 2023-12-14 14:13:45 +05:30
Abhinav Kudnar
eef85a92f4 fix(nimble): Handled the deletion of RPA mapping. 2023-12-14 09:41:07 +05:30
Rahul Tank
0eec2b50be Merge branch 'bugfix/add_legacy_adv_clear_vsc_v5.1' into 'release/v5.1'
fix(nimble): Add support for VSC to clear legacy adv memory (v5.1)

See merge request espressif/esp-idf!27471
2023-12-14 12:01:09 +08:00
linruihao
45e96ae1c3 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(9129dec) 2023-12-13 19:53:06 +08:00
Island
c6a9a06856 Merge branch 'bugfix/fix_some_ble_bugs_v5.1' into 'release/v5.1'
Fixed some BLE bugs (backport v5.1)

See merge request espressif/esp-idf!27695
2023-12-13 11:55:52 +08:00
gongyantao
407376b6e6 fix(bt/bluedroid): fixed build error when compiler in performace mode
Closes https://github.com/espressif/esp-idf/issues/12751
2023-12-12 19:04:27 +08:00
Rahul Tank
a0b2682e58 fix(nimble): Add support for VSC to clear legacy adv memory
Legacy adv does not have an API for clear adv memory in controller.
 Added VSC for same.
2023-12-12 07:49:18 +05:30
Jiang Jiang Jian
e91322891c Merge branch 'fix/esp32c6_sleep_pll_issue_v5.1' into 'release/v5.1'
fix(pm): add mac/bb power down/up prepare for fix esp32c6 pll issue (backport v5.1)

See merge request espressif/esp-idf!27339
2023-12-11 15:12:51 +08:00
Jiang Jiang Jian
cda441f47f Merge branch 'bugfix/cts_handle_invalid_year_val_v5.1' into 'release/v5.1'
fix(nimble): Handled invalid write on year value in Current Time Service (v5.1)

See merge request espressif/esp-idf!27462
2023-12-11 15:12:14 +08:00
Jiang Jiang Jian
8a47b0776b Merge branch 'feature/refactor_some_coexist_sections_v5.1' into 'release/v5.1'
Feature/refactor some coexist sections v5.1

See merge request espressif/esp-idf!27367
2023-12-11 14:50:43 +08:00
liuning
ae07349ec4 feat(coex): apply struct for coex version 2023-12-08 13:06:55 +00:00
chenjianhua
15c8d7f65f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(65db61f)
- Fixed remove and clear white list
2023-12-08 19:54:51 +08:00
chenjianhua
5f2c8edd27 fix(bt): Update bt lib for ESP32(fa43201)
- Fixed assert for instant passed workaround
- Fixed scan evt timeout
- Fixed random address setting when scanning
2023-12-08 19:54:39 +08:00
shangke
4d6be44b25 fix(bt/controller): Fixed some HCI commands parameter 2023-12-08 19:54:39 +08:00
chenjianhua
4d546878b7 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b8f0db9)
- Fixed assert when llcp instant passed
2023-12-08 19:54:39 +08:00
chenjianhua
b1421ac4af fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(70ab55f)
- Fixed assert for instant passed workaround
- Fixed add RPA to white list
- Fixed AES encryption for RPA resolution
2023-12-08 19:54:39 +08:00
chenjianhua
2dea0ef6ef fix(bt/bluedroid): Fixed add RPA to white list 2023-12-08 19:54:39 +08:00
luomanruo
3cdbb0406d ble(fix): Fixed crash issue when reset event queue 2023-12-08 17:21:19 +08:00
luomanruo
9b0e4ee24a ble(fix): clear event queue when init event queue
ble: update log module on ESP32C2, ESP32H2 and ESP32C6
2023-12-08 17:20:55 +08:00
luomanruo
4f27be7127 ble(update):
Update c2 lib to 47a787f0
Update h2 lib to 73452eac
Update c6 lib to 73452eac
2023-12-08 17:19:57 +08:00
xiaqilin
ef4f420663 fix(pm): add mac/bb power down/up prepare for fix esp32c6 pll issue
* switch root clk src to PLL for modem reg opt and added callback
* register power_down/power_up callback in ieee802154 driver for esp32c6
* remove software regdma opt in bt
2023-12-08 08:03:32 +00:00
Roshan Bangar
a496e87d73 fix(nimble): Handled invalid write on year value in Current Time Service 2023-12-06 18:03:59 +05:30
Island
fae44bf123 Merge branch 'bugfix/ble_update_lib_20231124_v5.1' into 'release/v5.1'
ble(update):Update c2 lib to 79ed4e8a,Update h2 lib to 9a237426,Update c6 lib to 9a237426

See merge request espressif/esp-idf!27393
2023-12-01 13:58:21 +08:00
Rahul Tank
d300f91b4e fix(nimble): Fix the parameters in duplicate exception list vsc command 2023-11-27 09:22:07 +05:30
Rahul Tank
40534e5ad6 fix(nimble): Fix dangling pointer error during compilation 2023-11-26 12:38:19 +05:30
luomanruo
8f37c22a0d ble: update sdkconfig_version on ESP32C2, ESP32H2 and ESP32C6 2023-11-24 20:19:50 +08:00
luomanruo
ff0106345f ble:
Update c2 lib to 79ed4e8a
Update h2 lib to 9a237426
Update c6 lib to 9a237426
2023-11-24 19:21:04 +08:00
Jiang Jiang Jian
9e863521c6 Merge branch 'bugfix/ble_gap_unpair_oldest_peer_fix_v5.1' into 'release/v5.1'
fix(nimble): Fixed ble_gap_unpair_oldest_peer to prevent writing to invalid memory (v5.1)

See merge request espressif/esp-idf!27316
2023-11-24 10:15:33 +08:00
Island
80b61281b9 Merge branch 'bugfix/ble_update_lib_1110_5.1' into 'release/v5.1'
Bugfix/ble update lib 1110 5.1

See merge request espressif/esp-idf!27061
2023-11-23 19:10:49 +08:00
darshan7patel
2db80a8d3c fix(nimble): Fixed ble_gap_unpair_oldest_peer to prevent writing to invalid memory (v5.1) 2023-11-23 11:17:04 +05:30
Rahul Tank
e55ede5f94 Merge branch 'feature/get_whitelist_size_v5.1' into 'release/v5.1'
feat(nimble): Added API to retrieve the size of the controller's white list (v5.1)

See merge request espressif/esp-idf!26954
2023-11-23 12:34:19 +08:00
Jiang Jiang Jian
2cc61caf7b Merge branch 'bugfix/add_par_check_in_ag_cind_res_v5.1' into 'release/v5.1'
Bugfix/add par check in ag cind res v5.1

See merge request espressif/esp-idf!27257
2023-11-22 17:47:28 +08:00
Jiang Jiang Jian
d5e87fed74 Merge branch 'bugfix/spp_deinit_crash_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix the crash of invalid access to released resources (v5.1)

See merge request espressif/esp-idf!27251
2023-11-22 17:45:48 +08:00
Jiang Jiang Jian
8b6977b883 Merge branch 'bugfix/coex_cfg_option_invisible_v5.1' into 'release/v5.1'
fix(esp_coex): Fix dependency errors in coexist configuration (Backport v5.1)

See merge request espressif/esp-idf!26577
2023-11-22 17:45:05 +08:00
darshan
8dcd59f34f feat(nimble): Added API to retrieve the size of the controller's white list (v5.1) 2023-11-22 10:29:36 +05:30
luomanruo
d24f7d9f12 ble(fix): deinit crash issue 2023-11-21 15:05:22 +08:00
luomanruo
11f26f3319 ble: update controller log module 2023-11-21 15:03:38 +08:00
luomanruo
fcc8ce5de5 ble: update c6 h2 lib to 5b1dfd2b, c2 lib to db4e1fb2 2023-11-21 15:03:38 +08:00
luomanruo
2984e14eba ble(fix): Fixed the issue of not returning memory to the memory pool after deinit callout
ble(fix): Fixed the issue of not returning memory to the memory pool after deinit callout
2023-11-21 15:03:38 +08:00
Rahul Tank
6965a11570 fix(nimble): Generate a new unique Local IRK for each chip 2023-11-21 10:23:42 +05:30
Abhinav Kudnar
533b4a2e02 fix(nimble): Handled IRK/LTK deletion based on key availability 2023-11-21 07:15:56 +05:30
Rahul Tank
c75bab8fcb fix(nimble): Initate pairing if encryption fails with reason no pin or key missing 2023-11-20 20:22:48 +05:30
darshan
ca4ba28613 fix(nimble): Fixed incorrect handling of bonded devices 2023-11-20 12:27:18 +05:30
Rahul Tank
a08c557001 Merge branch 'bugfix/validate_random_address_v5.1' into 'release/v5.1'
fix(nimble): Added check to validate allowed random address (v5.1)

See merge request espressif/esp-idf!26928
2023-11-20 14:48:33 +08:00
Wang Meng Yang
00936f9434 Merge branch 'feature/support_for_32_and_128_bit_custom_uuids_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Add new APIs for 32 and 128-bit UUIDs (backport v5.1)

See merge request espressif/esp-idf!27230
2023-11-20 14:07:56 +08:00
Jin Cheng
b9a0ca6feb fix(bt/bluedroid): corrected the API documents of profile HFP and A2DP 2023-11-20 11:59:05 +08:00
Jin Cheng
e4ab4499b0 fix(bt/bluedroid): Added some argument check in APIs of HFP AG 2023-11-20 11:59:01 +08:00
Rahul Tank
7e21aff12c fix(nimble): Added check to validate allowed random address 2023-11-20 08:19:38 +05:30
Abhinav Kudnar
c91c8a1197 fix(nimble): Handled crash caused due to incorrect use of reattempt_idx 2023-11-18 17:16:17 +05:30
Island
4023a22512 Merge branch 'bugfix/fix_some_ble_bugs_v5.1' into 'release/v5.1'
Fixed some BLE bugs (backport v5.1)

See merge request espressif/esp-idf!27196
2023-11-17 20:21:57 +08:00
Island
7f63951872 Merge branch 'backport/fix_ble_scan_rsp_v5.1' into 'release/v5.1'
Backport/fix ble scan rsp v5.1(backport v5.1)

See merge request espressif/esp-idf!27007
2023-11-17 18:18:29 +08:00
Ilia Lutchenko
71d08e38db feat(bt/bluedroid): Add new APIs for 32 and 128-bit UUIDs
1. Added new API functions that can add 32 and 128-bit UUID to the EIR data
when these UUIDs are set in SDP.
The old functions that only work with 16-bit UUIDs have been left
unchanged to avoid having to redo code that already utilizes them.

2. Fixed bug with zero handler return in btc_sdp.c
sdp_create_record.handle in tBTA_SDP struct wasn't saved before.
Because of it Bluetooth stack always returned zero handler to
application callback.

Closes https://github.com/espressif/esp-idf/issues/11529
2023-11-17 15:57:28 +08:00
Jin Cheng
ac4ee1d2d6 fix(bt/bluedroid): Fix the crash of invalid access to released resources
It is caused by the delayed timer is alarmed after esp_spp_deinit.
2023-11-17 10:38:55 +08:00
chenjianhua
b862072372 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(2758518)
- Fixed power state setting when entering modem sleep
2023-11-16 16:40:31 +08:00
chenjianhua
981d3d2336 Update bt lib for ESP32-C3 and ESP32-S3(f817304)
- Support get the range of TX power level
- Support clear legacy adv using vendor hci
2023-11-16 16:40:18 +08:00
zhanghaipeng
a6de577573 fix(ble/controller): Fix bugs in setting adv data and scan response data 2023-11-16 16:40:04 +08:00