2127 Commits

Author SHA1 Message Date
chenjianhua
564c4b644d bluedroid: support get bluetooth device name 2023-04-21 15:57:41 +08:00
zhiweijian
3a7dd3c0de Fixed vulnerability attacks that could cause heap overflow in fragmented Blufi packet processing 2023-04-04 15:42:34 +08:00
chenjianhua
c912fcba45 fix ble adv tx power map 2023-03-10 17:15:24 +08:00
chenjianhua
c5dc8389ed bluedroid: fix ble rpa generate and update by host 2023-03-10 17:15:24 +08:00
Jin Cheng
c25d227280 Fixed build errors when sniff subrating is enabled. 2023-02-16 15:25:41 +08:00
Jiang Jiang Jian
c135695a18 Merge branch 'bugfix/fix_ble_some_bugs_20221219_v4.2' into 'release/v4.2'
backport some BLE bugs 20221219 (backport v4.2)

See merge request espressif/esp-idf!21720
2022-12-21 12:00:08 +08:00
Jiang Jiang Jian
7c9bdca900 Merge branch 'bugfix/spp_vfs_memory_leak_v4.2' into 'release/v4.2'
Component_bt/fix esp_spp_vfs_register memory leak(v4.2)

See merge request espressif/esp-idf!21717
2022-12-21 11:59:58 +08:00
zwj
18d0ba010d Update bt lib for ESP32
- Add config to set duplicate scan list refresh period
- overwrite the oldest device infor if the list is full
- Fixed duplicate scan period is not accurate
- Change default TX power to 9 dBm
- Fixed disconnect reason 0x1f (unspecified error)
- Fixed connection timeout due to terminate ind has not been acknowledged
- Fixed some memory was not released after bluetooth controller initialization failed on ESP32
2022-12-20 17:21:21 +08:00
xiongweichao
7f371f7864 bt: Fixed repeated register of vfs_id causing memory leaks 2022-12-20 15:13:44 +08:00
xiongweichao
1d43c9103c Assert when malloc user_data fail 2022-12-20 15:13:25 +08:00
xiongweichao
41d064578f Fixed memory leak when SPP initialization failed 2022-12-20 15:12:48 +08:00
chenjianhua
2fd6fa2773 bluedroid: fix ble connection update with same params 2022-12-19 20:05:50 +08:00
chenjianhua
310be0d052 bluedroid: fix encrypt keysize of GATT characteristic permission 2022-12-19 20:05:50 +08:00
chenjianhua
b24bc2482b bluedroid: correct the length of att read by type pdu 2022-12-19 20:05:50 +08:00
Jiang Jiang Jian
698aae95cf Merge branch 'contrib/github_pr_9529_v4.2' into 'release/v4.2'
component_bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails(v4.2)

See merge request espressif/esp-idf!21474
2022-12-13 13:56:24 +08:00
xiongweichao
e5e225adaa bt: Fixed incorrect parameters in switching to BTC context 2022-12-09 16:27:36 +08:00
xiongweichao
b5a959f11d bt:Modify the member variable *arg in struct btc_msg to arg[0] 2022-12-09 16:27:36 +08:00
Jin Cheng
bd9fddf174 correct the SR_mode selection when konw nothing about Peripheral 2022-12-09 10:39:59 +08:00
xiongweichao
0b0f2eeb01 bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails 2022-12-08 18:47:31 +08:00
wangjialiang
c281ef1f43 ble_mesh: stack: Fix exceptional list parameters check issue 2022-12-05 20:35:54 +08:00
xiongweichao
1e09841bd1 bt: Fixed a2dp failing to connect again after disconnect 2022-11-30 19:19:18 +08:00
liqigan
1fa4e7dd9c fix HFP client parse CLCC command response bug 2022-11-23 03:10:36 +00:00
Jin Cheng
e974410092 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:51:02 +08:00
wangjialiang
1cf785d3f5 ble_mesh: stack: Fix can't trans optional info to group address 2022-11-07 15:52:15 +08:00
Jiang Jiang Jian
7db88d56c9 Merge branch 'bugfix/use_nonblocking_coex_callback_v4.2' into 'release/v4.2'
bluetooth: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth(backport v4.2)

See merge request espressif/esp-idf!20811
2022-11-01 10:48:57 +08:00
Jiang Jiang Jian
76bb98355d Merge branch 'bugfix/esp_spp_write_len_0_v4.2' into 'release/v4.2'
bt: Fixed esp_spp_write() crash when len is 0 (v4.2)

See merge request espressif/esp-idf!20708
2022-10-31 19:51:15 +08:00
Jiang Jiang Jian
fe16a6fcf0 Merge branch 'bugfix/handle_issue_of_malloc_fail_v4.2' into 'release/v4.2'
bugfix/avoid unexpected free when malloc failed (v4.2)

