diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index ff384cd..4001ea0 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
return TRUE;
}
+static void reverse_discover(struct avdtp *session, GSList *seps, int err,
+ void *user_data)
+{
+ DBG("err %d", err);
+}
+
static gboolean endpoint_setconf_ind(struct avdtp *session,
struct avdtp_local_sep *sep,
struct avdtp_stream *stream,
setup_ref(setup),
endpoint_setconf_cb,
a2dp_sep->user_data);
- if (ret == 0)
+ if (ret == 0) {
+ /* Attempt to reverve discover if there are no remote
+ * SEPs.
+ */
+ if (queue_isempty(setup->chan->seps))
+ a2dp_discover(session, reverse_discover, NULL);
return TRUE;
+ }
setup_unref(setup);
setup->err = g_new(struct avdtp_error, 1);