Commit Graph

633 Commits

Author SHA1 Message Date
wanglai@espressif.com
393530fb56 feat(bt/bluedroid): Add language base attr list to SDP record for BQB test 2023-09-12 13:04:23 +08:00
liqigan
1963f75fa7 change(bt/bluedroid): Optimize HIDD sending interrupt report behavior
HID device is allowed to trigger reconnection by sending an interrupt
report. When reconnection is in progress, no more interrupt report can
be sent until the procedure is accomplished.
2023-09-11 20:12:35 +08:00
Jin Cheng
a8790378e9 fix(bt/bluedroid): Fixed incorrect arrangement in type esp_hf_dial_type_t 2023-09-11 19:45:30 +08:00
Jin Cheng
36ba902bfe change(bt/bluedroid): Added line information printing when error occurs CHECK_HF_IDX 2023-09-11 19:45:30 +08:00
Jin Cheng
ca1ef30aa7 fix(bt/bluedroid): Fixed the issue of uninitialized parameters in event BTA_AG_WBS_EVT 2023-09-11 19:45:29 +08:00
Jiang Jiang Jian
680a254b18 Merge branch 'bugfix/hf_ag_report_event_with_null_bdaddr_v5.1' into 'release/v5.1'
Bugfix/fixed bugs of HFP in BlueDroid (v5.1)

See merge request espressif/esp-idf!25827
2023-09-11 10:54:09 +08:00
Wang Meng Yang
da07a096d0 Merge branch 'test/bqb_test_bt_classic_hid_v5.1' into 'release/v5.1'
feat(bt/bqb): Add setting local di record function for specific hid case of bqb auto test (backport v5.1)

See merge request espressif/esp-idf!25833
2023-09-11 07:36:25 +08:00
chenqingqing
7e406acb95 feat(bt/api): Add new apis for hfp to get the numbers of packet status received and sent 2023-09-08 00:52:07 +00:00
Jin Cheng
26600a8fcf fix(bt/bluedroid): Deleted the redundant 'memset' in btc_hf_cb_handler 2023-09-08 00:52:07 +00:00
Jin Cheng
c6e62a9817 docs(bt/bluedroid): Changed the description of esp_hf_client_reject_call 2023-09-08 00:52:07 +00:00
Jin Cheng
eed85adaeb fix(bt/bluedroid): Fixed wrong indexes of HF-AG indicators 2023-09-08 00:52:07 +00:00
Jin Cheng
71ec923e55 fix(bt/bluedroid): Added peer Bluetooth device address into HF callback parameters 2023-09-08 00:52:07 +00:00
Jin Cheng
7037ee47f9 fix(bt/bluedroid): Changed log level from WARNING to DEBUG in bta_ag_sco_read_cback 2023-09-08 00:52:07 +00:00
Jin Cheng
0167b14411 fix(bt/bluedroid): Fixed wrong code logic in 'AT+CIND?' of HFP 2023-09-08 00:52:07 +00:00
Jin Cheng
17d1b66d47 fix(bt/bluedroid): Fixed errors in parsing ATD command in HFP AG 2023-09-08 00:52:07 +00:00
Jin Cheng
19185a65fd fix(bt/bluedroid): Fixed NULL Bluetooth device address in HF-AG events was reported to application layer 2023-09-08 00:52:07 +00:00
zwl
325bf39c89 feat(ble): enable adv report flow control on esp32c2 2023-09-07 16:27:50 +08:00
wanglai@espressif.com
648bc35612 feat(bt/bluedroid): Add setting local di record function for bt classic hid device bqb test 2023-09-07 14:18:03 +08:00
chenjianhua
c315a246e6 Update bt lib for ESP32-C3 and ESP32-S3(59725b5)
- Support BLE RX error packet count record
- Fixed adv random delay when adv interval is less than 20ms
- Fixed adv random address setting when owner address type is public
2023-09-07 11:05:10 +08:00
zhanghaipeng
0f6a7ac7b1 fix(bt): Fix bugs about updating connect param 2023-09-07 11:05:10 +08:00
zhanghaipeng
e3c5c4fb7b fix(bt): Fix bug while calculating block cipher using aes-128 2023-09-07 11:05:10 +08:00
zhanghaipeng
98f59569b0 docs(bt): Update comment in ble 2023-09-07 11:05:10 +08:00
zhanghaipeng
cc9c5b78b9 feat(bt/bluedroid): Support periodic adv adi feature 2023-09-07 11:05:09 +08:00
chenjianhua
985f6a4892 fix(bt/bluedroid): Fixed BLE disconnect event report when disconnecting 2023-09-07 11:05:09 +08:00
chenjianhua
9df464d7bb fix(bt/bluedroid): Fixed GATTC cache address save when list is full 2023-09-07 11:05:09 +08:00
chenjianhua
35af1c03e2 feat(bt/bluedroid): Support high duty adv interval setting 2023-09-07 11:05:09 +08:00
chenjianhua
52a0a10ef4 fix(bt/bluedroid): Fix address check when using NRPA as random device address 2023-09-07 11:05:09 +08:00
Jiang Jiang Jian
1b87f35f0f Merge branch 'feature/support_ble_53_host_feat_v5.1' into 'release/v5.1'
Support BLE host feature for PTS (backport v5.1)