See merge request espressif/esp-idf!20725
2022-10-31 10:47:42 +08:00
wangmengyang
e4d21b2781 bt: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth on ESP32 2022-10-26 19:04:06 +08:00
xiongweichao
c528942f0d bt: Fixed SPP VFS mode not being able to send data 2022-10-26 16:46:11 +08:00
xiongweichao
404d2be6f2 bt: Fixed esp_spp_write() crash when len is 0
Closes https://github.com/espressif/esp-idf/issues/9977
2022-10-26 16:45:50 +08:00
Jiang Jiang Jian
d33ce3ce52 Merge branch 'bugfix/fix_esp32_some_bugs_v4.2' into 'release/v4.2'
Fixed BLE ASSERT_PARAM(32 0) in rwble.c at line 384 on ESP32(backport v4.2)

See merge request espressif/esp-idf!20762
2022-10-26 10:56:12 +08:00
Jiang Jiang Jian
39f3ab13ce Merge branch 'bugfix/update_ctrl_init_config_macro_v4.2' into 'release/v4.2'
Bugfix/update ctrl init config macro (v4.2)

See merge request espressif/esp-idf!20714
2022-10-25 17:41:42 +08:00
zhiweijian
78fd81c0d3 Fixed ESP32 BLE assert(32 0) 2022-10-25 17:33:17 +08:00
zwj
a2dfa5c86b allow bluedroid host to report adv_ind separately 2022-10-25 17:33:17 +08:00
Jiang Jiang Jian
04bf991178 Merge branch 'bugfix/fix_legacy_pair_not_send_link_key_host_v4.2' into 'release/v4.2'
component_bt: fix legacy pair controller does not send the link key to the host (v4.2)

See merge request espressif/esp-idf!19322
2022-10-21 16:06:58 +08:00
tgotic
b37b8f163b [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:57:19 +08:00
Jin Cheng
bb2f66843c Corrects header names in string from "bt.h" to "esp_bt.h". 2022-10-21 13:14:38 +08:00
Jiang Jiang Jian
eb8316394c Merge branch 'bugfix/revert_commit_da44fc9c_v4.2' into 'release/v4.2'
Revert "fixed the issue iOS devices cannot initiate connection" (v4.2)

See merge request espressif/esp-idf!20668
2022-10-20 19:18:54 +08:00
xiongweichao
2a3ab6accf fix legacy pair controller does not send the link key to the host
Closes https://github.com/espressif/esp-idf/issues/5850
2022-10-20 11:07:24 +00:00
Island
f17dce2c3b Merge branch 'feature/Add_IVI_recovery_option_v4.2' into 'release/v4.2'
ble_mesh: stack: Add IV index recovery option when device missed the whole IV update(v4.2)

See merge request espressif/esp-idf!20644
2022-10-20 16:42:51 +08:00
Island
25e80452ab Merge branch 'bugfix/fix_fast_interval_prov_adv_v4.2' into 'release/v4.2'
ble_mesh: stack: Fix send fast interval prov_adv failed(v4.2)

See merge request espressif/esp-idf!20638
2022-10-20 16:41:58 +08:00
Jin Cheng
15f49d5848 Revert "fixed the issue iOS devices cannot initiate connection"
This reverts commit da44fc9cbefa208eaea45e105c3a9dc36959417f.
2022-10-18 19:45:49 +08:00
xiongweichao
7162617e65 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-18 06:15:46 +00:00
tgotic
2b70fe2531 update code to use osi_free() 2022-10-18 06:15:46 +00:00
tgotic
59e36c445d 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-18 06:15:46 +00:00
wangjialiang
f56c9da3d7 ble_mesh: stack: Add IV index recovery option when device missed the whole IV update 2022-10-17 16:54:47 +08:00
wangjialiang
b467ab61a1 ble_mesh: stack: Fix send fast interval prov_adv failed when PB-ADV and PB-GATT enable simultaneously 2022-10-17 16:40:38 +08:00
Wang Meng Yang
db75db5509 Merge branch 'bugfix/remove_bt_dft_init_semicolon_v4.2' into 'release/v4.2'
bt: Remove trailing semicolon from bt dft initializer(v4.2)

See merge request espressif/esp-idf!19917
2022-10-10 17:32:57 +08:00
Wang Meng Yang
9c5127d0e4 Merge branch 'feature/sink_support_mono_v4.2' into 'release/v4.2'
bt: Fixed sink not being able to output mono audio because it can only decode dual channel audio data(v4.2)

See merge request espressif/esp-idf!20080
2022-10-10 17:32:35 +08:00
Wang Meng Yang
82890eee6c Merge branch 'bugfix/a2dp_can_not_connect_after_ble_connected_v4.2' into 'release/v4.2'
fixed the issue iOS devices cannot initiate connection (v4.2)

See merge request espressif/esp-idf!20406
2022-10-10 17:25:25 +08:00