diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-07-14 14:13:47 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-07-14 14:13:47 -0400 |
commit | e4e8e37c42bdaaefcb84eeaef0dc1bc3f696f8f6 (patch) | |
tree | 7909e7f16b314ac0e2f68305ba38ebe7840d1951 /net/bluetooth/hci_conn.c | |
parent | a8746417e864da1ed36dd2432a399fbeb843c2a0 (diff) |
[Bluetooth] Make use of the default link policy settings
The Bluetooth specification supports the default link policy settings
on a per host controller basis. For every new connection the link
manager would then use these settings. It is better to use this instead
of bothering the controller on every connection setup to overwrite the
default settings.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 69c64ce054fb..6175ce841e9e 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -65,6 +65,8 @@ void hci_acl_connect(struct hci_conn *conn) | |||
65 | 65 | ||
66 | conn->attempt++; | 66 | conn->attempt++; |
67 | 67 | ||
68 | conn->link_policy = hdev->link_policy; | ||
69 | |||
68 | memset(&cp, 0, sizeof(cp)); | 70 | memset(&cp, 0, sizeof(cp)); |
69 | bacpy(&cp.bdaddr, &conn->dst); | 71 | bacpy(&cp.bdaddr, &conn->dst); |
70 | cp.pscan_rep_mode = 0x02; | 72 | cp.pscan_rep_mode = 0x02; |