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>
conn->type = type;
conn->mode = HCI_CM_ACTIVE;
conn->state = BT_OPEN;
+ conn->auth_type = HCI_AT_GENERAL_BONDING;
conn->power_save = 1;