Commit 93f19c9fc8c98bb6d2e9825115989603ffd5cd1f

Authored by Andrei Emeltchenko
Committed by Marcel Holtmann
1 parent d01032e4fd

Bluetooth: Set general bonding security for ACL by default

This patch fixes double pairing issues with Secure Simple
Paring support. It was observed that when pairing with SSP
enabled, that the confirmation will be asked twice.

http://www.spinics.net/lists/linux-bluetooth/msg02473.html

This also causes bug when initiating SSP connection from
Windows Vista.

The reason is because bluetoothd does not store link keys
since HCIGETAUTHINFO returns 0. Setting default to general
bonding fixes these issues.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

net/bluetooth/hci_conn.c
... ... @@ -211,6 +211,7 @@
211 211 conn->type = type;
212 212 conn->mode = HCI_CM_ACTIVE;
213 213 conn->state = BT_OPEN;
  214 + conn->auth_type = HCI_AT_GENERAL_BONDING;
214 215  
215 216 conn->power_save = 1;
216 217 conn->disc_timeout = HCI_DISCONN_TIMEOUT;