OSDN Git Service

Bluetooth: Set authentication requirement before requesting it
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 12 Feb 2009 15:23:03 +0000 (16:23 +0100)
committerNick Pelly <npelly@google.com>
Tue, 7 Apr 2009 00:39:30 +0000 (17:39 -0700)
commitc79140f976f5f441053e984b8756358a9fc37e75
tree5910b1661f7a778e3febfb1f666f7d59b21c9463
parent0f660f4ad5973854096cee31f30d54c75187ec53
Bluetooth: Set authentication requirement before requesting it

The authentication requirement got only updated when the security level
increased. This is a wrong behavior. The authentication requirement is
read by the Bluetooth daemon to make proper decisions when handling the
IO capabilities exchange. So set the value that is currently expected by
the higher layers like L2CAP and RFCOMM.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_conn.c