--- profiles/network/server.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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; -- 1.7.8.6 -- 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