diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-02-19 10:06:01 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-21 15:22:44 -0500 |
commit | a958355699dd90ba69951bdf55dda00e3e97222c (patch) | |
tree | c491db5dfccbd758e946f59940987e6daf625c48 /net/bluetooth | |
parent | 2a61169209c72317d4933f8d22f749a6a61a3d36 (diff) |
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')
-rw-r--r-- | net/bluetooth/hci_conn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index a050a6984901..6d8b988d9ef6 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) | |||
286 | conn->state = BT_OPEN; | 286 | conn->state = BT_OPEN; |
287 | conn->auth_type = HCI_AT_GENERAL_BONDING; | 287 | conn->auth_type = HCI_AT_GENERAL_BONDING; |
288 | conn->io_capability = hdev->io_capability; | 288 | conn->io_capability = hdev->io_capability; |
289 | conn->remote_auth = 0xff; | ||
289 | 290 | ||
290 | conn->power_save = 1; | 291 | conn->power_save = 1; |
291 | conn->disc_timeout = HCI_DISCONN_TIMEOUT; | 292 | conn->disc_timeout = HCI_DISCONN_TIMEOUT; |