aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-02-19 12:06:01 -0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-21 17:22:44 -0300
commita958355699dd90ba69951bdf55dda00e3e97222c (patch)
treec491db5dfccbd758e946f59940987e6daf625c48 /net/bluetooth/hci_conn.c
parent2a61169209c72317d4933f8d22f749a6a61a3d36 (diff)
downloadkernel_samsung_smdk4412-a958355699dd90ba69951bdf55dda00e3e97222c.zip
kernel_samsung_smdk4412-a958355699dd90ba69951bdf55dda00e3e97222c.tar.gz
kernel_samsung_smdk4412-a958355699dd90ba69951bdf55dda00e3e97222c.tar.bz2
Bluetooth: Fix inititial value for remote authentication requirements
The remote authentication requirements for conections need to be initialized to 0xff (unknown) since it is possible that we receive a IO Capability Request before we have received information about the remote requirements. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-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 a050a69..6d8b988 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -286,6 +286,7 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst)
conn->state = BT_OPEN;
conn->auth_type = HCI_AT_GENERAL_BONDING;
conn->io_capability = hdev->io_capability;
+ conn->remote_auth = 0xff;
conn->power_save = 1;
conn->disc_timeout = HCI_DISCONN_TIMEOUT;