Commit Graph

797 Commits

Author SHA1 Message Date
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
zhiweijian
5b63a473f8 Fixed xQueueSemaphoreTask assert when deinit host during scan 2024-01-31 19:06:22 +08:00
chenjianhua
b99cb002ed fix(bt/bluedroid): Fixed crash when calculating GATTS database hash 2024-01-31 10:08:16 +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
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
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
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
zhanghaipeng
32290b2475 fix(ble/bluedroid): Fix ble memory leak when gattc config off 2024-01-17 15:20:24 +08:00
Wang Meng Yang
4997c81335 Merge branch 'bugfix/spp_disc_connect_btqabr2023_156_v5.3' into 'master'
fix(bt/bluedroid): Fixed SPP connection failure

Closes BTQABR2023-156

See merge request espressif/esp-idf!28029
2024-01-17 12:11:08 +08:00
Wang Meng Yang
8a76b2e2ec Merge branch 'bugfix/update_spp_doc' into 'master'
docs(bt/bluedroid): update API documents of SPP

Closes BT-3568

See merge request espressif/esp-idf!28111
2024-01-09 15:29:11 +08:00
Island
ee7794c395 Merge branch 'bugfix/increase_btu_task_stack_size_master' into 'master'
fix(bt/bludroid): Increase BTU task stack size

Closes BT-3571

See merge request espressif/esp-idf!28319
2024-01-08 19:47:05 +08:00
linruihao
4fbfc98132 fix(bt/bludroid): Increase BTU task stack size 2024-01-08 11:34:10 +08:00
Zhang Hai Peng
0b8e6c66c4 Merge branch 'bugfix/ble_check_adv_data' into 'master'
fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow

See merge request espressif/esp-idf!28245
2024-01-05 14:17:42 +08:00
Jin Cheng
057eb7061d feat(bt/bluedroid): Added an event to notify the encryption mode to applicaiton layer 2024-01-05 09:40:38 +08:00
Island
e8ff5511f2 Merge branch 'feat/config_ble_max_bond_dev_count' into 'master'
feat(bt/bluedroid): Make the max number of bond device to be configurable

Closes BLERP-375

See merge request espressif/esp-idf!27990
2024-01-04 14:43:35 +08:00
zhanghaipeng
c66fc143fa fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow 2024-01-04 13:21:42 +08:00
Jin Cheng
6ee9b95960 feat(bt/bluedroid): Added report for the type of link key in ESP_BT_GAP_AUTH_CMPL_EVT 2023-12-29 16:22:04 +08:00
zhanghaipeng
a2425ac3e7 fix(bt/bluedroid): Fix ble app unregister no event 2023-12-28 17:30:57 +08:00
Wang Meng Yang
4c8f6c5458 Merge branch 'feat/add_get_device_name_api' into 'master'
feat(bt/bluedroid): Added API to get local device name

Closes BT-3526

See merge request espressif/esp-idf!27667
2023-12-27 10:37:33 +08:00
Jin Cheng
42f19d657a docs(bt/bluedroid): update API documents of SPP 2023-12-26 09:13:20 +08:00
Island
011d8a309a Merge branch 'bugfix/fix_ble_prepare_write' into 'master'
Bugfix/fix ble prepare write

Closes BLERP-336

See merge request espressif/esp-idf!27831
2023-12-22 19:09:21 +08:00
Island
083fe84db7 Merge branch 'bugfix/ble_update_lib_20231219' into 'master'
update lib on master

Closes BLERP-371, BLERP-364, BLERP-363, BLERP-361, BLERP-349, BLERP-360, BLERP-350, BLERP-351, BLERP-352, BLERP-353, BLERP-354, BLERP-356, BLERP-357, BLERP-358, BLERP-359, BLERP-366, BLERP-376, and BLERP-378

See merge request espressif/esp-idf!27997
2023-12-22 14:57:15 +08:00
xiongweichao
71442ef6de fix(bt/bluedroid): Fixed SPP connection failure
The connection failure is caused by the BTU and application layer status being out of sync.
2023-12-21 17:42:26 +08:00
zhanghaipeng
b693094ee8 fix(bt/bluedroid): Fix BLE prepare write 2023-12-21 10:53:38 +08:00
luomanruo
0504b60b7a 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:38:22 +08:00
chenjianhua
bc98ff414f feat(bt/bluedroid): Make the max number of bond device to be configurable 2023-12-19 11:38:01 +08:00
Jin Cheng
a3f68aef8a feat(bt/bluedroid): Added API to get local device name 2023-12-15 19:30:12 +08:00
gongyantao
d5e5cd0237 fix(bt/bluedroid): fixed btc_config_lock error 2023-12-15 11:03:29 +08:00
Island
45198988b0 Merge branch 'bugfix/fix_ble_gattc_deregister' into 'master'
fix(bt/bluedroid): Fix ble gattc deregister

