diff options
author | Alain Michaud <alainm@chromium.org> | 2020-06-15 14:52:52 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-06-17 21:39:04 -0700 |
commit | 5ad9a639cbc4447861895f2a80c2a8d0a388a74c (patch) | |
tree | bc63de13c710bc4292fd3b06f1b8082f97cb5658 /src/main.c | |
parent | 0a10b4f933ef1e07de6cfa65766f727812ca59d7 (diff) | |
download | bluez-5ad9a639cbc4447861895f2a80c2a8d0a388a74c.tar.gz |
main: Add configurable le autoconnect timeout value
This patch adds support for a configurable le autoconnect timer.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 75ea27f40..72add3701 100644 --- a/src/main.c +++ b/src/main.c @@ -120,6 +120,7 @@ static const char *controller_options[] = { "LEMaxConnectionInterval", "LEConnectionLatency", "LEConnectionSupervisionTimeout", + "LEAutoconnecttimeout", NULL }; @@ -410,6 +411,10 @@ static void parse_controller_config(GKeyFile *config) &main_opts.default_params.le_scan_win_connect, 0x0004, 0x4000}, + { "LEAutoconnecttimeout", + &main_opts.default_params.le_autoconnect_timeout, + 0x0001, + 0x4000}, }; uint16_t i; |