summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko.news@gmail.com>2009-09-03 12:34:19 +0300
committerNick Pelly <npelly@google.com>2009-10-07 03:38:10 -0700
commitf6e195a306555420312a8b39c9d8e3b7bfdaad15 (patch)
tree72b9e6a32650b46441763a997d9832c646ae1756 /net
parent16dc5b5c657852c88d3242a59200e7cabd8c5e55 (diff)
Bluetooth: Set general bonding security for ACL by default
This patch fixes double pairing issues with SSP. It was observed that when pairing with SSP bluez asks confirmation 2 times. http://www.spinics.net/lists/linux-bluetooth/msg02473.html This also causes bug when we initiate SSP connection from Vista. The reason is because bluetoothd does not store link keys since ioctl HCIGETAUTHINFO returns 0. Setting default general bonding fixes these issues. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_conn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 93517ea570cb..055ac5723a35 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -213,6 +213,7 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst)
conn->type = type;
conn->mode = HCI_CM_ACTIVE;
conn->state = BT_OPEN;
+ conn->auth_type = HCI_AT_GENERAL_BONDING;
conn->power_save = 1;