connect_le is failing for autoconnect 92/188792/1 accepted/tizen/5.0/unified/20181102.022516 accepted/tizen/unified/20181001.092613 submit/tizen/20180928.032653 submit/tizen/20180928.052011 submit/tizen_5.0/20181101.000005
authorAbhishek Chandra <abhishek.ch@samsung.com>
Mon, 10 Sep 2018 09:01:51 +0000 (14:31 +0530)
committerAbhishek Chandra <abhishek.ch@samsung.com>
Mon, 10 Sep 2018 09:03:50 +0000 (14:33 +0530)
[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>
src/device.c

index 1a9181c..ea880e9 100644 (file)
@@ -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);