Commit Graph

9 Commits

Author SHA1 Message Date
chengkai 1309b694c3 bluetooth: add spp insecure feature
bug: v/13885

Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-04-27 23:14:54 +08:00
chengkai 0f09cd64e9 bluetooth: adapt spp socket api
bug: v/47179

Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-04-27 23:14:51 +08:00
openvela-robot 9d0c825cbb Merge commit
Change-Id: If26995eebd18a82ac4cd827e6801458e57a6ead3
2026-04-27 23:14:50 +08:00
chengkai 70c6e72aff bluetooth: add spp insecure feature
Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-04-20 14:52:12 +08:00
chengkai 2f0b5ef837 bluetooth: adapt spp socket api
Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-04-20 14:51:20 +08:00
fangzhenwei 4bb2f5ead5 spp: new api 'bt_spp_register_app_ext' with configurable port type parameter
Reason: usually spp uses pty as a cross-process serial data transmission channel on velaos, in the case of cross-core,
in order to maintain the universality of the solution and dynamic port support, we use rpmsgfs_mount to resolve this problem,
run this command 'mount -t rpmsgfs -o cpu=cp,fs=/dev/pts /dev/cp/pts' in rc.sysinit.ap, mount cp core's 'dev/pts' folder to
ap core's 'dev/cp/pts' folder, access 'dev/pts/x' device on ap core directly to resolve pty cross-core communication.

This solution power is abnormal on some device, pty dev as a device type on cp, but pty's property changed after mounting,
access pty as fsnode on ap core, standard fs don't support 'poll', poll pty fd will cause busyloop on ap core, because fs not support
poll and rpmsg poll is not implemented, kernel just poll_notify POLL_IN to user-process, ap core can't enter lowpower mode.

Fix: use rpmsg_uart replace rpmsgfs way on cross-core case, add new spp api bt_spp_register_app_ext and new type SPP_PORT_TYPE_RPMSG_UART,
user need tell spp server which port type, rpmsg_uart type is fixed at present and don't support dynamic port.

Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 14:51:16 +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
fangzhenwei d4e57ac58e ipc: manager/adv/scan/spp/pan socket ipc impl
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 14:50:05 +08:00
fangzhenwei 8b8e70aa22 bluetooth framework re-implement spp
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2026-04-20 14:49:52 +08:00