Commit Graph

3205 Commits

Author SHA1 Message Date
Zeke Gustafson
46253edd6a feat(ble/bluedroid): Add getter for BLE GATTS callback 2024-01-22 20:53:36 +08:00
zhanghaipeng
b9caeb4559 feat(ble/bluedroid): Add getter for BLE GATTC calllback 2024-01-22 20:53:28 +08:00
zhanghaipeng
a3759a122e docs(ble/bluedroid): Optimize documentation for BLE duplicate scan 2024-01-22 20:53:20 +08:00
zhanghaipeng
b447216f8a fix(ble/bluedroid): Fix dangling pointer issue in deletion of bonded devices 2024-01-22 20:53:08 +08:00
zhanghaipeng
00b839ca66 fix(ble/bluedroid): Fix BLE background connection log level 2024-01-22 20:53:00 +08:00
Jiang Jiang Jian
ad2c1809ce Merge branch 'bugfix/ble_update_lib_20231229_v5.0' into 'release/v5.0'
update lib on release/v5.0

See merge request espressif/esp-idf!28187
2024-01-22 11:15:01 +08:00
luoxu
90ee8c4cb8 bugfix(ble_mesh): add duplicate scan config for esp32s3 2024-01-19 16:57:59 +08:00
luoxu
e138aae301 feat(ble_mesh): Miscellaneous updates for mesh kconfig, relay related 2024-01-19 16:57:59 +08:00
zhiweijian
8aa3f66084 Fixed BLE scan request ifs timer error in coexistence scenarios 2024-01-19 14:53:40 +08:00
xiongweichao
6674d0f0e5 fix(bt/bluedroid): Fixed SPP connection failure
The connection failure is caused by the BTU and application layer status being out of sync.
2024-01-17 19:40:38 +08:00
cjin
dd7bd8ab34 Revert "change(ble): added ble cca en and thresh option"
This reverts commit f6760db77d.
2024-01-17 18:01:06 +08:00
luomanruo
6cc8d4e697 ble(update):
Update c2 lib to e5789394
2024-01-17 15:41:51 +08:00
luomanruo
46bbb6cb48 ble: npl count is zero if nimble host is not used 2024-01-17 15:41:51 +08:00
luomanruo
edcb550e85 ble(update):
Update c2 lib to e5789394
2024-01-17 15:41:51 +08:00
Darshan Dobariya
c35c5adfb2 fix(nimble): Added support for address resolution during inquiry (v5.0) 2024-01-17 11:30:48 +05:30
zhanghaipeng
587a797f7b fix(ble/bluedroid): Fix ble memory leak when gattc config off 2024-01-16 15:44:54 +08:00
linruihao
50ef9e3533 fix(ble): fixed interrupt timeout in MAC_BB_PD callback 2024-01-15 16:17:06 +08:00
zhanghaipeng
8476ff2fa3 fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow 2024-01-11 16:34:59 +08:00
Rahul Tank
37ccf9b6c5 Merge branch 'bugfix/reattempt_conn_feat_extended_v5.0' into 'release/v5.0'
fix(nimble): Support for reattempt connection in ext connect (v5.0)

See merge request espressif/esp-idf!28307
2024-01-08 20:36:50 +08:00
linruihao
82a7b0160a fix(bt/bludroid): Increase BTU task stack size 2024-01-08 11:36:53 +08:00
Rahul Tank
f1fe837b23 fix(nimble): Support for reattempt connection in ext connect 2024-01-05 16:43:32 +05:30
Island
97bfd92534 Merge branch 'bugfix/fix_ble_robost_cashing_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix BLE robost cashing config(backport v5.0)

See merge request espressif/esp-idf!28199
2024-01-05 12:44:59 +08:00
Jiang Jiang Jian
15fa0a88d4 Merge branch 'bigfix/BLEQABR23-503_v50' into 'release/v5.0'
fix(ble_mesh): reject node-reseting when provision link is active (V5.0)

See merge request espressif/esp-idf!25847
2024-01-02 15:38:38 +08:00
Wu Meng Shi
b278566acc fix(ble_mesh): reject node-reseting when provision link is active (V5.0) 2024-01-02 15:38:37 +08:00
zhanghaipeng
e8a7e1f600 fix(bt/bluedroid): Fix BLE robost cashing config 2024-01-02 13:28:05 +08:00
Jiang Jiang Jian
35556a6a85 Merge branch 'backport/fix_ble_prepare_write_v5.0' into 'release/v5.0'
Backport/fix ble prepare write v5.0

