From: Johan Hedberg Date: Sat, 19 Feb 2011 15:06:01 +0000 (-0300) Subject: Bluetooth: Fix inititial value for remote authentication requirements X-Git-Tag: v3.0~349^2~16^2~578^2~79^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a958355699dd90ba69951bdf55dda00e3e97222c;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Gustavo F. Padovan --- 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;