zwj
4bf2eb3f48
fix calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting
2022-09-08 17:54:43 +08:00
wangmengyang
9aa32bc499
components/bt: fixed the invalid workqueue number for BTU thread in Bluedroid
...
There should be only one workqueue for BTU task. The queue length for the second workqueue of BTU can be uninitialized and caused memory overflow and corruption.
Closes https://github.com/espressif/esp-idf/issues/9507
2022-08-11 16:17:17 +08:00
Jiang Jiang Jian
4bf8f462a2
Merge branch 'opt/bluedroid_adv_report_datapath_v4.4' into 'release/v4.4'
...
Bluetooth/Bluedroid: optimize BLE adv report datapath and adv report flow control mechanism(backport v4.4)
See merge request espressif/esp-idf!19381
2022-08-11 11:20:42 +08:00
linruihao
fdf7029078
Fixed union member access typo
...
Closes https://github.com/espressif/esp-idf/pull/9498
2022-08-09 15:25:44 +08:00
tgotic
4c6d2e0da7
bt member typo
...
Terminate sec_event.cfm_req.bd_name string, not sec_event.pin_req.bd_name
2022-08-09 15:25:24 +08:00
Jiang Jiang Jian
905b3b1718
Merge branch 'bugfix/btdm_fix_some_bluedroid_issues_v4.4' into 'release/v4.4'
...
Fix some bluedroid issues(backport v4.4)
See merge request espressif/esp-idf!19130
2022-08-04 14:45:44 +08:00
Jiang Jiang Jian
d3eeebf8f8
Merge branch 'bugfix/fix_bluedroid_host_memory_overflow_v4.4' into 'release/v4.4'
...
Fixed bluedroid host memory overflow for v4.4
See merge request espressif/esp-idf!19060
2022-08-04 14:44:40 +08:00
Jiang Jiang Jian
79a8ad665a
Merge branch 'bugfix/memory_copy_bugs_in_bluedroid_4.4' into 'release/v4.4'
...
components_bt/bluedroid: Fix Memory Copy Build Err [backport v4.4]
See merge request espressif/esp-idf!19311
2022-08-04 14:41:58 +08:00
Karl Wang
e5a96aaca6
component/bt: use OSI utility "osi_event" for HCI downstream data processing
2022-08-03 21:55:08 +08:00
wangmengyang
c6c4a23098
component/bt: consider to handle HCI LE Direct Advertising Report
2022-08-03 21:55:07 +08:00
Karl Wang
6c0c837378
component/bt: allocate and use one static buffer for HCI adv flow control command
2022-08-03 21:55:06 +08:00
wangmengyang
aaf1d3909d
component/bt: use fixed_pkt_queue instead of fixed_queue for hci commands
...
some fixes after modifications:
1. removed the use of waiting_command_t
2. fix assert for HCI write_eir command
3. fixed the crash upon handling command status event when trying to free to the HCI command buffer
4. fixed the issue in transmitting HCI vendor specific commands
5. fixed the lost command complete callbacks for HCI commands LE_RAND and LE_ENCRYPT
2022-08-03 21:55:05 +08:00
wangmengyang
c3f5b85032
component/bt: add a timer to monitor the adv flow control credits downwards procedure
2022-08-03 21:55:04 +08:00
wangmengyang
b735c46ba7
component/bt: fix adv report flow control logic, give ADV report credits every 10 packets
2022-08-03 21:55:03 +08:00
wangmengyang
2ef0627c2c
component/bt: add simple ADV flow control mechanism -- drop the packets when the adv report queues are considered full
2022-08-03 21:55:02 +08:00
wangmengyang
dcf173c95a
component/bt: use the OSI utility "osi_event" to handle adv report in btc_layer
2022-08-03 21:55:01 +08:00
wangmengyang
c9ebba2ddf
component/bt: use the OSI utility "pkt_queue" to store ADV report packet in btu layer
...
# Conflicts:
# components/bt/host/bluedroid/hci/hci_hal_h4.c
2022-08-03 21:54:52 +08:00
wangmengyang
71c072cc8c
component/bt: use the OSI utility "osi_event" for hci_hal_h4 upstream data packets handling
2022-08-03 21:50:38 +08:00
wangmengyang
88af2c548f
component/bt: use the OSI utility "osi_event" to handle A2DP source data Tx processing
2022-08-03 21:50:37 +08:00
wangmengyang
ceb4096287
component/bt: use the OSI utility "osi_event" to handle A2DP sink data Rx processing
2022-08-03 21:50:36 +08:00
wangmengyang
1e06076c3c
component/bt: make OSI thread workqueue length configurable through API
...
reduce the length of workqueue1 for BTC and HCI task
# Conflicts:
# components/bt/common/osi/thread.c
2022-08-03 21:50:32 +08:00
weitianhua
72fd3bc1e6
component_bt: Fix build doc errors of bt
...
1. bluedroid: use standard function pointer define.
2. blufi: Change ESP_BD_ADDR_LEN into ESP_BLUFI_BD_ADDR_LEN
3. doc/sphinx_known_warnings: Remove fixed parts.
2022-08-02 13:39:36 +08:00
weitianhua
5b648b8452
components_bt/bluedroid: Fix Memory&String Copy Build Err
...
1. When setting compilier into -O2 optimization, build for classic bt demo will get wrong
2. Fix a memcpy bug that maybe get memory truncated
Closes https://github.com/espressif/esp-idf/issues/9398
2022-08-01 14:27:56 +08:00
xiewenxiang
ffebc3d93f
component/bt: Modify the bluetooth device name length limits
2022-07-20 09:22:47 +08:00
xiewenxiang
a840c77d4e
component/bt: set ext adv param failed when stop ext adv
2022-07-20 09:09:17 +08:00
zhiweijian@espressif.com
85da506ec0
Fixed bluedroid host memory overflow
2022-07-15 14:47:28 +08:00
Jiang Jiang Jian
327624b04c
Merge branch 'bugfix/correct_blecmd_for_rf_path_v4.4' into 'release/v4.4'
...
Bluedroid: Fixed compilation error due to incorrect macro name (v4.4)
See merge request espressif/esp-idf!18994
2022-07-12 20:32:02 +08:00
Jiang Jiang Jian
4e6f8b362d
Merge branch 'bugfix/ble_50_sync_periodic_adv_lost_data_v4.4' into 'release/v4.4'
...
components/bt: Fix ble sync periodic adv report will lost data(backport release/v4.4)
See merge request espressif/esp-idf!18958
2022-07-12 17:30:04 +08:00
Rahul Tank
b5522f5709
Bluedroid: Fixed compilation error due to incorrect macro name
2022-07-12 09:42:27 +05:30
xiewenxiang
3838e3da4a
components/bt: Fix ble sync periodic adv report lost data issue
2022-07-11 16:50:30 +08:00
jincheng
875915a822
fix the issue of functions not defined when enable memory debug
2022-07-08 11:03:07 +08:00
Jiang Jiang Jian
6e63caa4fa
Merge branch 'bugfix/resolve_redefinition_in_spp_and_hid_v4.4' into 'release/v4.4'
...
bugfix/resolve redefinition in btc_spp.h and btc_hd.h/btc_hh.h (v4.4)
See merge request espressif/esp-idf!18824
2022-07-07 10:56:04 +08:00
zhiweijian@espressif.com
363b8b2973
Fixed bluedroid host memory overflow
2022-07-06 21:21:30 +08:00
Jiang Jiang Jian
d949df8dcb
Merge branch 'bugfix/ext_adv_param_check_v4.4' into 'release/v4.4'
...
Bluedroid: fix channel map of ext adv params check for v4.4
See merge request espressif/esp-idf!18890
2022-07-06 17:21:27 +08:00
Jiang Jiang Jian
a3f72a9310
Merge branch 'feature/esp_docs_1.0.0_v4.4' into 'release/v4.4'
...
docs: update esp-docs to 1.0.0 (v4.4)
See merge request espressif/esp-idf!18210
2022-07-06 17:14:03 +08:00
chenjianhua
9113f72078
Bluedroid: fix channel map of ext adv params check
2022-07-05 19:44:12 +08:00
Jiang Jiang Jian
690f802b1c
Merge branch 'bugfix/not_use_malloc_in_bluedroid_v4.4' into 'release/v4.4'
...
component/bt: use osi_malloc instead of malloc in bluedroid
See merge request espressif/esp-idf!18843
2022-07-04 20:05:46 +08:00
baohongde
65ed4b5339
component/bt: use osi_malloc instead of malloc in bluedroid
2022-07-04 16:10:25 +08:00
Marius Vikhammer
27cd55dca1
docs: fix broken links
2022-07-04 11:05:49 +08:00
jincheng
59b50180a0
resolve redefinition in btc_spp.h and btc_hd.h/btc_hh.h
...
Closes https://github.com/espressif/esp-idf/issues/9199
2022-07-01 19:21:37 +08:00
liqigan
4f598d2ec3
fix sink wrong sniff params which caused by HID porting
2022-07-01 14:49:54 +08:00
xiongweichao
5020faf559
update hfp_ag version to 1.7.2
2022-06-21 14:41:19 +08:00
Jiang Jiang Jian
a77509a140
Merge branch 'feature/btdm_add_link_role_param_for_gatt_disconnection_event_v4.4' into 'release/v4.4'
...
component/bt: add link role param for gatt disconnection event(backport v4.4)
See merge request espressif/esp-idf!15948
2022-06-20 00:42:33 +08:00
xiewenxiang
3176c707da
component/bt: add link role param for gatt disconnection event(backport v4.4)
2022-06-19 14:41:55 +00:00
xiongweichao
8164030575
Fix AVDTP general reject format error.
2022-06-19 14:32:43 +00:00
xiewenxiang
49baddf113
component/bt: check the ble ext adv parameters
2022-06-14 11:30:13 +08:00
keymoon
22cf1d0d58
assign value to uninitialized bt_addr
field
2022-05-29 18:08:56 -07:00
keymoon
35fd2cee7c
add address field to read_rmt_name_param
2022-05-29 18:08:41 -07:00
Jiang Jiang Jian
4fedbdd264
Merge branch 'bugfix/spp_crash_after_call_spp_deinit_v4.4' into 'release/v4.4'
...
Component_bt/Fix spp crash after call esp_spp_deinit(v4.4)
See merge request espressif/esp-idf!17930
2022-04-28 01:26:06 +08:00
xiongweichao
6232753804
Fix spp initialization failure without free mutex
2022-04-27 14:19:59 +08:00