From 138be70b2c792d55d415eed23a3a2488d9005527 Mon Sep 17 00:00:00 2001 From: Abhishek Chandra Date: Mon, 10 Sep 2018 14:31:51 +0530 Subject: [PATCH] connect_le is failing for autoconnect [Problem] connect_le api is failing when user set autoconnect as true . [Cause] when auto connect is true , device_set_auto_connect is called to set device autoconnect parametes and it is return back . device_connect_le call is not called in this case . [Fix] Removed the dbus_message_new_method_return . [Verification] verified by code review in upstream bluez code and also tested by using unit test in platform. Change-Id: I09e3d8e1e9169cb734419f9516ba39800ee309ee Signed-off-by: Abhishek Chandra --- src/device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/device.c b/src/device.c index 1a9181c..ea880e9 100644 --- a/src/device.c +++ b/src/device.c @@ -3538,8 +3538,6 @@ static DBusMessage *connect_le(DBusConnection *conn, DBusMessage *msg, DBG("Start BLE auto connection"); dev->disable_auto_connect = FALSE; device_set_auto_connect(dev, TRUE); - - return dbus_message_new_method_return(msg); } err = device_connect_le(dev); -- 2.7.4