diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-09-12 03:23:01 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-09-12 03:23:01 +0200 |
commit | e401b90fd8275104356d1d12fc91bafdbc803c0c (patch) | |
tree | f237a4bdd1bc0428216553121c94f1b9d9fcd540 /src/main.c | |
parent | 11cf1d6a0dbc66d0177852c514bad3737e1ee036 (diff) |
Set default link policy after the page timeout
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |