summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-09-12 03:23:01 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-09-12 03:23:01 +0200
commite401b90fd8275104356d1d12fc91bafdbc803c0c (patch)
treef237a4bdd1bc0428216553121c94f1b9d9fcd540 /src
parent11cf1d6a0dbc66d0177852c514bad3737e1ee036 (diff)
Set default link policy after the page timeout
Diffstat (limited to 'src')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 057634a4..93bc6bbb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -345,11 +345,6 @@ static void configure_device(int dev_id)
return;
}
- /* Set default link policy */
- policy = htobs(main_opts.link_policy);
- hci_send_cmd(dd, OGF_LINK_POLICY,
- OCF_WRITE_DEFAULT_LINK_POLICY, 2, &policy);
-
/* Set device name */
if ((main_opts.flags & (1 << HCID_SET_NAME)) && main_opts.name) {
change_local_name_cp cp;
@@ -391,6 +386,11 @@ static void configure_device(int dev_id)
hci_send_cmd(dd, OGF_HOST_CTL, OCF_WRITE_PAGE_TIMEOUT,
WRITE_PAGE_TIMEOUT_CP_SIZE, &cp);
}
+
+ /* Set default link policy */
+ policy = htobs(main_opts.link_policy);
+ hci_send_cmd(dd, OGF_LINK_POLICY,
+ OCF_WRITE_DEFAULT_LINK_POLICY, 2, &policy);
}
static void init_device(int dev_id)