[PATCH 1/1] profiles/network: look for GN servers to accept incoming connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When asking confirmation to accept an incoming connection, we must
try to get both NAP and GN servers from the adapter.

This fixes the PAN GN Master role, allowing devices to connect to it.
---
 profiles/network/server.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/profiles/network/server.c b/profiles/network/server.c
index 1bff9f8..843472f 100644
--- a/profiles/network/server.c
+++ b/profiles/network/server.c
@@ -455,8 +455,13 @@ static void confirm_event(GIOChannel *chan, gpointer user_data)
 	}
 
 	ns = find_server(na->servers, BNEP_SVC_NAP);
-	if (!ns || !ns->record_id || !ns->bridge)
-		goto drop;
+	if (!ns || !ns->record_id || !ns->bridge) {
+
+		ns = find_server(na->servers, BNEP_SVC_GN);
+		if (!ns || !ns->record_id || !ns->bridge)
+			goto drop;
+
+	}
 
 	na->setup = g_new0(struct network_session, 1);
 	bacpy(&na->setup->dst, &dst);
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux