47 lines
1.3 KiB
Diff
47 lines
1.3 KiB
Diff
From 27decb00804002e91c1dd8c8a3b97eec4d3d3852 Mon Sep 17 00:00:00 2001
|
|
From: Xueling Li <[email protected]>
|
|
Date: Thu, 3 Jun 2021 10:32:38 +0000
|
|
Subject: [PATCH 1/4] bluez: remove bonded check in hog accept
|
|
|
|
PD#SWPL-51227
|
|
|
|
Problem:
|
|
after pair success, BT RC can not work
|
|
|
|
Solution:
|
|
Before HOGP creates a connection, the device is not bonded state;removes the determination of the state of the bond device;
|
|
|
|
Verify:
|
|
BT RC can work normally
|
|
|
|
Signed-off-by: Xueling Li <[email protected]>
|
|
Change-Id: I5a2586328505078ae907064c746c0809d4f5524e
|
|
---
|
|
profiles/input/hog.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/profiles/input/hog.c b/profiles/input/hog.c
|
|
index d50b823..7f3557f 100644
|
|
--- a/profiles/input/hog.c
|
|
+++ b/profiles/input/hog.c
|
|
@@ -182,6 +182,7 @@ static int hog_accept(struct btd_service *service)
|
|
}
|
|
|
|
/* HOGP 1.0 Section 6.1 requires bonding */
|
|
+ /*
|
|
if (!device_is_bonded(device, btd_device_get_bdaddr_type(device))) {
|
|
struct bt_gatt_client *client;
|
|
|
|
@@ -192,7 +193,7 @@ static int hog_accept(struct btd_service *service)
|
|
if (!bt_gatt_client_set_security(client,
|
|
BT_ATT_SECURITY_MEDIUM))
|
|
return -ECONNREFUSED;
|
|
- }
|
|
+ }*/
|
|
|
|
/* TODO: Replace GAttrib with bt_gatt_client */
|
|
bt_hog_attach(dev->hog, attrib);
|
|
--
|
|
2.25.1
|
|
|