Closes BLERP-321

See merge request espressif/esp-idf!27622
2023-12-14 12:26:27 +08:00
Wang Meng Yang
7a45809b4f Merge branch 'bugfix/crash_in_btc_hf_init' into 'master'
fix(bt/bluedroid): Added dynamic memory allocation for HFP control blocks

Closes BT-3498, BT-3505, BT-3524, COEXQABR24-4, COEXQABR24-16, COEXQABR24-17, and BTQABR2023-112

See merge request espressif/esp-idf!27211
2023-12-14 12:23:55 +08:00
gongyantao
f303fa0174 fix(bt/bluedroid): fixed build error when compiler in performace mode
Closes https://github.com/espressif/esp-idf/issues/12751
2023-12-12 15:00:45 +08:00
Island
9bdcfa672f Merge branch 'bugfix/fix_ble_adv_scan_status' into 'master'
fix(bt/bluedroid): Fix ble adv and scan status when deinit bluedroid

Closes BLERP-324

See merge request espressif/esp-idf!27636
2023-12-07 16:25:37 +08:00
zhanghaipeng
305bb1a146 fix(bt/bluedroid): Fix ble gattc deregister 2023-12-07 11:21:13 +08:00
Jin Cheng
e78209ad47 fix(bt/bluedroid): Disabled Sniff Subrating temporarily as it did not work well 2023-12-05 20:10:03 +08:00
Jin Cheng
58256d8c4b fix(bt/bluedroid): Changed the default air mode to invalid value 2023-12-05 20:10:03 +08:00
Jin Cheng
dba328d9d5 fix(bt/bluedroid): Removed redundant operation of SCO clean up 2023-12-05 20:10:03 +08:00
Jin Cheng
0f9e8687ee fix(bt/bluedroid): Corrected the definitions of HF Client callback events 2023-12-05 20:10:00 +08:00
zhanghaipeng
41facc2e08 fix(bt/bluedroid): Fix BLE robost cashing config 2023-12-05 15:44:15 +08:00
Island
345013fa46 Merge branch 'bugfix/fix_bleqabr23_808' into 'master'
Fixed assert when LLCP instant passed on ESP32-C3 and ESP32-S3(b8f0db9)

Closes BLERP-298, BLERP-299, BLERP-300, BLERP-301, BLERP-310, BLERP-311, and BLERP-312

See merge request espressif/esp-idf!27477
2023-12-05 11:51:20 +08:00
zhanghaipeng
1eb0522774 fix(bt/bluedroid): Fix ble adv and scan status when deinit bluedroid 2023-12-05 10:38:01 +08:00
Island
94d7ec7a38 Merge branch 'bugfix/bluedroid_menuconfig' into 'master'
Bugfix/bluedroid menuconfig

Closes BLERP-317

See merge request espressif/esp-idf!27508
2023-12-04 16:30:05 +08:00
chenjianhua
51607c87d6 fix(bt/bluedroid): Fixed add RPA to white list 2023-12-01 21:01:53 +08:00
zhanghaipeng
d528cc598e fix(bt/bluedroid): Fix BLE SMP register log level 2023-12-01 17:21:49 +08:00
Island
e3ab9f009b Merge branch 'feat/support_ble_create_sync_report' into 'master'
feat(bt/bluedroid): Support ble create sync report disable and filter duplicate

Closes BLERP-216

See merge request espressif/esp-idf!26923
2023-12-01 17:17:48 +08:00
Jin Cheng
48d410e10d fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in l2cap 2023-11-30 19:47:57 +08:00
zhanghaipeng
a1b678e721 fix(bt/bluedroid): Fix bluedroid menuconfig 2023-11-30 10:43:12 +08:00
Jin Cheng
823e0711c9 fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free 2023-11-29 15:55:46 +08:00
Wang Meng Yang
a7fbf452fa Merge branch 'feature/support_for_32_and_128_bit_custom_uuids' into 'master'
feat(bt/bluedroid): Add new APIs for 32 and 128-bit UUIDs

Closes IDFGH-10721

See merge request espressif/esp-idf!27069
2023-11-17 11:48:57 +08:00
Wang Meng Yang
0107fe2076 Merge branch 'bugfix/add_par_check_in_ag_cind_res' into 'master'
Bugfix/add par check in ag cind res

