Commit Graph

20 Commits

Author SHA1 Message Date
huangyulong3 0cf1898d83 bluetooth: fix compilation errors
Fix various compilation errors across bluetooth framework, service,
and stack layers including:
- Add missing function declarations and header includes
- Fix type mismatches and implicit function declarations
- Add missing macro definitions in dfx headers
- Add stub implementation for hid device interface
- Fix list utility inline function issues

Signed-off-by: openvela <openvela@xiaomi.com>
2026-05-08 09:52:38 +08:00
liuxiang18 54f9f99502 PTS: add pts property for dynamic control disconnect or not when pair failed.
bug: v/71321

Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2026-04-27 23:14:52 +08:00
openvela-robot 9d0c825cbb Merge commit
Change-Id: If26995eebd18a82ac4cd827e6801458e57a6ead3
2026-04-27 23:14:50 +08:00
Kai Cheng 83de1cb8dd bluetooth: fix bt_adapter_set_debug_mode warning
Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
2026-04-20 14:52:51 +08:00
liuxiang18 bb834bba1e PTS: add pts property for dynamic control disconnect or not when pair failed.
Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2026-04-20 14:52:42 +08:00
zhongzhijie1 3fa65f3169 Add API for limited Discovery.
Signed-off-by: zhongzhijie1 <zhongzhijie1@xiaomi.com>
2026-04-20 14:52:42 +08:00
zhongzhijie1 05a15ee027 bluetooth: add whitelist with type API to support specific BLE address type.
Whitelist with type API allows adding a BLE address with a specified address type to the whitelist. Note that each address can only have one address type, and the stack will auto handle merging of address type operations.

New API:
    bt_status_t BTSYMBOLS(bt_adapter_le_add_whitelist_with_type)(bt_instance_t* ins, bt_address_t* addr, ble_addr_type_t type);

Signed-off-by: zhongzhijie1 <zhongzhijie1@xiaomi.com>
2026-04-20 14:52:11 +08:00
Lu Jia 295db704ae bluetooth: Fix compilation errors when calling Bluetooth in C++ files.
Root Cause: When a C++ file references a Bluetooth file, compilation errors occur due to the Bluetooth file using C++ keywords.

Signed-off-by: jialu <jialu@xiaomi.com>
2026-04-20 14:52:07 +08:00
zhongzhijie1 2ed8f967d8 [bug fix] When bt off is executed, disconnect all acl connections.
Originally, only the "adapter_disable" function was executed. An additional step was added before that, which disconnects all ACL connections. A timer was also started to wait for the "disconnect" event for 2 seconds, followed by cleaning up profile resources (by following the normal disable procedure).

Signed-off-by: zhongzhijie1 <zhongzhijie1@xiaomi.com>
2026-04-20 14:52:04 +08:00
chengkai 2fe24e4d53 bluetooth: cleanup autosniff codes
dependson:odm_591330 odm_591301 odm_591299 odm_591292 odm_591291 odm_591289

Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-04-20 14:51:03 +08:00
Haishen Zhang 19bc307ac2 Clang-format: Update format of all files based on new .clang-format
1. Update format of all files based on new .clang-format

Signed-off-by: Haishen Zhang <zhanghaishen@xiaomi.com>
2026-04-20 14:50:50 +08:00
chengkai 9014f5ab4b bluetooth: fix strncpy stringop-truncation warnnings
rootacuse: fix warning: 'strncpy' specified bound XX equals destination
size [-Wstringop-truncation].

Signed-off-by: chengkai <chengkai@xiaomi.com>
Signed-off-by: gaozihao <gaozihao@xiaomi.com>
2026-04-20 14:50:38 +08:00
fangzhenwei 6e6e279ab1 bluetooth framework re-implement adv & scan
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 14:50:23 +08:00
fangzhenwei 24ac7f15c0 bluetooth framework re-implement base
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 14:50:23 +08:00
gaozihao 5ab4dc6f8c Bluetooth: Code formatted without head file sorted.
Signed-off-by: gaozihao <gaozihao@xiaomi.com>
2026-04-20 14:50:21 +08:00
fangzhenwei 467af2ca17 add set scan params/afh/auto sniff api
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 14:50:09 +08:00
fangzhenwei 348cb134dd Interface optimization
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 14:50:08 +08:00
chao an 08eef4e8fe service/socket: add lightweight socket ipc layer
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 14:50:05 +08:00
wangshuaiqi5 ec5d5e0c09 leaudio: mcpc adapt mediasession interface
Signed-off-by: wangshuaiqi5 <wangshuaiqi5@xiaomi.com>
2026-04-20 14:49:56 +08:00
fangzhenwei a493f47581 bluetooth framework re-implement base
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 14:49:51 +08:00