Commit Graph

666 Commits

Author SHA1 Message Date
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
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
Ivan Grokhotkov
1fbee174af
fix(bt): fixed -Write-strings warning in btm_ble_5_gap.c 2023-09-25 15:01:29 +02:00
zhiweijian
23a20e4b27 feat(ble/bluedroid): Add API to update config file path 2023-09-25 20:58:55 +08:00
zhiweijian
de148c3a5e feat(ble/bluedroid): Add APIs for BLE direct test mode on bluedroid host 2023-09-25 12:50:16 +00:00
Wang Meng Yang
47649d5eed Merge branch 'bugfix/fix_hid_congestion' into 'master'
Fix(bt/bluedroid): Fix the issue for HID congestion checking

Closes BTQABR2023-113

See merge request espressif/esp-idf!26153
2023-09-25 17:49:46 +08:00
Wang Meng Yang
3b7a37fcd4 Merge branch 'test/bqb_test_bt_classic_l2cap' into 'master'
feat(bt/bluedroid): Add flags for BQB auto test of L2CAP

Closes BT-3357

See merge request espressif/esp-idf!25621
2023-09-25 14:12:19 +08:00
wanglai@espressif.com
f0e90b296a fix(bt/bluedroid): Revise the description for index in esp_hf_ag_clcc_response and correct the error return in btc_hf_indchange_notification
1: modify the description of param index in function
esp_hf_ag_clcc_response.
2: fix the error code return of function btc_hf_indchange_notification.
2023-09-25 11:59:57 +08:00
wanglai@espressif.com
8b1c5d3a6a feat(bt/bluedroid): Add flag to control whether to send AT+CLIP cmd for BQB test 2023-09-25 11:59:57 +08:00
wanglai@espressif.com
a481a1553d feat(bt/bluedroid): Add flag to change HFP client features for BQB test 2023-09-25 11:59:57 +08:00
wanglai@espressif.com
c5fa755251 feat(bt/bluedroid): Add eSCO S1 support for hfp client BQB test 2023-09-25 11:59:57 +08:00
wanglai@espressif.com
03de9d0cf7 feat(bt/bluedroid): Add flag to send BRSF features for hfp ag BQB test 2023-09-25 11:59:50 +08:00
wanglai@espressif.com
cf52a57b55 feat(bt/bluedroid): Modify the btc hf features for AT+NREC cmd in BQB test 2023-09-25 11:41:19 +08:00
wanglai@espressif.com
bf77d8755a fix(bt/bluedroid): Fix the process of sending OK in ATD and COPS cmds 2023-09-25 11:41:19 +08:00
wanglai@espressif.com
5875f1160e feat(bt/bluedroid): Add supprot for specific indicator sending from AG to Client 2023-09-25 11:41:18 +08:00
wanglai@espressif.com
5600da1cfe feat(bt/bluedroid): Modify AT+CNUM response api and HFP AG example 2023-09-25 11:41:18 +08:00
wanglai@espressif.com
0860e75587 feat(bt/bluedroid): Add HFP config for BQB test 2023-09-25 11:41:18 +08:00
liqigan
eb65d0a9cd fix(bt/bluedroid): Fix the issue for HID congestion checking 2023-09-22 16:10:08 +08:00
baohongde
c2cbb5d04c fix(bt/bluedroid): Triggering disconnect event of GAP correctly 2023-09-22 12:14:49 +08:00
baohongde
510ddd1cbc fix(bt/bluedroid): Fix issue of QoS configuration failure when t_poll is greater than 40 2023-09-22 12:14:32 +08:00
Wang Meng Yang
fa05598da4 Merge branch 'bugfix/hfp_api_pkt_stat_nums' into 'master'
fix(bt/bluedroid): Fix the judgment condition for packet transmission status statistics

Closes BTQABR2023-111

See merge request espressif/esp-idf!26020
2023-09-22 11:37:00 +08:00
chenqingqing
4705995b69 fix(bt/bluedroid): Fix the judgment condition for packet transmission status statistics 2023-09-21 14:43:52 +08:00
Wang Meng Yang
7e91e901f0 Merge branch 'feature/use_vsc_to_op_coex_st' into 'master'
feat(bt/Bluedroid): Implemented esp_coex_status_set/clear using vendor HCI

Closes BTQABR2023-66

See merge request espressif/esp-idf!25938
2023-09-20 16:52:51 +08:00
wanglai@espressif.com
afc7cf445e feat(bt/bluedroid): Add flags for BQB auto test of L2CAP
1: add sdp_bqb_disable_flag to avoid running sdpu_build_n_send_error.
2: add sdp_bqb_inact_timeout_flag to set the SDP inactivity timeout to 90 seconds.
3: add l2cap_bqb_bad_cmd_len_rej_flag to reject the C-Frame with invalid PDU length
4: add l2cap_bqb_ertm_mode_included_flag to set L2CAP_FCR_ERTM_MODE for most L2CAP cases
2023-09-19 19:53:00 +08:00
Wang Meng Yang
10c7026053 Merge branch 'change/optimize_sniff_request' into 'master'
Change(bt/bluedroid): Limit sniff request when pending mode change event

Closes BTQABR2023-99

See merge request espressif/esp-idf!25873
2023-09-19 17:42:26 +08:00
Wang Meng Yang
0cb0c49597 Merge branch 'bugfix/a2dp_media_ctrl' into 'master'
Bugfix/a2dp media ctrl

Closes BTQABR2023-42

See merge request espressif/esp-idf!25300
2023-09-19 14:27:06 +08:00
Wang Meng Yang
4db3a589e3 Merge branch 'origin/test/bqb_test_bt_classic_avdtp' into 'master'
feat(bt/bqb): Add avdt abort function for BQB test

Closes BT-3340

See merge request espressif/esp-idf!25681
2023-09-19 08:40:06 +08:00
Jiang Jiang Jian
284edcc52c Merge branch 'bugfix/fix_ble_set_periodic_advertising_data_error' into 'master'
fix(bt/bluedroid): Fix set periodic advertising data error

Closes BLERP-39

See merge request espressif/esp-idf!25955
2023-09-15 10:28:43 +08:00
Jiang Jiang Jian
ca78f8b925 Merge branch 'bugfix/bugfix_for_esp32c2_esp32c6_esp32h2' into 'master'
fix(ble): fixed crash when memory is insufficient on esp32c2

Closes BLERP-9, BLERP-10, BLERP-11, BLERP-13, and BLERP-12

See merge request espressif/esp-idf!25823
2023-09-14 10:43:27 +08:00
Wang Meng Yang
965af359ba Merge branch 'bugfix/error_param_in_BTA_AG_WBS_EVT' into 'master'
Bugfix/error param in bta ag wbs evt

Closes BTQABR2023-102 and BTQABR2023-103

See merge request espressif/esp-idf!25913
2023-09-13 19:55:03 +08:00
zhanghaipeng
c7212fdef1 fix(bt/bluedroid): Fix set periodic advertising data error 2023-09-13 16:58:34 +08:00
Bao Hong De
e5739ddd45 Merge branch 'bugfix/set_eir_when_no_eir_data' into 'master'
change(bt/bluedroid): Send a name tag with zero length when there is no EIR data

Closes BTQABR2023-100

See merge request espressif/esp-idf!25805
2023-09-13 14:05:14 +08:00
Jin Cheng
d0e0928138 feat(bt/Bluedroid): Implemented esp_coex_status_set/clear using vendor HCI 2023-09-13 10:55:04 +08:00