See merge request espressif/esp-idf!27147
2023-11-17 11:07:50 +08:00
Jin Cheng
57e3e97497 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-11-17 09:39:46 +08:00
Jin Cheng
eab9037b1c fix(bt/bluedroid): Added dynamic memory allocation for HFP control blocks 2023-11-16 20:10:29 +08:00
Jin Cheng
f5c15be581 fix(bt/bluedroid): corrected the API documents of profile HFP and A2DP 2023-11-15 15:34:27 +08:00
Jin Cheng
4edd531fe3 fix(bt/bluedroid): Added some argument check in APIs of HFP AG 2023-11-15 15:18:22 +08:00
Jin Cheng
97e9eb5ca8 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-15 02:12:14 +00:00
Jiang Jiang Jian
735b9cd827 Merge branch 'bugfix/build_error_when_enable_ag_and_hf' into 'master'
fix(bt/bluedroid): Fix build error when both of the HFP roles are enabled

See merge request espressif/esp-idf!27073
2023-11-13 11:26:19 +08:00
Jiang Jiang Jian
907a7d9977 Merge branch 'test/ctrl_acl_u_pkt_type' into 'master'
feat(bt/bluedroid): Added an API to specific data types for ACL-U traffic

See merge request espressif/esp-idf!26173
2023-11-13 11:17:37 +08:00
Wang Mengyang
479cecc1f8 fix(bt/bluedroid): Fix build error when both of the HFP roles are enabled and also CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY is set to true 2023-11-10 20:14:01 +08:00
zhanghaipeng
4c9861d40d feat(bt/bluedroid): Support ble create sync report disable and filter duplicate 2023-11-09 17:30:23 +08:00
zhanghaipeng
ba2f5c4475 fix(bt/bluedroid): Fix ble adv report evt type 2023-11-07 19:59:35 +08:00
zhanghaipeng
c189842b82 fix(bt/bluedroid): Fix ble keysize check 2023-11-07 19:52:59 +08:00
Ilia Lutchenko
0a23da71ac 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-02 17:43:55 +01:00
Jin Cheng
46327936cb feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic 2023-11-02 17:43:04 +08:00
Jiang Jiang Jian
6e0a8434a7 Merge branch 'bt/add_host_only_mode' into 'master'
bt: Added BlueDroid-Only mode to use BlueDroid host only without Bluetooth Controller

See merge request espressif/esp-idf!25319
2023-11-02 10:58:32 +08:00
Wang Meng Yang
52085b0264 Merge branch 'feature/include_hf_and_ag_in_single_build' into 'master'
feat: Added support for build different roles in corresponding profile HID and HFP into a single binary

See merge request espressif/esp-idf!26360
2023-11-02 10:52:38 +08:00
Island
ce7bb6b0e8 Merge branch 'feat/support_clear_legacy_adv' into 'master'
feat(bt/bluedroid): support clear legacy advertising

Closes BLERP-175

See merge request espressif/esp-idf!26645
2023-11-01 18:33:09 +08:00
Jin Cheng
1f2a1564a2 feat(bt/bluedroid): Support to build HID Host and HID Device in single binary 2023-11-01 16:54:11 +08:00
Wang Mengyang
638d3af14a feat(bt/bluedroid): Support to build HFP Audio Gateway and Hands Free Unit in single binary 2023-11-01 16:54:08 +08:00
Island
f1e8cfb546 Merge branch 'bugfix/fix_ble_remove_bond_status' into 'master'
Bugfix/fix ble remove bond status

Closes BLERP-202, BLERP-205, and BLERP-207

See merge request espressif/esp-idf!26750
2023-11-01 10:42:59 +08:00
Island
a436eaf045 Merge branch 'feat/support_ble_notify_reg_max' into 'master'
feat(bt/bluedroid): Support BLE gattc notify registration number

See merge request espressif/esp-idf!26641
2023-10-31 12:29:33 +08:00
zhanghaipeng
c1b39f7aa5 fix(bt/bluedroid): Fix BLE remove bond list status 2023-10-30 17:45:38 +08:00
Jin Cheng
fc174f5811 feat(bt/bluedroid): Added mode to use BlueDroid host only without Bluetooth Controller 2023-10-30 00:52:26 +00:00
zhanghaipeng
f4305753c8 feat(bt/bluedroid): Display BLE permission check handle in error trace 2023-10-27 19:31:44 +08:00
zhanghaipeng
6f400e1b5d feat(bt/bluedroid): Support BLE gattc notify registration number 2023-10-27 19:31:44 +08:00
Zhang Hai Peng
9327274a7a Merge branch 'bugfix/fix_ble_hid' into 'master'
fix(bt/bluedroid): Fixed BLE hid example bugs

Closes BLERP-190

