Ever since discovery can be canceled connect_id is now set while
discovering so it needs to be reset on the callback otherwise it will
cause .connect to always return -EBUSY until .disconnect is called.
git repo link:
http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=
a1a01a6f95fb3715dd7aa27af3543b6cb0a62da7
Change-Id: Ibd5af39c1346536f11a45390d3f262b2fcc15fa1
struct sink *sink = user_data;
int id, perr;
+ sink->connect_id = 0;
+
if (err) {
avdtp_unref(sink->session);
sink->session = NULL;
struct source *source = user_data;
int id, perr;
+ source->connect_id = 0;
+
if (err) {
avdtp_unref(source->session);
source->session = NULL;