See merge request espressif/esp-idf!27908
2023-12-31 14:25:28 +08:00
Jiang Jiang Jian
1a9fe8e426 Merge branch 'bugfix/fix_ble_app_unregister_no_event_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix ble app unregister no event(backport v5.0)

See merge request espressif/esp-idf!28174
2023-12-31 14:23:32 +08:00
zhanghaipeng
558cc16710 fix(bt/bluedroid): Fix ble app unregister no event 2023-12-28 19:13:21 +08:00
Rahul Tank
61a772e5c0 fix(nimble): Handled race condition for conn variables being set to NULL(v5.0) 2023-12-28 15:20:15 +05:30
Jiang Jiang Jian
3ce7f472bf Merge branch 'bugfix/fix_ble_recorrect_enable_bug_v5.0' into 'release/v5.0'
fix(ble/controller): Fixed BLE recorrect enable bug and fixed BLE bb isr enable by default (backport v5.0)

See merge request espressif/esp-idf!28109
2023-12-27 20:11:16 +08:00
Jiang Jiang Jian
bdfbb2fe73 Merge branch 'bugfix/crash_in_btc_hf_init_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Avoided crash of LoadProhibited during HFP AG deinitialization (v5.0)

See merge request espressif/esp-idf!28118
2023-12-27 19:42:30 +08:00
Jin Cheng
2a82608282 fix(bt/bluedroid): Disabled Sniff Subrating temporarily as it did not work well 2023-12-26 11:52:13 +08:00
Jin Cheng
75c54798dc fix(bt/bluedroid): Changed the default air mode to invalid value 2023-12-26 11:52:13 +08:00
Jin Cheng
0dc2e89604 fix(bt/bluedroid): Removed redundant operation of SCO clean up 2023-12-26 11:52:13 +08:00
Jin Cheng
eb2cdbdc91 fix(bt/bluedroid): Corrected the definitions of HF Client callback events 2023-12-26 11:52:13 +08:00
Jin Cheng
cfb6bf4c6b 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:52:13 +08:00
Jin Cheng
886a0cfe84 fix(bt/bluedroid): Added dynamic memory allocation for HFP control blocks 2023-12-26 11:52:13 +08:00
zhiweijian
d09adbc8fc fix(ble/controller): Fixed BLE recorrect enable bug and fixed BLE bb isr enable by default 2023-12-25 16:16:53 +08:00
linruihao
42bdbcc946 fix(bt/controller): Fixed establish two sco connections failed 2023-12-25 15:48:39 +08:00
Jiang Jiang Jian
86f06e0560 Merge branch 'bugfix/fix_memory_leak_in_c3_s3_controller_v5.0' into 'release/v5.0'
Fixed memory leak in ESP32C3 and ESP32S3 controller (Backport v5.0)

See merge request espressif/esp-idf!27893
2023-12-25 14:28:16 +08:00
Jiang Jiang Jian
f41f731c56 Merge branch 'fix/build_error_in_compiler_performance_mode_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed build error when compiler in performace mode (backport v5.0)

See merge request espressif/esp-idf!27865
2023-12-25 14:07:18 +08:00
Jiang Jiang Jian
31194d3646 Merge branch 'bugfix/fix_some_ble_bugs_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!27697
2023-12-25 14:06:39 +08:00
Jiang Jiang Jian
042fe83a61 Merge branch 'bugfix/BLEQABR23-35_v5.0' into 'release/v5.0'
fix(ble_mesh): avoid ble_mesh packet collision by using random adv interval(v5.0)

See merge request espressif/esp-idf!27489
2023-12-25 14:05:25 +08:00
Jiang Jiang Jian
bb2f5aed5b Merge branch 'fix/btc_config_lock_error_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed btc_config_lock error (backport v5.0)

See merge request espressif/esp-idf!28071
2023-12-25 14:01:09 +08:00
zhanghaipeng
412ea9d23e fix(bt/bluedroid): Fix BLE prepare write 2023-12-23 20:19:29 +08:00
Island
d7149ac4fc Merge branch 'bugfix/ble_update_lib_20231219_v5.0' into 'release/v5.0'
update lib on release/v5.0

