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
93d4306aff
component/bt: add new OSI utility "fixed_pkt_queue", which has same functionality with "fixed_queue"
2022-08-03 21:50:35 +08:00
Karl Wang
96cbdee383
component/bt: add new OSI utility "pkt_queue" which acts as a mutex-protected linked list, to be used as data queue between tasks
2022-08-03 21:50:34 +08:00
wangmengyang
6edcab3885
component/bt: add new OSI utility "osi_event" to support the scenario that event need only to be handle once.
2022-08-03 21:50:33 +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
wangmengyang
d635d8f361
component/bt: modify the implementation of osi_thread using freeRTOS queue
2022-08-03 21:50:31 +08:00
jincheng
a066de7fec
1. add protect for bt_util_buf_env buffers when multi-access
...
2. ignore assert_err in em_bt_clkoff1_setf
2022-07-27 18:01:12 +08:00
Jiang Jiang Jian
bd7269411a
Merge branch 'bugfix/wifi_sta_and_ble_disconnect_BCI-303_v4.4' into 'release/v4.4'
...
component_bt: Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected(v4.4)
See merge request espressif/esp-idf!18999
2022-07-13 00:13:03 +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
692ba818fe
Merge branch 'bugfix/fix_esp32_ke_mem_c_assert_v4.4' into 'release/v4.4'
...
fix esp32 BLE ke_mem.c assert for v4.4
See merge request espressif/esp-idf!19000
2022-07-12 20:30:32 +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
Jiang Jiang Jian
9f5b700c9a
Merge branch 'bugfix/fix_esp32c3_s3_adv_report_duplicate_check_v4.4' into 'release/v4.4'
...
Fix esp32c3/s3 adv report duplicate check for v4.4
See merge request espressif/esp-idf!18962
2022-07-12 17:29:35 +08:00
zwj
f39df9a9c0
fix esp32 BLE ke_mem.c assert
2022-07-12 14:40:21 +08:00
xiongweichao
c85f71aee3
Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected
2022-07-12 14:35:32 +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
Jiang Jiang Jian
b9a1020fcf
Merge branch 'bugfix/reset_ble_hw_on_inititalization_v4.4' into 'release/v4.4'
...
[Bluetooth] Reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3(release/v4.4)
See merge request espressif/esp-idf!18964
2022-07-11 16:28:53 +08:00
Jiang Jiang Jian
65becd2edf
Merge branch 'bugfix/fix_osi_men_dbg_xxx_not_defined_when_enable_mem_dbg_v4.4' into 'release/v4.4'
...
bugfix/fix the issue of functions not defined when enable memory debug (v4.4)
See merge request espressif/esp-idf!18815
2022-07-11 16:28:27 +08:00
wangmengyang
4d5aa82cea
component/bt: reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3
...
1. Rename MACROs SYSTEM_WIFI_RST_EN register bit fields to be more recognizable
2. reset Bluetooth baseband and MAC bits to fix the issue of task watchdog triggered during controller initialization due to invalid hardware state
2022-07-11 11:06:11 +08:00
chenjianhua
1595e008f0
fix esp32c3/s3 adv report duplicate check
2022-07-11 10:53:53 +08:00
jincheng
875915a822
fix the issue of functions not defined when enable memory debug
2022-07-08 11:03:07 +08:00
xiewenxiang
fe1fb25078
doc(bt): Add description for de-initialize bt controller
2022-07-08 11:02:01 +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
Jiang Jiang Jian
ed7d2d3f0d
Merge branch 'bugfix/fix_ble_ke_mem_c_assert_on_c3_s3_v4.4' into 'release/v4.4'
...
Fixed BLE ke_mem.c assert for v4.4
See merge request espressif/esp-idf!18878
2022-07-07 10:55:49 +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
8546527213
Merge branch 'bugfix/restore_edr_en_and_protect_for_vhci_env_v4.4' into 'release/v4.4'
...
bugfix/restore edr_en and add protect for vhci_env (v4.4)
See merge request espressif/esp-idf!18811
2022-07-06 17:15:54 +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
zwj
3e6cc4892b
fix BLE ke_mem.c assert
2022-07-05 16:12:57 +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
Jiang Jiang Jian
977a040301
Merge branch 'bugfix/fix_sink_wrong_sniff_params_v4.4' into 'release/v4.4'
...
Fix A2DP Sink Wrong Sniff Parameters which Caused by HID Porting[backport 4.4]
See merge request espressif/esp-idf!18801
2022-07-04 19:57:53 +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
f3917d1706
restore edr_en which wrongly cleared by rsw
...
add critical protection for vhci_env_p->vhci_intr_st
ignore max_page when handle remote features
2022-07-01 19:28:36 +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
wangjialiang
23e482feeb
ble_mesh: stack: Bugfix for proxy beacon send after reinit mesh
2022-07-01 11:42:07 +08:00
Rahul Tank
ec6155dff1
Nimble: Fixed memory leak while generating keypair using embedtls
2022-06-30 14:21:54 +05:30
Jiang Jiang Jian
46cff3cd1c
Merge branch 'feature/add_filter_seq_auth_config_v4.4' into 'release/v4.4'
...
ble_mesh: stack: Add filter old seq_auth packet menuconfig(v4.4)
See merge request espressif/esp-idf!18649
2022-06-30 16:48:01 +08:00
Jiang Jiang Jian
93d8cf3eb6
Merge branch 'bugfix/sync_host_nocp_cmd_v4.4' into 'release/v4.4'
...
Nimble: Sync sending Host Number of Completed Packets command
See merge request espressif/esp-idf!18607
2022-06-30 16:39:58 +08:00