xiongweichao
110bdea520
Assert when malloc user_data fail
2022-12-19 12:17:14 +08:00
xiongweichao
efaa43d01b
Fixed memory leak when SPP initialization failed
2022-12-19 12:17:14 +08:00
liuning
ce2deab1a4
phy: only set phy_init_flag at power domain off, when all modems deinit
2022-12-16 14:20:17 +08:00
liuning
626b87871d
blufi: update version to 1.3
...
record connecting status, got ip status, maximum retry, connection end info (reason code, rssi) and provide greater information to phone
2022-12-14 19:23:08 +08:00
Jiang Jiang Jian
0ee643387b
Merge branch 'feature/nimble_support_ble_max_conn_num_v4.3' into 'release/v4.3'
...
Nimble: Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3 (v4.3)
See merge request espressif/esp-idf!21552
2022-12-14 10:43:24 +08:00
Rahul Tank
4e366665ae
Nimble: Update documentation to include distinction between upstream
...
mesh example and ESP-BLE-MESH
2022-12-13 12:56:29 +05:30
Jiang Jiang Jian
19310eea60
Merge branch 'bugfix/correct_the_default_SR_mode_v4.3' into 'release/v4.3'
...
bugfix/correct the SR_mode selection when konw nothing about Peripheral's SR_mode (v4.3)
See merge request espressif/esp-idf!21521
2022-12-12 14:57:27 +08:00
Rahul Tank
b07ca316d0
Nimble: Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3
2022-12-09 19:13:56 +05:30
jincheng
31b6acc88a
Added reporting for ACL link related events to application
2022-12-09 11:15:56 +08:00
Jin Cheng
bfe007388f
correct the SR_mode selection when konw nothing about Peripheral
2022-12-09 10:37:42 +08:00
Jiang Jiang Jian
df901e0fe8
Merge branch 'contrib/github_pr_9529_v4.3' into 'release/v4.3'
...
component_bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails(v4.3)
See merge request espressif/esp-idf!21473
2022-12-08 11:44:55 +08:00
Wang Meng Yang
05c497e9c2
Merge branch 'bugfix/reduce_BTU_TASK_stack_consumption_v4.3' into 'release/v4.3'
...
Reduce the stack consumption of BTU_TASK (backport v4.3)
See merge request espressif/esp-idf!21436
2022-12-07 11:29:56 +08:00
xiongweichao
84e400cd8c
bt: Fixed incorrect parameters in switching to BTC context
2022-12-07 10:22:41 +08:00
xiongweichao
dad8773c07
bt:Modify the member variable *arg in struct btc_msg to arg[0]
2022-12-07 10:22:36 +08:00
xiongweichao
433767f97a
bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails
2022-12-07 10:22:29 +08:00
Jiang Jiang Jian
35f9b6ad58
Merge branch 'bugfix/Fix_exceptional_list_params_check_v4.3' into 'release/v4.3'
...
ble_mesh: stack: Fix exceptional list parameters check issue(v4.3)
See merge request espressif/esp-idf!21443
2022-12-06 14:44:25 +08:00
wangjialiang
0f95a31589
ble_mesh: stack: Fix exceptional list parameters check issue
2022-12-05 20:26:11 +08:00
zwj
8ce5d113ca
Reduce the stack consumption of BTU_TASK
2022-12-05 17:29:40 +08:00
isha.pardikar@espressif.com
7b51ebe7a8
NimBLE: Fixed going for reattempt connection code
2022-12-05 14:33:40 +05:30
xiongweichao
9b2b5d1651
Fixed a2dp failing to connect again after disconnect
2022-11-30 19:15:36 +08:00
Jin Cheng
79b4d8fe4f
optimized a2dp_sink audio datapath
...
1. removed audio cache in BTC layer of Bluedroid
2. added flow control for audio data in application layer
Closes https://github.com/espressif/esp-idf/issues/9622
2022-11-24 13:13:40 +08:00
Jiang Jiang Jian
81d598b46f
Merge branch 'bugfix/fix_hfp_clcc_parser_bug_4.3' into 'release/v4.3'
...
Bugfix/Fix HFP client parse CLCC command response bug[backport 4.3]
See merge request espressif/esp-idf!21158
2022-11-24 11:12:15 +08:00
zhiweijian
92c8189388
support BLE memory release on ESP32C3 and ESP32S3
2022-11-21 12:21:47 +08:00
zhiweijian
30f2cc87ce
Update bt lib for ESP32C3
...
- Added config to disable scan backoff
- Fixed llm_scan.c assert at line 1485 during controller deinit if duplicate scan is not stopped
- Call pll track in controller task
2022-11-21 12:04:35 +08:00
zwj
098465ff74
Fixed errors reported by CI clang_tidy_check
2022-11-21 11:11:52 +08:00
zwj
da42e4a234
Fixed sometimes BTU task overflow when doing read and write performance test
2022-11-21 11:11:40 +08:00
zhiweijian
14f396c367
change default tx power from 3dBm to 9dBm
2022-11-21 11:11:17 +08:00
liqigan
60875836bd
fix HFP client parse CLCC command response bug
2022-11-18 19:44:17 +08:00
Jin Cheng
60e281805c
fixed the issue iOS devices cannot initiate connection
...
to ESP32 while there is a BLE connection to this ESP32
Closes https://github.com/espressif/esp-idf/issues/6557
2022-11-14 09:50:22 +08:00
wangjialiang
215e1262ba
ble_mesh: stack: Fix can't trans optional info to group address
2022-11-07 15:48:56 +08:00
Jiang Jiang Jian
9e6d5dce34
Merge branch 'bugfix/use_nonblocking_coex_callback_v4.3' into 'release/v4.3'
...
bluetooth: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth(backport v4.3)
See merge request espressif/esp-idf!20780
2022-11-01 10:48:38 +08:00
Wang Meng Yang
4fecbc30fa
Merge branch 'bugfix/spp_vfs_mode_send_data_fail_v4.3' into 'release/v4.3'
...
bt: Fixed SPP VFS mode not being able to send data(v4.3)
See merge request espressif/esp-idf!20802
2022-10-27 10:50:11 +08:00
wangmengyang
de2e183c9a
bt: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth for ESP32
2022-10-26 19:13:16 +08:00
Wang Meng Yang
067d5fb28d
Merge branch 'bugfix/handle_issue_of_malloc_fail_v4.3' into 'release/v4.3'
...
bugfix/avoid unexpected free when malloc failed (v4.3)
See merge request espressif/esp-idf!20726
2022-10-26 18:57:28 +08:00
xiongweichao
45d4780760
bt: Fixed SPP VFS mode not being able to send data
2022-10-26 16:27:49 +08:00
Jiang Jiang Jian
a2086ca355
Merge branch 'bugfix/fix_esp32_esp32c3_some_bugs_v4.3' into 'release/v4.3'
...
Fixed BLE lld_per_adv.c line 401 assert on ESP32C3 (backport v4.3)
See merge request espressif/esp-idf!20759
2022-10-26 11:07:37 +08:00
Jiang Jiang Jian
69ae164794
Merge branch 'bugfix/update_ctrl_init_config_macro_v4.3' into 'release/v4.3'
...
Bugfix/update ctrl init config macro (v4.3)
See merge request espressif/esp-idf!20713
2022-10-25 17:41:53 +08:00
zhiweijian
2dfdea8b50
update ble tx power level mapping
2022-10-24 20:10:48 +08:00
zhiweijian
8005e6f0d5
Fixed BLE lld_per_adv.c line 401 assert on esp32c3
2022-10-24 19:51:34 +08:00
zwj
858b869bb6
Fixed ESP32 BLE assert(32 0)
2022-10-24 19:36:58 +08:00
zwj
38945f54e1
allow bluedroid host to report adv_ind separately
2022-10-24 19:36:47 +08:00
Jiang Jiang Jian
d96bb082ba
Merge branch 'bugfix/esp_spp_write_len_0_v4.3' into 'release/v4.3'
...
bt: Fixed esp_spp_write() crash when len is 0 (v4.3)
See merge request espressif/esp-idf!20707
2022-10-24 12:31:37 +08:00
tgotic
416f9b0cea
[bt] fix if allocation fails
...
If osi_malloc fails for work_queues or osi_work_queue_create fails, osi_work_queue_delete in _err may release unallocated memory.
2022-10-21 14:46:12 +08:00
Jiang Jiang Jian
dd62e3bb9b
Merge branch 'bugfix/close_stack_callback_during_ble_stop_v4.3' into 'release/v4.3'
...
Nimble: Added check to deregister stack callback with controller during stack deinit(v4.3)
See merge request espressif/esp-idf!20605
2022-10-21 14:21:41 +08:00
Evan Neidler
850efb4bbe
Update #define BT_CONTROLLER_INIT_CONFIG_DEFAULT().
...
Corrects header names in string from "bt.h" to "esp_bt.h".
2022-10-21 12:03:39 +08:00
xiongweichao
58a7082114
bt: Fixed esp_spp_write() crash when len is 0
...
Closes https://github.com/espressif/esp-idf/issues/9977
2022-10-21 11:21:51 +08:00
Jiang Jiang Jian
844624ead2
Merge branch 'bugfix/revert_commit_da44fc9c_v4.3' into 'release/v4.3'
...
Revert "fixed the issue iOS devices cannot initiate connection" (v4.3)
See merge request espressif/esp-idf!20667
2022-10-20 19:18:28 +08:00
Jiang Jiang Jian
1ec7a0cbf8
Merge branch 'feature/Add_IVI_recovery_option_v4.3' into 'release/v4.3'
...
ble_mesh: stack: Add IV index recovery option when device missed the whole IV update(v4.3)
See merge request espressif/esp-idf!20643
2022-10-19 11:12:11 +08:00
Jiang Jiang Jian
f1beed4911
Merge branch 'bugfix/fix_fast_interval_prov_adv_v4.3' into 'release/v4.3'
...
ble_mesh: stack: Fix send fast interval prov_adv failed(v4.3)
See merge request espressif/esp-idf!20639
2022-10-19 11:11:45 +08:00
Jin Cheng
b5996dd051
Revert "fixed the issue iOS devices cannot initiate connection"
...
This reverts commit da44fc9cbe
.
2022-10-18 19:45:00 +08:00
Rahul Tank
7d3207f70b
Nimble: Added check to deregister stack callback with controller during stack deinit(v4.3)
2022-10-18 12:19:20 +05:30
Jiang Jiang Jian
ed6f966009
Merge branch 'contrib/github_pr_9529_mr_v4.3' into 'release/v4.3'
...
bt:No need to use local copy of btc_msg_t in btc_transfer_context, create it on heap and pass to osi_thread_post()(v4.3)
See merge request espressif/esp-idf!19693
2022-10-17 18:04:57 +08:00
wangjialiang
b8e9a77463
ble_mesh: stack: Add IV index recovery option when device missed the whole IV update
2022-10-17 16:54:16 +08:00
wangjialiang
cac449f57a
ble_mesh: stack: Fix send fast interval prov_adv failed when PB-ADV and PB-GATT enable simultaneously
2022-10-17 16:39:59 +08:00
xiongweichao
9f5ff9fddf
Fixed deadlock due to wrong parameter when calling btc_transfer_context() after calling esp_bluedroid_disable()
...
Closes https://github.com/espressif/esp-idf/issues/9672
2022-10-10 09:31:47 +00:00
tgotic
5d3af603a6
update code to use osi_free()
2022-10-10 09:31:47 +00:00
tgotic
01ac97732d
local copy of btc_msg_t
...
No need to use local copy of btc_msg_t in btc_transfer_context, create it on heap and pass to osi_thread_post().
2022-10-10 09:31:47 +00:00
chenjianhua
ed24da98eb
bluedroid: configurable max gattc cache characteristic count
2022-10-09 15:31:11 +08:00
chenjianhua
b904278330
fix ble adv tx power map
2022-10-09 15:28:39 +08:00
chenjianhua
7a324e2984
bluedroid: fix ble rpa generate and update by host
2022-10-09 15:28:39 +08:00
chenjianhua
0446de4429
Revert "component/bt: add local irk to controller"
...
This reverts commit 032f6d34d1
.
2022-10-09 15:28:39 +08:00
chenjianhua
fb20a1be8e
Revert "Fixed ESP32 BLE can't resolve the peer address when enable white list"
...
This reverts commit 192aa18c31
.
2022-10-09 15:28:39 +08:00
chenjianhua
e5a195fc2c
Bluedroid: Configurable option to modify max gatt service attributes count
2022-10-09 15:28:39 +08:00
Jiang Jiang Jian
9e863ecdb8
Merge branch 'bugfix/fix_some_ble_bugs_on_esp32c3_v4.3' into 'release/v4.3'
...
Fixed some BLE controller bugs on ESP32-C3 (backport v4.3)
See merge request espressif/esp-idf!19990
2022-09-29 13:59:20 +08:00
Jiang Jiang Jian
07bffab8d4
Merge branch 'feature/sink_support_mono_v4.3' into 'release/v4.3'
...
bt: Fixed sink not being able to output mono audio because it can only decode dual channel audio data(v4.3)
See merge request espressif/esp-idf!20079
2022-09-29 11:40:01 +08:00
Jiang Jiang Jian
a5e5ab7b1b
Merge branch 'bugfix/acl_buf_ocf_and_conn_fail_v4.3' into 'release/v4.3'
...
bugfix/fixed the exhaustion of ACL buffer and duplicated connection requests (v4.3)
See merge request espressif/esp-idf!20385
2022-09-29 11:37:57 +08:00
Jin Cheng
f2000d8925
fixed the issue iOS devices cannot initiate connection
...
to ESP32 while there is a BLE connection to this ESP32
Closes https://github.com/espressif/esp-idf/issues/6557
2022-09-28 16:12:11 +08:00
Jin Cheng
9a953f7740
fixed the exhaustion of ACL buffer
...
fixed the duplication of connection request from the same device
2022-09-28 10:16:24 +08:00
zwj
f635a2f2a1
fix calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting
2022-09-27 21:38:11 +08:00
zwj
157acb3086
Fixed extend adv tx power range error
2022-09-27 21:37:04 +08:00
cjin
ebb23ff4fe
fix err using rpa for confirmation calculation
2022-09-27 21:35:49 +08:00
cjin
78a08e9ca7
fix on data len change cmd malfunction
2022-09-27 21:35:33 +08:00
zwj
d826f8ae34
Update ESP32-C3 BLE lib
...
- Fixed the usage of PLL track related baseband IRQs
- Fixed connect failed due to error sync found signal
- Fixed BLE disconnect failed due to terminate_ind have sent but no ACK is received
- Added ADV mode error check in ADV rx isr handler function
- Fixed BLE RAL_UNDERRUN and TX_CRYPT_ERR assert
- Disable scan continue
- Fixed scan forever if scan continue is disable
- Fixed BLE disconnection issue when channel map update failed due to bad channels
2022-09-27 20:55:19 +08:00
zwj
05c8753eaa
Fixed extend adv set remove failed
2022-09-27 20:55:19 +08:00
wangjialiang
e54506ceaa
ble_mesh: stack: Fix friend relay lpn message when relay disable.
2022-09-21 03:36:36 +00:00
Island
894b1ad79d
Merge branch 'bugfix/lpn_not_recv_message_to_all_node_4.3' into 'release/v4.3'
...
ble_mesh: stack: Add option for lpn auto sub all-nodes(v4.3)
See merge request espressif/esp-idf!20263
2022-09-21 11:31:39 +08:00
wangjialiang
7e2ebcde7a
ble_mesh: stack: Add option for lpn auto sub all-nodes.
2022-09-20 20:31:37 +08:00
wangjialiang
eb4ec4beda
ble_mesh: stack: added the judgment that the parameter is NULL but the parameter len is not zero to avoid btc_transfer_context failed
2022-09-15 09:17:08 +00:00
Jiang Jiang Jian
08726a8495
Merge branch 'bugfix/remove_bt_dft_init_semicolon_v4.3' into 'release/v4.3'
...
bt: Remove trailing semicolon from bt dft initializer(v4.3)
See merge request espressif/esp-idf!19916
2022-09-14 17:01:08 +08:00
Jiang Jiang Jian
f1bd2be298
Merge branch 'bugfix/fix_memory_corruption_in_recon_code_v4.3' into 'release/v4.3'
...
Nimble: Fixed memory corruption introduced in reconnection attempt code (v4.3)
See merge request espressif/esp-idf!19746
2022-09-14 16:59:38 +08:00
xiongweichao
59ea02cb4c
bt:Fixed sink not being able to output mono audio because it can only decode dual channel audio data
2022-09-09 17:42:30 +08:00
Pedro
86182baaaf
Remove trailing semicolon from bt dft initializer
...
Similar to espressif#6554
2022-09-02 11:10:41 +08:00
xiongweichao
395f0eb5c1
Fix bluetooth disconnection issue when light sleep and baseband power down are enabled
2022-08-26 16:17:14 +08:00
Rahul Tank
1f695251a1
Nimble: Fixed memory corruption introduced in reconnection attempt code
2022-08-24 13:44:29 +05:30
Jiang Jiang Jian
19de572d45
Merge branch 'bugfix/bt_invalid_workqueue_num_v4.3' into 'release/v4.3'
...
Bluetooth: fixed the invalid workqueue number for BTU thread in Bluedroid(backport v4.3)
See merge request espressif/esp-idf!19509
2022-08-12 19:50:07 +08:00
Jiang Jiang Jian
a456819d78
Merge branch 'bugfix/fix_bt_sphinx_warnings_4.3' into 'release/v4.3'
...
components_bt: fix unstandard typedefs [backport v4.3]
See merge request espressif/esp-idf!19339
2022-08-12 14:00:35 +08:00
weitianhua
d264f30e76
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-12 12:11:54 +08:00
xiongweichao
460cfbd583
1. Wi-Fi: update tsf tick interval when lpclk is modified
...
2. Move register_lpclk_callback to coexistence
2022-08-11 20:21:59 +08:00
xiongweichao
23e8e497da
make bluetooth and wifi use the same low power clock
2022-08-11 20:17:39 +08:00
xiongweichao
12ca203856
ESP32C3:bluetooth support use main XTAL in light sleep mode
2022-08-11 20:17:39 +08:00
wangmengyang
73cc09b118
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:18:12 +08:00
wangjialiang
041784e653
ble_mesh: stack: Fix kr from non-primary subnet shouldn't ignore
...
For case MESH/NODE/KR/BV-02-C
2022-08-11 14:15:56 +08:00
wangjialiang
bfb5e06df4
ble_mesh: stack: Add a check if the appkey is bound to the model.
...
For case MESH/NODE/CFG/MP/BI-03-C
2022-08-11 14:15:51 +08:00
wangjialiang
2490d28cc6
ble_mesh: stack: the count_log field should be set to 0 when HBS is sent.
...
For MESH/NODE/CFG/HBS/BV-02-C
2022-08-11 14:15:46 +08:00
wangjialiang
17372e5b3d
ble_mesh: stack: The Heartbeat Publication Period Log value can set to 0x11, range: [0, 0x11]
2022-08-11 14:15:40 +08:00
wangjialiang
7ce06c8c3b
ble_mesh: stack: The value of expect_ack_for will be rewrited after send_pub_key().
...
For case MESH/PVNR/PROV/BV-04-C
2022-08-11 14:15:33 +08:00
wangjialiang
ff8588ec46
ble_mesh: stack: Fix ignore connectable PB-ADV PDU containing a Link Open message.
...
For case MESH/NODE/PBADV/BI-04-C
2022-08-11 14:15:18 +08:00
wangjialiang
a6e921684c
ble_mesh: stack: Fix PB-GATT not check invalid link flag
...
For case MESH/NODE/PROV/BI-03-C
2022-08-11 14:15:12 +08:00
wangjialiang
529f49db5b
ble_mesh: stack: Fix invalid provisioning pdu type check
...
For case MESH/NODE/PROV/BI-15-C
2022-08-11 14:15:06 +08:00
Jiang Jiang Jian
a253cf8118
Merge branch 'opt/bluedroid_adv_report_datapath_v4.3' into 'release/v4.3'
...
Bluetooth/Bluedroid: optimize BLE adv report datapath and adv report flow control mechanism(backport v4.3)
See merge request espressif/esp-idf!19383
2022-08-11 10:57:03 +08:00