Commit Graph

105 Commits

Author SHA1 Message Date
chenjianhua
7083222a2f fix(bt/bluedroid): Fix address check when using NRPA as random device address 2023-07-30 19:53:16 +08:00
Zhang Hai Peng
2c3454ea8b Merge branch 'bugfix/set_addr_resolution_enable_while_advertising' into 'master'
Bugfix/Fix bug with address resolution enabling during non-connected activities

See merge request espressif/esp-idf!24923
2023-07-26 10:36:41 +08:00
zhanghaipeng
9a9ce20e41 fix(bt): Fix bug with address resolution enabling during non-connected activities 2023-07-25 21:53:04 +08:00
zhanghaipeng
f83664929a fix(bt): Fix ble periodic advertising data length 0 error
- Fixed issues about data length 0 when set ext adv data,ext scan rsp data and periodic adv data
2023-07-18 21:33:56 +08:00
chenjianhua
b87f96e115 bluedroid: fix ble ext adv rand addr setting for NRPA 2023-05-06 15:26:45 +08:00
chenjianhua
7593466dc6 bluedroid: fix ble adv data construct for device name 2023-05-06 15:26:45 +08:00
Chen Jian Hua
b2906d412d Merge branch 'feature/support_periodic_adv_sync_trans' into 'master'
Bluedroid: add periodic adv sync transfer API and EVT

See merge request espressif/esp-idf!22146
2023-04-27 14:19:43 +08:00
zwj
7d1e7d2766 Fixed no error report when own address type is rpa_random and no random address setting 2023-04-23 16:15:39 +08:00
chenjianhua
3a7dea67eb bluedroid: report status after clearing the BLE white list 2023-04-10 12:12:32 +08:00
Jin Cheng
a7a2e5d407 fixed the crash of LoadProhibited caused by taht
the nodes are deleted during the traversal of the linked list
2023-04-06 14:13:05 +08:00
chenjianhua
7bbfd28d44 bluedroid: fix adv and scan state conflict 2023-03-09 16:36:54 +08:00
Jin Cheng
eac73d8f58 Fixed build errors when sniff subrating is enabled. 2023-02-11 08:29:09 +00:00
chenjianhua
0976a1d7f6 bluedroid: add periodic adv sync transfer API and EVT 2023-01-30 14:32:04 +08:00
chenjianhua
175be1c42c bluedroid: support ble privacy by controller 2023-01-10 18:50:11 +08:00
Jin Cheng
2e9a180f43 Fixed crash caused by accessing nullptr in btm_acl_disconnected 2023-01-04 11:47:05 +08:00
chenjianhua
2afe5cdc76 bluedroid: add config for GAP service and periodic adv sync transfer 2022-12-09 13:28:31 +08:00
chenjianhua
fa06476806 bluedroid: add config for robust caching and RPA timeout 2022-12-09 13:28:31 +08:00
chenjianhua
4a487a6a5c bluedroid: support periodic advertising sync transfer cmd 2022-12-09 13:28:31 +08:00
chenjianhua
2048322429 bluedroid: support oob pairing for smp secure connection 2022-12-09 13:28:31 +08:00
jincheng
228bf596dc Added reporting for ACL link related events to application 2022-12-07 02:33:55 +00:00
Alexey Gerenkov
47c2c13de5 build: Adds support for universal Clang toolchain 2022-11-23 13:25:16 +03:00
zwj
39c03e0ce0 Fixed errors reported by CI clang_tidy_check 2022-11-16 15:58:31 +08:00
Jin Cheng
042fd5f895 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-10-31 11:08:15 +00:00
Jin Cheng
36d8e0b9ad Revert "fixed the issue iOS devices cannot initiate connection"
This reverts commit da44fc9cbe.
2022-10-20 06:17:33 +00:00
zwj
01faa7b664 allow bluedroid host to report adv_ind separately 2022-10-08 14:49:36 +08:00
Jin Cheng
da44fc9cbe 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-23 17:58:39 +08:00
cjin
42a07cf16b fix err using rpa for confirmation calculation 2022-09-21 12:34:41 +00:00
cjin
b345e89b4a fix on data len change cmd malfunction 2022-09-21 12:34:41 +00:00
chenjianhua
8598610ccd bluedroid: fix ble rpa generate and update by host 2022-09-16 16:54:58 +08:00
chenjianhua
0067c28013 Revert "component/bt: add local irk to controller"
This reverts commit 95c35288bc.
2022-08-19 11:03:15 +08:00
chenjianhua
eaa9897386 Revert "Fixed ESP32 BLE can't resolve the peer address when enable white list"
This reverts commit 1cc0f6aac5.
2022-08-19 11:03:15 +08:00
wangmengyang
f402778320 component/bt: consider to handle HCI LE Direct Advertising Report 2022-08-02 17:40:00 +08:00
wangmengyang
85fc8321c8 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-02 17:37:24 +08:00
wangmengyang
5f074e1336 component/bt: fix adv report flow control logic, give ADV report credits every 10 packets 2022-08-02 14:14:07 +08:00
wangmengyang
0a1fa3e204 component/bt: add simple ADV flow control mechanism -- drop the packets when the adv report queues are considered full 2022-08-02 14:14:07 +08:00
Karl Wang
a075aa564f component/bt: use the OSI utility "pkt_queue" to store ADV report packet in btu layer 2022-08-02 14:14:07 +08:00
weitianhua
e51df179ad 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 11:37:46 +08:00
keymoon
3027aa84be
assign value to uninitialized bt_addr field 2022-05-27 01:07:06 +09:00
Anton Maklakov
9a5f0f6c53 bluedroid: fix argument type to correct narrow one 2022-05-13 06:55:22 +00:00
Anton Maklakov
29b2beffc0 bluedroid: fix type for passing argument in function 2022-05-13 06:55:22 +00:00
Anton Maklakov
87bf3260dd bluedroid: fix argument type in functions 2022-05-13 06:55:22 +00:00
“YangZhao”
8d48a56249 There is an issue that if the the btm_cb.p_sec_dev_rec_list is full,but at the same
time we can't find old device to be replaced,then this can cause crash. So we need
to change the way to malloc the new device or replace the old in the list.
2021-12-30 15:50:07 +08:00
xiewenxiang
04328cf384 component/bt: fix periodic adv parameters detection issue 2021-12-28 11:29:41 +08:00
xiewenxiang
132875a6eb components/bt: Support low duty cycle directed advertising 2021-12-13 17:07:23 +08:00
baohongde
c138e47f45 components/bt: Update licenses 2021-12-08 10:59:06 +08:00
“YangZhao”
12ec4866b8 Fix the high-impact issues from the code analysis report from customer.
For the CID10564,10384,10280,10098,10038,The memory was released in other place.
For the CID10365,it release the memory in the function when sent successfully.
For the CID10268,10011, we need not change the code.
2021-11-22 17:38:02 +08:00
xiongweichao
5152b33385 Dereference null return value 2021-11-18 19:47:09 +08:00
xiongweichao
752b1976c0 Dereference after null check 2021-11-18 19:47:07 +08:00
xiongweichao
101ad32110 Dereference before null check 2021-11-18 19:38:48 +08:00
xiongweichao
564f9e8f68 Logically dead code 2021-11-18 19:38:48 +08:00