See merge request espressif/esp-idf!26613
2023-10-27 15:10:33 +08:00
zhanghaipeng
2e762ae3f7 fix(bt/bluedroid): Fix key size check in BLE smp 2023-10-26 19:21:21 +08:00
chenjianhua
7a1db4befb feat(bt/bluedroid): support clear legacy advertising 2023-10-26 19:14:54 +08:00
DevinNorgarb
001b10ec45 fix: corrected typo from disbale to disable in numerous places 2023-10-24 14:10:39 +08:00
Zhi Wei Jian
e925665f94 Merge branch 'bugfix/fix_ble_bond_error_after_reboot' into 'master'
fix(ble/bluedroid): fixed BLE bond error after reboot

Closes CBLE50Y23-58

See merge request espressif/esp-idf!26392
2023-10-19 11:58:16 +08:00
zhiweijian
d86a990be5 fix(ble/bluedroid): fixed BLE bond error after reboot 2023-10-18 14:40:16 +08:00
Zhi Wei Jian
daf1fc790a Merge branch 'bugfix/fix_dtm_test_failed_on_ble_5.0' into 'master'
fix(ble/bluedroid): fixed bluedroid host DTM API

Closes BLEQABR23-690 and BLECRT-42

See merge request espressif/esp-idf!26345
2023-10-18 14:04:54 +08:00
Zhang Hai Peng
ea81f4c4a3 Merge branch 'bugfix/fix_ble_bugs' into 'master'
Fix some BLE bugs in bluedroid host

See merge request espressif/esp-idf!26448
2023-10-16 19:27:29 +08:00
Gong Yan Tao
ce98ac87d4 Merge branch 'bugfix/unable_to_load_bonded_ble_devices_from_nvs' into 'master'
fix(bt&ble): fix BLE unable to load bonded device info after reboot.

Closes BT-3406

See merge request espressif/esp-idf!25535
2023-10-13 19:18:42 +08:00
zhanghaipeng
4129addca6 fix(bt/bluedroid): Fix remove resolving list error for esp32 2023-10-13 10:54:25 +08:00
zhanghaipeng
c73d7c0b60 fix(bt/bluedroid): Fix bugs in ble service change characteristic 2023-10-13 10:54:25 +08:00
zhanghaipeng
2b551b09c8 feat(bt/bluedroid): Support scan response data length zero in BLE 2023-10-13 10:54:25 +08:00
gongyantao
fdc35e772b fix(bt/bluedroid): update the newest active device in bluetooth
1: update the newest active device when an ACL link is established and
   the remote device info is not in bond list. This updates will not stored
   into NVRAM until a new device is paired.
2023-10-12 07:46:34 +00:00
gongyantao
061cd29168 fix(bt/bluedroid): ble fails to load bonded device info after reboot
1: add a quantity check in bt when writing paired device info into nvs.
2: delete the exceeded device info from NVS when get bonded list during
bluedroid initialization.
3: unify the process of bt and ble to load bonded list during bluedroid
initialization.
2023-10-12 07:46:34 +00:00
zhiweijian
d3394003b5 Update BLE lib on ESP32-C3 and ESP32-S3
- modify mesh proxy solic uuid to 0x18590303
- Fixed DTM payload length cannot be 0
- Added config to enable Hw recorrect eco
- report the number of packets sent on the TX end
2023-10-12 07:42:53 +00:00
zhiweijian
43011c66d6 fix(ble/bluedroid): fixed bluedroid host DTM API 2023-10-12 07:42:53 +00:00
gongyantao
9e4c8bb76e fix(bt/bluedroid): Add correct macro for ertm mode included flag 2023-10-11 20:19:40 +08:00
Alexey Lapshin
6a94453a18 fix(bt): fix gcc 13.1.0 warnings 2023-10-09 12:13:02 +04:00
Ivan Grokhotkov
5cd6284b6c Merge branch 'feature/bt_component_test_app' into 'master'
feat(bt): migrate the tests from unit-test-app

Closes IDF-5567

See merge request espressif/esp-idf!26134
2023-10-02 23:31:03 +08:00
Zhi Wei Jian
60961e9e7f Merge branch 'feature/Add_apis_for_dtm_test' into 'master'
Feature/add apis for direct test mode

See merge request espressif/esp-idf!25735
2023-09-27 19:00:20 +08:00
Zhi Wei Jian
66e720c7eb Merge branch 'feature/add_api_to_update_config_file_path' into 'master'
Add API to update bluetooth config file path

See merge request espressif/esp-idf!25560
2023-09-27 18:59:35 +08:00
Jiang Jiang Jian
1f25202bb1 Merge branch 'test/bqb_test_bt_classic_hfp' into 'master'
feat(bt/hfp): Add support for HFP BQB auto test

Closes BT-3338, BT-3400, BT-3402, and BT-3404

See merge request espressif/esp-idf!25551
2023-09-26 15:00:11 +08:00