]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
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)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 8 Jun 2011 19:58:18 +0000 (16:58 -0300)
commit19f8def031bfa50c579149b200bfeeb919727b27
tree8f1fded6804d6e5d1537938f29b5e2c6f71e19fe
parent3581508571b513ed2e66d71f9708d6be907460fd
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