Commit Graph

181 Commits

Author SHA1 Message Date
chenjianhua
f986abd482 bluedroid: support ble privacy by controller 2023-02-14 11:13:56 +08:00
Jin Cheng
123b6f132b Fixed build errors when sniff subrating is enabled. 2023-02-13 17:27:24 +08:00
Jiang Jiang Jian
f46b03fd91 Merge branch 'bugfix/a2dp_error_code_v4.4' into 'release/v4.4'
bt:Fixed the use of invalid configuration when the peer device configures the stream, and returned an incorrect error code(v4.4)

See merge request espressif/esp-idf!21623
2023-02-03 13:51:10 +08:00
Jiang Jiang Jian
b818abb0d7 Merge branch 'bugfix/fix_some_ble_bugs_by_cjh_v4.4' into 'release/v4.4'
Fixed some BLE bugs (backport v4.4)

See merge request espressif/esp-idf!21691
2023-02-03 13:50:12 +08:00
Jiang Jiang Jian
202e1c1fb8 Merge branch 'feature/report_acl_conn_cmp_stat_to_app_v4.4' into 'release/v4.4'
feature/report ACL link related events to application (v4.4)

See merge request espressif/esp-idf!21525
2023-02-03 13:49:59 +08:00
jincheng
48212875f8 Added reporting for ACL link related events to application 2023-01-04 11:48:51 +08:00
chenjianhua
f44f3d13bc bluedroid: fix ble connection update with same params 2022-12-19 19:10:26 +08:00
chenjianhua
8cf14e42ba bluedroid: fix encrypt keysize of GATT characteristic permission 2022-12-19 17:42:08 +08:00
chenjianhua
0cb30a3da0 bluedroid: correct the length of att read by type pdu 2022-12-19 17:41:45 +08:00
xiongweichao
d1ce1f9586 bt:Fixed the use of invalid configuration when the peer device configures the stream, and returned an incorrect error code 2022-12-15 17:01:32 +08:00
Jin Cheng
efcef1a400 correct the SR_mode selection when konw nothing about Peripheral 2022-12-09 10:28:06 +08:00
xiongweichao
9ec06ba4ac bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails 2022-12-05 20:48:04 +08:00
zwj
80078b6192 Fixed errors reported by CI clang_tidy_check 2022-11-17 03:46:02 +00:00
Jin Cheng
07518cf467 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:48:13 +08:00
Jiang Jiang Jian
9e9f0592f8 Merge branch 'bugfix/fix_esp32_esp32c3_some_bugs' into 'release/v4.4'
Fixed BLE lld_per_adv.c line 401 assert on ESP32C3 and ESP32S3 (backport v4.4)

See merge request espressif/esp-idf!20757
2022-11-09 17:52:42 +08:00
zwj
290a6c8ade allow bluedroid host to report adv_ind separately 2022-10-24 19:28:23 +08:00
chenjianhua
bec6de98c4 fix ble adv tx power map 2022-10-09 16:27:06 +08:00
chenjianhua
38d1250788 bluedroid: fix ble rpa generate and update by host 2022-10-09 16:25:17 +08:00
chenjianhua
cfc85ac1c6 Revert "component/bt: add local irk to controller"
This reverts commit 95c35288bc.
2022-10-09 16:23:24 +08:00
chenjianhua
f943f37927 Revert "Fixed ESP32 BLE can't resolve the peer address when enable white list"
This reverts commit 1cc0f6aac5.
2022-10-09 16:16:59 +08:00
cjin
403bff2a2b fix err using rpa for confirmation calculation 2022-09-27 19:32:26 +08:00
cjin
b063151c4b fix on data len change cmd malfunction 2022-09-27 19:32:11 +08:00
zwj
358a03e844 Fixed extend adv tx power range error 2022-09-27 19:30:06 +08:00
Wang Meng Yang
224871784b Merge branch 'bugfix/fix_ble_get_cur_pkt_num_crash_sometimes_when_bluetooth_is_disconnecting_v4.4' into 'release/v4.4'
Fixed calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting (backport v4.4)

See merge request espressif/esp-idf!20042
2022-09-09 21:05:52 +08:00
satish.solanke
a44071ab14 updating doc for the issue doc_3566 2022-09-09 10:40:44 +05:30
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
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
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
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
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
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
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
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
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
zhiweijian@espressif.com
363b8b2973 Fixed bluedroid host memory overflow 2022-07-06 21:21:30 +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
keymoon
22cf1d0d58 assign value to uninitialized bt_addr field 2022-05-29 18:08:56 -07:00
xiongweichao
1ce01c6f76 Fix CI failure when disable bluetooth debug log 2022-04-26 11:28:01 +08:00
xiongweichao
3e494ec5fd Add some bluetooth debug log 2022-04-16 07:14:51 +00:00