Skip to contentSkip to conversation

android/hid: Fix passing wrong adapter address to bt_io_listen

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Nov 5, 2013 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 android/hid: Fix passing wrong adapter address to bt_io_listen

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
android/hid.c +2 -2
index c0c9aeb..8f5ba88 100644
@@ -749,7 +749,7 @@ bool bt_hid_register(GIOChannel *io, const bdaddr_t *addr)
 	notification_io = g_io_channel_ref(io);
 
 	ctrl_io = bt_io_listen(connect_cb, NULL, NULL, NULL, &err,
-				BT_IO_OPT_SOURCE_BDADDR, &src,
+				BT_IO_OPT_SOURCE_BDADDR, src,
 				BT_IO_OPT_PSM, L2CAP_PSM_HIDP_CTRL,
 				BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_LOW,
 				BT_IO_OPT_INVALID);
@@ -760,7 +760,7 @@ bool bt_hid_register(GIOChannel *io, const bdaddr_t *addr)
 	}
 
 	intr_io = bt_io_listen(connect_cb, NULL, NULL, NULL, &err,
-				BT_IO_OPT_SOURCE_BDADDR, &src,
+				BT_IO_OPT_SOURCE_BDADDR, src,
 				BT_IO_OPT_PSM, L2CAP_PSM_HIDP_INTR,
 				BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_LOW,
 				BT_IO_OPT_INVALID);
Signature · 1 line
1.8.3.1
#1 lore raw

Hi Luiz,

Quoted 3 lines · Luiz Augusto von Dentz
---
 android/hid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied. Thanks.

Johan