Commit Graph

33 Commits

Author SHA1 Message Date
zhangyuan20 b591e0f409 CS: add cs service.
bug: v/80281

Rootcause: Add a CS service to manage CS.

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2026-03-02 12:07:27 +08:00
zhongzhijie1 5512e61919 implement get addrtype api
bug: v/84604

original return 0 default, now use adapter_get_le_remote_address_type

Signed-off-by: zhongzhijie1 <zhongzhijie1@xiaomi.com>
2026-02-26 15:49:37 +08:00
chengkai 0114d1c30a bluetooth: add spp insecure feature
bug: v/13885

Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-02-11 17:27:28 +08:00
chengkai 6e4d1c3380 bluetooth: add gatts_connect_bear api [1/2]
bug: v/51103

Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-01-14 14:28:28 +08:00
YuhengLi 8db9b23dca Android-Vela:add cind interface for android
bug: v/59050

Rootcause:When reconnect to the headset during a call, the headset will obtain the call status through the cind command. Since Vela does not have modem, the status will be error. So, get cind from Android.

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2026-01-07 14:11:18 +08:00
chejinxian1 977bb0838d L2CAP: Update stop listen function to include transport parameter
bug: v/70057

Rootcause: The PSM employed by L2CAP in LE and BR/EDR contexts are not identical concepts. The LE scenario utilises a simplified PSM, whereas the BR/EDR scenario employs the standard PSM. These differ fundamentally in their allocation methods and are not interoperable.

Consequently, the current implementation of listen and stop listen operations requires distinguishing between connection types. Add a new API `bt_l2cap_stop_listen_with_transport` to support stop listen on BR/EDR PSM. This modification will rectify the error where `bt_l2cap_stop_listen` fails to recognise connection types, whilst filtering operations specific to the BR/EDR type.

Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
2025-12-15 10:54:59 +08:00
Kai Cheng 73b5a6d862 bluetooth: fix bt_adapter_set_debug_mode warning
bug: v/76636

Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
2025-12-08 23:11:13 +08:00
chejinxian1 64d4df2bca L2CAP: Add function to stop listening on a specific PSM.
bug: v/57319

Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
2025-11-17 22:20:28 +08:00
chejinxian1 68ef63520d L2CAP: Refactor L2CAP API to support to multiple application and socket pipe.
bug: v/57319

Refactor L2CAP API to use handles instead of cookies for callback registration and management.

Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
2025-11-17 22:20:28 +08:00
Lu Jia 474067591a ipc: le scan async api
bug: v/62058

Signed-off-by: jialu <jialu@xiaomi.com>
2025-10-15 10:20:50 +08:00
zhongzhijie1 9e14193b3c [bug fix] When bt off is executed, disconnect all acl connections.
bug: v/43852

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>
2025-09-26 21:42:22 +08:00
liuxiang18 3f7b0c707c PTS: add pts property for dynamic control disconnect or not when pair failed.
bug: v/71321

Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2025-09-25 20:01:14 +08:00
zhongzhijie1 6302f4e2c3 Support the signed write function, which requires BT_SIGNING micro to open.
bug: v/69041

Signed-off-by: zhongzhijie1 <zhongzhijie1@xiaomi.com>
2025-09-25 20:01:14 +08:00
zhongzhijie1 42aeb49c23 Add API for limited Discovery.
bug: v/70809

Signed-off-by: zhongzhijie1 <zhongzhijie1@xiaomi.com>
2025-09-25 20:01:14 +08:00
liuxiang18 140f414f65 bluetooth: implement bt_device_set_bondable_le API to change bond mode.
bug: v/67335

Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2025-09-25 20:01:14 +08:00
liuxiang18 abb204078c bluetooth: implement bt_device_set_security_level API to change bond security level.
bug: v/67009

Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2025-09-25 20:01:14 +08:00
Kai Cheng 7b3c6fa5ec blueototh: add connection mgr config
bug: v/51584

add BLUETOOTH_CONNECTION_MANAGER config

Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
2025-09-25 15:29:53 +08:00
liyuheng f63df58228 Add new interface: hfp_hf_query_current_calls_with_callback.
bug: v/67238

Rootcause: Currently, when the bt_hfp_hf_query_current_calls interface receives a request, it retrieves the result from the state machine cache and returns it immediately. However, since the cache may not be updated in a timely manner, the returned data may not be the latest.

Signed-off-by: liyuheng <liyuheng@xiaomi.com>
2025-09-17 10:41:29 +08:00
zhangyuan20 0ac0044e05 Android-Vela:add cnum interface for android
bug: v/67447

Rootcause: Adapt the cnum interface to obtain the virtual call mobile phone number.

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-08-28 21:14:05 +08:00
Lu Jia 979b66f3bf bluetooth: Fix compilation errors when calling Bluetooth in C++ files.
bug: v/67883

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>
2025-08-07 15:57:53 +08:00
zhangyuan20 c726342078 zephyr-pts: add register notification interface for avrcp ct
bug: v/58789

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-06-12 10:45:11 +08:00
zhangyuan20 e52900eb16 zephyr-pts: add get playback state interface for avrcp ct
bug: v/58789

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-06-12 10:45:11 +08:00
zhangyuan20 ad343e7331 zephyr-pts: add get subunit info interface for avrcp ct
bug: v/58789

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-06-12 10:45:11 +08:00
zhangyuan20 114f7d188c zephyr-pts: add get unit info interface for avrcp ct
bug: v/58789

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-06-12 10:45:11 +08:00
zhangyuan20 8c3353e282 zephyr-pts: add send passthrough cmd for avrcp ct
bug: v/58789

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-06-12 10:45:11 +08:00
zhangyuan20 a555fb1198 Android-Vela: add clcc interface and callback
bug: v/60610

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-05-13 17:13:40 +08:00
liuxiang18 72143ef6bd bluetooth:connect/disconnect profile API
bug: v/50798

Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2025-05-12 19:58:51 +08:00
duqunbo e9d4f928ca BTsnoop: add btsnoop API
bug: v/42717

Signed-off-by: duqunbo <duqunbo@xiaomi.com>
2025-02-10 22:30:28 +08:00
chengkai 155a501a1e bluetooth: adapt spp socket api
bug: v/47179

Signed-off-by: chengkai <chengkai@xiaomi.com>
2025-02-10 17:56:41 +08:00
jialu 741a829251 HFP: Adding vendor specific AT command process for AG
bug: v/17775

In order to implement the PTT function of headphone control, it is necessary to add the process of AG send and receive vendor specific AT commands.

Signed-off-by: jialu <jialu@xiaomi.com>
2025-01-16 23:03:41 +08:00
zhangyuan20 090d7d3034 framework/avrcp: add metadata support for avrcp control in BT Service
bug: v/42362

Rootcause: Avrcp control lacks metadata interface, add get metadata interface and callback for avrcp control

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-01-03 18:07:52 +08:00
chejinxian1 dac351422b Bluetooth: Add API for supplying enhanced mode for application calling.
bug: v/43848

Rootcause: Due to the diversity of application scenarios, the API for invoking the Connection Enhanced Mode is provided for applications to call. Applications can enable or disable specific enhanced modes according to their own needs.

Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
2024-12-23 00:07:54 +08:00
openvela-robot cf07bea530 Merge commit
Change-Id: If26995eebd18a82ac4cd827e6801458e57a6ead3
2024-11-25 17:34:53 +08:00