See merge request espressif/esp-idf!25645
2023-09-04 15:32:23 +08:00
wanglai@espressif.com
87135459a7 feat(bt/bqb): Set SBC encoder as PTS required for BQB test
1: set SBC encoder as PTS required. The encoder is effective first.
But it changes to default after media start.
2023-08-31 19:11:43 +08:00
wanglai@espressif.com
4ea52074b4 fix(bt/avdtp): Reject SET CONFIGURATION command with error code INVALID_CODEC_TYPE
1: reset p_scb->avdt_handle in cleanup function.
2: cancel comparing p_scb->codec_type and p_scb->seps[xx].codec_type to
   send the error INVALID_CODEC_TYPE.
2023-08-31 19:11:43 +08:00
chenjianhua
b3860800ae bluedroid: add GATT read multi variable API and evt 2023-08-30 14:50:21 +08:00
chenjianhua
e451b967d6 bluedroid: add periodic adv sync transfer API and EVT 2023-08-30 14:50:21 +08:00
chenjianhua
97dd2dc88e bluedroid: support gatts show local database 2023-08-30 14:50:21 +08:00
Wang Meng Yang
09954c1d29 Merge branch 'feature/config_device_name_in_eir_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Add option whether to include device name in extended inquiry response

See merge request espressif/esp-idf!25541
2023-08-28 19:02:07 +08:00
Island
261af82d1f Merge branch 'bugfix/ble_hci_issues_chain_mbuf_v5.1' into 'release/v5.1'
fix hci issues when chain mbuf exists

See merge request espressif/esp-idf!25532
2023-08-28 18:39:37 +08:00
Jiang Jiang Jian
b20c3f8a79 Merge branch 'bugfix/remove_deprecated_err_code_v5.1' into 'release/v5.1'
fix(bt): Removed an incorrectly defined HCI error code (5.1)

See merge request espressif/esp-idf!25288
2023-08-28 10:30:00 +08:00
Jiang Jiang Jian
d7020c02f4 Merge branch 'backport_v5.1' into 'release/v5.1'
fix(bt): Fix ble periodic advertising data length 0 error(backport v5.1)

See merge request espressif/esp-idf!25005
2023-08-28 10:22:11 +08:00
Jiang Jiang Jian
60143c7f68 Merge branch 'bugfix/fix_idfgh_10045_v5.1' into 'release/v5.1'
Bluedroid: fixed compile warning when optimize for performance (backport v5.1)

