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)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:14 +0000 (11:59 -0700)
commit62c5f52fdfcfc33134793c46a054c241736113f4
tree8fa615fbd3d0db8be4235c1420cf2e15fe588bc8
parent45e600fedef0ca2d9b5b5a09772f9e7a9d74d3b6
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