Bluetooth: Fix auth_complete_evt for legacy units
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Tue, 31 May 2011 13:49:25 +0000 (15:49 +0200)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:10:18 +0000 (12:10 -0800)
commit7759238dbe2c337eae19718b3a4ccc1da9d8bf0a
tree304f8776953d386fc927ed8dd2973bdbafebf86a
parent0781b86b670b5eafcf611e62ac1783e5e2fd1183
Bluetooth: Fix auth_complete_evt for legacy units

Legacy devices don't re-authenticate the link properly if a link key
already exists.  Thus, don't update sec_level for this case even if
hci_auth_complete_evt indicates success. Otherwise the sec_level will
not reflect a real security on the link.

Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c