summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Chandra <abhishek.ch@samsung.com>2018-09-10 14:31:51 +0530
committerAbhishek Chandra <abhishek.ch@samsung.com>2018-09-10 14:33:50 +0530
commit138be70b2c792d55d415eed23a3a2488d9005527 (patch)
tree6430ea4e8f0f962eaa697f15d3c8245765c4c5b6
parent24953b69d833e21d3b98d6e390764e6fa92b72e0 (diff)
downloadbluez-138be70b2c792d55d415eed23a3a2488d9005527.tar.gz
bluez-138be70b2c792d55d415eed23a3a2488d9005527.tar.bz2
bluez-138be70b2c792d55d415eed23a3a2488d9005527.zip
[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 <abhishek.ch@samsung.com>
-rw-r--r--src/device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index 1a9181c1..ea880e9a 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);