linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/6] core: Fix connection order of Device.Connect
@ 2012-11-21 12:10 Luiz Augusto von Dentz
  2012-11-21 12:10 ` [PATCH BlueZ 2/6] audio: Split A2DP into two btd_profile Luiz Augusto von Dentz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Luiz Augusto von Dentz @ 2012-11-21 12:10 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

We should with higher priority first.
---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/device.c b/src/device.c
index 0053098..fd29a7f 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1299,7 +1299,7 @@ static gint profile_prio_cmp(gconstpointer a, gconstpointer b)
 {
 	const struct btd_profile *p1 = a, *p2 = b;
 
-	return p1->priority - p2->priority;
+	return p2->priority - p1->priority;
 }
 
 static DBusMessage *connect_profiles(struct btd_device *dev, DBusMessage *msg,
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-21 12:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-21 12:10 [PATCH BlueZ 1/6] core: Fix connection order of Device.Connect Luiz Augusto von Dentz
2012-11-21 12:10 ` [PATCH BlueZ 2/6] audio: Split A2DP into two btd_profile Luiz Augusto von Dentz
2012-11-21 12:10 ` [PATCH BlueZ 3/6] source: Add profile .connect and .disconnect Luiz Augusto von Dentz
2012-11-21 12:10 ` [PATCH BlueZ 4/6] sink: " Luiz Augusto von Dentz
2012-11-21 12:10 ` [PATCH BlueZ 5/6] control: Expose internal connection API Luiz Augusto von Dentz
2012-11-21 12:10 ` [PATCH BlueZ 6/6] control: Add profile .connect and .disconnect Luiz Augusto von Dentz
2012-11-21 12:37 ` [PATCH BlueZ 1/6] core: Fix connection order of Device.Connect Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).