Diff between 41b9a011afdd2cb78db214aeb502a418e31fae0a and fb43ba3017d56d5c6847a6958f4b0d45f1ae5fcf

Changed Files

File Additions Deletions Status
profiles/network/common.c +0 -28 modified
profiles/network/common.h +0 -1 modified

Full Patch

diff --git a/profiles/network/common.c b/profiles/network/common.c
index 5a36170..8589a3e 100644
--- a/profiles/network/common.c
+++ b/profiles/network/common.c
@@ -115,34 +115,6 @@ int bnep_kill_connection(const bdaddr_t *dst)
 	return 0;
 }
 
-int bnep_kill_all_connections(void)
-{
-	struct bnep_connlist_req req;
-	struct bnep_conninfo ci[7];
-	unsigned int i;
-	int err;
-
-	memset(&req, 0, sizeof(req));
-	req.cnum = 7;
-	req.ci   = ci;
-	if (ioctl(ctl, BNEPGETCONNLIST, &req)) {
-		err = -errno;
-		error("Failed to get connection list: %s (%d)",
-						strerror(-err), -err);
-		return err;
-	}
-
-	for (i = 0; i < req.cnum; i++) {
-		struct bnep_conndel_req del;
-
-		memset(&del, 0, sizeof(del));
-		memcpy(del.dst, ci[i].dst, ETH_ALEN);
-		del.flags = 0;
-		ioctl(ctl, BNEPCONNDEL, &del);
-	}
-	return 0;
-}
-
 int bnep_connadd(int sk, uint16_t role, char *dev)
 {
 	struct bnep_connadd_req req;
diff --git a/profiles/network/common.h b/profiles/network/common.h
index 682dab6..ca357c4 100644
--- a/profiles/network/common.h
+++ b/profiles/network/common.h
@@ -28,7 +28,6 @@ const char *bnep_uuid(uint16_t id);
 const char *bnep_name(uint16_t id);
 
 int bnep_kill_connection(const bdaddr_t *dst);
-int bnep_kill_all_connections(void);
 
 int bnep_connadd(int sk, uint16_t role, char *dev);
 int bnep_if_up(const char *devname);