Diff between 8819626440c8f06a98c0bc34c7521829cbe09456 and 2abdb94e81201017d97cf664345fa57b387ce311

Changed Files

File Additions Deletions Status
src/hcid.h +0 -6 modified
src/main.c +0 -11 modified
src/main.conf +0 -4 modified

Full Patch

diff --git a/src/hcid.h b/src/hcid.h
index 5752da9..3dfaf10 100644
--- a/src/hcid.h
+++ b/src/hcid.h
@@ -25,10 +25,8 @@
 
 struct main_opts {
 	char		host_name[40];
-	unsigned long	flags;
 	char		*name;
 	uint32_t	class;
-	uint16_t	pageto;
 	uint16_t	autoto;
 	uint32_t	discovto;
 	uint32_t	pairto;
@@ -44,10 +42,6 @@ struct main_opts {
 	uint16_t	did_version;
 };
 
-enum {
-	HCID_SET_PAGETO,
-};
-
 extern struct main_opts main_opts;
 
 gboolean plugin_init(const char *enable, const char *disable);
diff --git a/src/main.c b/src/main.c
index 7922222..01f5d22 100644
--- a/src/main.c
+++ b/src/main.c
@@ -71,7 +71,6 @@ static const char * const supported_options[] = {
 	"Class",
 	"DiscoverableTimeout",
 	"PairableTimeout",
-	"PageTimeout",
 	"AutoConnectTimeout",
 	"DeviceID",
 	"ReverseServiceDiscovery",
@@ -201,16 +200,6 @@ static void parse_config(GKeyFile *config)
 		main_opts.pairto = val;
 	}
 
-	val = g_key_file_get_integer(config, "General", "PageTimeout", &err);
-	if (err) {
-		DBG("%s", err->message);
-		g_clear_error(&err);
-	} else {
-		DBG("pageto=%d", val);
-		main_opts.pageto = val;
-		main_opts.flags |= 1 << HCID_SET_PAGETO;
-	}
-
 	val = g_key_file_get_integer(config, "General", "AutoConnectTimeout",
 									&err);
 	if (err) {
diff --git a/src/main.conf b/src/main.conf
index 8bb82f6..d605ef4 100644
--- a/src/main.conf
+++ b/src/main.conf
@@ -19,10 +19,6 @@ DiscoverableTimeout = 0
 # 0 = disable timer, i.e. stay pairable forever
 PairableTimeout = 0
 
-# Use some other page timeout than the controller default one
-# which is 16384 (10 seconds).
-PageTimeout = 8192
-
 # Automatic connection for bonded devices driven by platform/user events.
 # If a platform plugin uses this mechanism, automatic connections will be
 # enabled during the interval defined below. Initially, this feature