See merge request espressif/esp-idf!27998
2023-12-22 14:57:26 +08:00
gongyantao
e38db79729 fix(bt/bluedroid): fixed btc_config_lock error 2023-12-22 11:30:57 +08:00
Island
561300bfd3 Merge branch 'bugfix/BLEQABR23-811_v5.0' into 'release/v5.0'
bugfix(ble_mesh): Enable CONFIG_BT_NIMBLE_VS_SUPPORT when using the duplicate...(v5.0)

See merge request espressif/esp-idf!27569
2023-12-21 20:22:13 +08:00
Island
85a2945adb Merge branch 'bugfix/ble_stack_disable_v5.0' into 'release/v5.0'
Bugfix/ble stack disable v5.0(backport v5.0)

See merge request espressif/esp-idf!27649
2023-12-20 21:45:52 +08:00
luoxu
9c9af32f7a bugfix(ble_mesh): Supplementary configuration options that should be enabled. 2023-12-20 11:18:55 +08:00
Liu Linyan
9e193a03f1 fix(ble_mesh): Support using random adv interval for mesh packets 2023-12-20 11:18:55 +08:00
luoxu
6e3ab36441 bugfix(ble_mesh): Enable CONFIG_BT_NIMBLE_VS_SUPPORT when using the duplicate scan feature on the NimBLE host. 2023-12-20 11:18:03 +08:00
cjin
f6760db77d change(ble): added ble cca en and thresh option 2023-12-19 14:42:48 +08:00
luomanruo
8b513228e3 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:32:18 +08:00
luomanruo
9af84f4ff7 ble(update):
Update c2 lib to 7c6c9d53
2023-12-19 12:25:17 +08:00
Island
f2221c055a Merge branch 'bugfix/ble_update_lib_20231201_v5.0' into 'release/v5.0'
update lib on release/v5.0

See merge request espressif/esp-idf!27586
2023-12-19 12:06:46 +08:00
Island
7c5cb1054c Merge branch 'backport/fix_ble_menuconfig_v5.0' into 'release/v5.0'
Backport/fix ble menuconfig v5.0(backport v5.0)

See merge request espressif/esp-idf!27496
2023-12-19 11:59:19 +08:00
zhanghaipeng
55603c9a3d fix(bt/bluedroid): Fix ble gattc deregister 2023-12-18 17:55:24 +08:00
zhanghaipeng
c06869b2e7 fix(bt/bluedroid): Fix ble adv and scan status when deinit bluedroid 2023-12-18 17:55:24 +08:00
Darshan Dobariya
4d0c8e8a35 fix(nimble): Fixed authcomplete failure caused by a mismatch in the c1 value (v5.0) 2023-12-16 15:31:45 +05:30
Rahul Tank
83ebd694fa fix(nimble): Added NULL peer addr check 2023-12-16 13:22:59 +05:30
Rahul Tank
6161d7732f Merge branch 'bugfix/fix_duplicate_exception_vsc_v5.0' into 'release/v5.0'
fix(nimble): Fix the parameters in duplicate exception list vsc command(v5.0)

See merge request espressif/esp-idf!27559
2023-12-16 15:47:16 +08:00
Jiang Jiang Jian
871247de22 Merge branch 'test/ctrl_acl_u_pkt_type_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic

See merge request espressif/esp-idf!27599
2023-12-15 19:34:55 +08:00
Rahul Tank
259006a8c3 fix(nimble): Fix the parameters in duplicate exception list vsc command 2023-12-15 15:56:19 +05:30
Rahul Tank
d31cb0d0cd 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-14 17:41:19 +05:30
linruihao
9a4c4b11d3 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(9129dec) 2023-12-13 20:06:55 +08:00
gongyantao
264a743a7b 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:36 +08:00
Jiang Jiang Jian
9fe3bf2a3c Merge branch 'bugfix/fix_ble_clear_white_list_v5.0' into 'release/v5.0'
Fixed add(remove) RPA to(from) white list on ESP32C3(65db61f)(backport 5.0)