See merge request espressif/esp-idf!24844
2023-08-28 10:21:37 +08:00
Jin Cheng
6a859a6cc5 fix(bt): Removed an incorrectly defined HCI error code 2023-08-25 11:54:39 +00:00
luomanruo
01fbc285b0 ble: Fix hci issues when chain mbuf exists 2023-08-25 12:25:11 +08:00
baohongde
6340713fef feat(bt/bluedroid): Add option whether to include device name in extended inquiry response 2023-08-24 19:37:35 +08:00
Wang Meng Yang
c3987d2163 Merge branch 'test/bqb_test_bt_classic_spp_rfcomm_5.1' into 'release/v5.1'
feat(bt/bqb): Add BQB enabling and rfcomm msc command sending support (backport v5.1)

See merge request espressif/esp-idf!25091
2023-08-24 18:59:15 +08:00
Jiang Jiang Jian
d00077e5a9 Merge branch 'bugfix/incr_sdp_max_conns_v5.1' into 'release/v5.1'
fix(bt): Increased SDP maximum connections to avoid connection exhausted (v5.1)

See merge request espressif/esp-idf!25429
2023-08-23 19:51:39 +08:00
Jin Cheng
3638d265ed fix(bt): Increased SDP maximum connections to avoid connection exhausted 2023-08-21 11:21:56 +08:00
chenjianhua
62f5905be2 bluedroid: fixed compile warning when optimize for performance 2023-08-19 12:26:19 +08:00
zwl
05e44b1021 ble: Added adv report flow control config on ESP32C6 and ESP32H2 2023-08-16 19:37:09 +08:00
satish.solanke
5d49509969 Fix the mem corruption 2023-08-11 18:22:58 +00:00
wanglai@espressif.com
2b8e8e832a fix(bt/bqb): Modify BQB related configurations 2023-07-31 15:28:33 +08:00
wanglai@espressif.com
f05c0a36e8 feat(bt): Add BQB enabling and rfcomm msc command sending support
1: add the CONFIG_BT_BQB_ENABLED for some functions of bqb test.
2: add bqb_rfc_send_msc_cmd function to send rfcomm msc command with
   only address arg input.
2023-07-31 15:28:20 +08:00
zhanghaipeng
b1799a7042 fix(bt): Fix bug with address resolution enabling during non-connected activities 2023-07-26 16:36:19 +08:00
zhanghaipeng
d01fa70ba8 fix(bt): Fix ble periodic advertising data length 0 error
- Fixed issues about data length 0 when set ext adv data,ext scan rsp data and periodic adv data
2023-07-26 16:35:57 +08:00
Jiang Jiang Jian
82fde1e823 Merge branch 'backport_v5.1' into 'release/v5.1'
fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32(backport v5.1)

See merge request espressif/esp-idf!24780
2023-07-14 18:17:32 +08:00
zhanghaipeng
124cce0de3 fix(bt): Fix ble advertising data length 0 error
- Fixed an issue where the BLE advertisement length of 0 was causing an error
2023-07-13 16:43:37 +08:00
chenjianhua
34b4936a7d fix(bt/bluedroid): Fix memory leak of gattc cache upon disconnection 2023-07-13 12:14:16 +08:00
chenjianhua
62bd3973f6 bluedroid: fixed gatt tcb free when disconnecting 2023-07-13 12:13:47 +08:00
Jiang Jiang Jian
5e3488396a Merge branch 'bugfix/fix_some_bt_controller_bug_v5.1' into 'release/v5.1'
component_bt:Fixed some bluetooth bugs(v5.1)

See merge request espressif/esp-idf!24579
2023-07-06 00:54:40 +08:00
Jiang Jiang Jian
71a5663786 Merge branch 'bugfix/hfp_packet_type_err_v5.1' into 'release/v5.1'
Revised (e)SCO configuration parameter sets (v5.1)

See merge request espressif/esp-idf!24346
2023-07-05 20:05:59 +08:00
Jiang Jiang Jian
d682fbeb07 Merge branch 'bugfix/alarm_not_free_when_a2dp_deinit_v5.1' into 'release/v5.1'
bugfix/Fixed the issue of alarm leak (v5.1)

