Diff between 1ea2ce1c0ab8504c5977c2f009c84c6eb931d9f0 and 8e06bb2e87ddadfc7a2d01a80215d86bf84f9f19

Changed Files

File Additions Deletions Status
profiles/network/server.c +3 -0 modified

Full Patch

diff --git a/profiles/network/server.c b/profiles/network/server.c
index 8ae608c..1703f38 100644
--- a/profiles/network/server.c
+++ b/profiles/network/server.c
@@ -57,6 +57,7 @@
 /* Pending Authorization */
 struct network_session {
 	bdaddr_t	dst;		/* Remote Bluetooth Address */
+	char		dev[16];	/* Interface name */
 	GIOChannel	*io;		/* Pending connect channel */
 	guint		watch;		/* BNEP socket watch */
 };
@@ -272,6 +273,8 @@ static int server_connadd(struct network_server *ns,
 
 	bnep_if_up(devname);
 
+	strncpy(session->dev, devname, sizeof(devname));
+
 	ns->sessions = g_slist_append(ns->sessions, session);
 
 	return 0;