See merge request espressif/esp-idf!27757
2023-12-08 19:09:05 +08:00
chenjianhua
32d3bf7919 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(65db61f)
- Fixed remove and clear white list
2023-12-08 13:40:44 +08:00
Abhinav Kudnar
2d14933dbc fix(nimble): Handled IRK/LTK deletion based on key availability. 2023-12-07 13:47:16 +05:30
luomanruo
38f9aa04f8 ble(fix): Fixed crash issue when reset event queue 2023-12-06 14:16:33 +08:00
chenjianhua
51ba771176 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-06 10:51:38 +08:00
shangke
2c3b392b0e fix(bt/controller): Fixed some HCI commands parameter 2023-12-06 10:51:31 +08:00
luomanruo
8e48c4756e ble: update ble log on ESP32C2
ble(fix): clear event queue when init event queue
2023-12-05 16:11:15 +08:00
chenjianhua
259e8ab25b fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b8f0db9)
- Fixed assert when llcp instant passed
2023-12-04 17:09:50 +08:00
chenjianhua
19919a2222 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-04 17:09:38 +08:00
chenjianhua
52333aeac9 fix(bt/bluedroid): Fixed add RPA to white list 2023-12-04 17:09:28 +08:00
Jiang Jiang Jian
1d611df0b5 Merge branch 'bugfix/alarm_args_double_free_v5.0' into 'release/v5.0'
Bugfix/alarm args double free v5.0

See merge request espressif/esp-idf!27539
2023-12-04 14:57:21 +08:00
zhanghaipeng
1355f58180 feat(bt/bluedroid): Support ble create sync report disable and filter duplicate 2023-12-04 14:38:51 +08:00
Jin Cheng
e7a52632f0 feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic 2023-12-04 10:28:05 +08:00
luomanruo
63c78087ed ble(update):
Update c2 lib to 47a787f0
2023-12-01 19:30:43 +08:00
zhanghaipeng
7129df2ad5 fix(bt/bluedroid): Fix BLE SMP register log level 2023-12-01 17:01:26 +08:00
Jin Cheng
db287328bc fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in L2CAP layer 2023-11-30 20:14:31 +08:00
Jin Cheng
bab64a98d8 fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in BTC layer 2023-11-30 20:14:31 +08:00
zhanghaipeng
9ab954096a fix(bt/bluedroid): Fix bluedroid menuconfig 2023-11-30 10:39:06 +08:00
luomanruo
b147fcad42 ble: update sdkconfig_version on ESP32C2, ESP32H2 and ESP32C6 2023-11-24 20:17:28 +08:00
luomanruo
69e7b56c48 ble:
Update c2 lib to 79ed4e8a
2023-11-24 19:20:54 +08:00
Rahul Tank
94c90c71bc fix(nimble): Added check to validate allowed random address 2023-11-23 10:37:54 +05:30
Jiang Jiang Jian
20d82594d7 Merge branch 'bugfix/ble_gap_connect_v5.0' into 'release/v5.0'
fix(nimble):Handled the Load access fault crash caused due to an invalid setting of index-variable 'reattempt_idx'.(v5.0)

See merge request espressif/esp-idf!26950
2023-11-23 12:03:59 +08:00
Jiang Jiang Jian
a5c2e40416 Merge branch 'bugfix/ble_update_lib_1110_5.0' into 'release/v5.0'
Bugfix/ble update lib 1110 5.0

See merge request espressif/esp-idf!27063
2023-11-23 11:05:29 +08:00
Jiang Jiang Jian
5c1f5f2522 Merge branch 'bugfix/add_par_check_in_ag_cind_res_v5.0' into 'release/v5.0'
Bugfix/add par check in ag cind res v5.0

See merge request espressif/esp-idf!27258
2023-11-23 10:48:16 +08:00
Abhinav Kudnar
2e833a6a12 fix(nimble):Handled the Load access fault crash caused due to an invalid setting of index-varible 'reattempt_idx'. 2023-11-22 19:39:55 +05:30
Jiang Jiang Jian
2e0d1508c4 Merge branch 'bugfix/spp_deinit_crash_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix the crash of invalid access to released resources (v5.0)

See merge request espressif/esp-idf!27252
2023-11-22 17:29:27 +08:00
Jin Cheng
9998c2bd82 fix(bt/bluedroid): corrected the API documents of profile HFP and A2DP 2023-11-22 09:21:59 +00:00
Jin Cheng
4c8502e00d fix(bt/bluedroid): Added some argument check in APIs of HFP AG 2023-11-22 09:21:59 +00:00
luomanruo
1c0fb3bb4a ble(fix): deinit crash issue 2023-11-22 03:13:43 +00:00
luomanruo
1c261213d7 ble: update controller log module 2023-11-22 03:13:43 +00:00
luomanruo
30cd76b0f0 ble: update c2 lib to db4e1fb2 2023-11-22 03:13:43 +00:00
luomanruo
977b7f4bdb 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-22 03:13:43 +00:00
Ilia Lutchenko
fffc6f9328 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-22 03:10:00 +00:00