See merge request espressif/esp-idf!24351
2023-07-05 19:53:09 +08:00
xiongweichao
015555c6fb change(bt/Bluedroid): Update AVRCP version to 1.5 2023-07-04 15:52:29 +08:00
xiongweichao
50904e9353 components/bt: Fix crash due to NULL point 2023-07-04 14:55:04 +08:00
Jiang Jiang Jian
11d34b143f Merge branch 'bugfix/sdp_32_and_128_bit_UUID_v5.1' into 'release/v5.1'
bt:Fixed SDP not being able to configure 32-bit and 128-bit UUID(v5.1)

See merge request espressif/esp-idf!24442
2023-07-04 12:15:01 +08:00
Jiang Jiang Jian
09f2ab841f Merge branch 'docs/update_esp_hid_host_v5.1' into 'release/v5.1'
[docs] fix documents for Bluetooth HID Host API reference (backport v5.1)

See merge request espressif/esp-idf!24389
2023-07-04 12:14:22 +08:00
Jin Cheng
c020194656 Revised (e)SCO configuration parameter sets 2023-07-04 04:12:35 +00:00
Jin Cheng
4ce9023cd4 Fixed the issue of alarm leak in hf-ag 2023-07-04 04:12:24 +00:00
Jin Cheng
ced0a5747b Fixed the issue of alarm leak in A2DP 2023-07-04 04:12:24 +00:00
Ilia Lutchenko
0b7e61b95a btc_sdp: add_raw_sdp: fix 32 and 128-bit uuid configuration
Added proper conversion of 4 and 16-byte UUIDs values to binary streams.
UUIDs now set with SDP_AddAttribute() instead of
SDP_AddServiceClassIdList().
2023-06-28 14:11:34 +08:00
wangmengyang
5fa5f7b2fe component/docs: enable generation of API-reference documents for Bluetooth HID host 2023-06-25 15:37:41 +08:00
gongyantao
e5899f6a70 resolve the conflicts 2023-06-25 15:37:41 +08:00
chenjianhua
3758e37024 bluedroid: fixed default extended connection params 2023-06-16 11:02:17 +08:00
chenjianhua
c5e580e522 Revert "bluedroid: report disconnect event after BLE link closed"
This reverts commit d751960b27.
2023-06-02 16:51:07 +08:00
Jiang Jiang Jian
7fcba0fbf8 Merge branch 'bugfix/fix_some_ble_bug_v5.1' into 'release/v5.1'
Fixed some BLE bugs (backport v5.1)

See merge request espressif/esp-idf!23699
2023-05-18 20:08:25 +08:00
Jiang Jiang Jian
8b7cd4dc08 Merge branch 'bugfix/hfp_ag_idx_invalid_v5.1' into 'release/v5.1'
bt: Fixed out of bounds access due to variable length array(v5.1)

See merge request espressif/esp-idf!23665
2023-05-18 20:07:21 +08:00
Jiang Jiang Jian
0ed8499898 Merge branch 'bugfix/a2dp_source_crash_connect_to_Bose_speaker_v5.1' into 'release/v5.1'
Bugfix/a2dp source crash connect to bose speaker (v5.1)

See merge request espressif/esp-idf!23574
2023-05-17 15:10:34 +08:00
chenjianhua
b77479df39 bluedroid: fix ble ext adv rand addr setting for NRPA 2023-05-11 14:36:39 +08:00
chenjianhua
ac42a8f2c7 bluedroid: fix ble adv data construct for device name 2023-05-11 14:36:39 +08:00
chenjianhua
e6f018a309 bluedroid: fix ble smp key distribution setting 2023-05-11 14:36:39 +08:00
chenjianhua
d751960b27 bluedroid: report disconnect event after BLE link closed 2023-05-11 14:36:39 +08:00
xiongweichao
7ddb440384 bt: Deleted some redundant variables in HFP_AG 2023-05-11 06:09:06 +00:00
xiongweichao
a891aa7e4d bt: Fixed the problem of out-of-bounds access caused by the variable-length array introduced in 3268075231
Closes https://github.com/espressif/esp-idf/issues/11264
2023-05-11 06:09:06 +00:00
xiongweichao
d3d73ed8b2 bt: Fixed codec mode error in ESP_HF_WBS_RESPONSE_EVT 2023-05-11 06:09:06 +00:00
zhiweijian
16696d98c1 Fixed battery profile wrong condition 2023-05-08 11:31:22 +08:00
zwj
daf2622a5b Fixed no error report when own address type is rpa_random and no random address setting 2023-05-08 11:31:06 +08:00
Jin Cheng
8dbe966d89 fix a2dp source crash when connect to Bose speaker 2023-05-04 19:00:20 +08:00
xiongweichao
25e8069532 bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator.
Closes https://github.com/espressif/esp-idf/issues/6486
2023-05-04 14:08:30 +08:00
chenjianhua
d0011b778a bluedroid: report status after clearing the BLE white list 2023-04-20 18:58:38 +08:00
chenjianhua
c2fe7be50e bluedroid: fix GATTC cache address save 2023-04-20 18:57:23 +08:00
Jin Cheng
a7a2e5d407 fixed the crash of LoadProhibited caused by taht
the nodes are deleted during the traversal of the linked list
2023-04-06 14:13:05 +08:00
Wang Meng Yang
70a355dbc1 Merge branch 'doc/update_doc_of_esp_bt_gap_set_cod' into 'master'
bt: Optimized the document for GAP API: esp_bt_gap_set_cod

Closes IDFGH-8668

See merge request espressif/esp-idf!22887
2023-03-30 12:12:02 +08:00
Jin Cheng
cb68c7cba1 Optimized the document for GAP API:
`esp_bt_gap_set_cod`
2023-03-29 15:41:14 +08:00
Jiang Jiang Jian
b6fda9723e Merge branch 'bugfix/fix_att_rsp_timeout' into 'master'
Fixed bluedroid host ATT Ignore wrong response error

Closes BLEQABR23-30 and BT-3224

See merge request espressif/esp-idf!22688
2023-03-23 17:10:54 +08:00
Jiang Jiang Jian
defae704e4 Merge branch 'bugfix/delay_report_memory_leak' into 'master'
bugfix: fixed memory leak in AVDT delay report

Closes BTQABR2023-12

See merge request espressif/esp-idf!22870
2023-03-23 10:55:47 +08:00
Jin Cheng
439d285c4a Fixed memory leak in AVDT delay report 2023-03-22 15:30:06 +08:00
Jin Cheng
1d32c85f18 Fixed the index out of bounds of hfp_ag BTC control block 2023-03-22 13:17:33 +08:00
zhiweijian
7ad9e885e4 If it is not 32 chips, hide the configuration item:BT_BLE_RPA_SUPPORTED 2023-03-20 15:54:32 +08:00
zhiweijian
588626d64e Fixed ATT Ignore wrong response error 2023-03-14 08:49:19 +00:00
Jiang Jiang Jian
251e0c5fc7 Merge branch 'bugfix/fix_adv_scan_state_conflict' into 'master'
Bluedroid: fix adv and scan state conflict

See merge request espressif/esp-idf!22685
2023-03-13 10:52:40 +08:00
Jiang Jiang Jian
1f05281913 Merge branch 'bugfix/fix_hidh_connection_bug' into 'master'
Bugfix/Fix HID Host bug when handling the two consecutive connection request

Closes IDFGH-9100

See merge request espressif/esp-idf!21988
2023-03-10 03:48:48 +08:00
Wang Meng Yang
9c1897028a Merge branch 'bugfix/avrcp_psth_cmd_rsp' into 'master'
bt:Added a parameter to tell the user the result of the pass through command implementation

Closes BT-2233

See merge request espressif/esp-idf!22474
2023-03-09 17:48:15 +08:00
chenjianhua
7bbfd28d44 bluedroid: fix adv and scan state conflict 2023-03-09 16:36:54 +08:00
liqigan
20c9efed4d fix HID Host bug when handling the two consecutive connection request
Closes https://github.com/espressif/esp-idf/issues/10504
2023-03-09 14:25:25 +08:00