]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Double check sec req for pre 2.1 device
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Fri, 6 May 2011 07:42:31 +0000 (09:42 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 11 May 2011 17:56:28 +0000 (14:56 -0300)
commit6c5dc20d40b9d0021e8bf7f77a189ce1bc8e49b6
tree95ae8fcbcc37bfb3865362ddcd72ac76d2b58c0b
parentbeb5930b297234be788b64f1a2f3143b332a5940
Bluetooth: Double check sec req for pre 2.1 device

In case of pre v2.1 devices authentication request will return
success immediately if the link key already exists without any
authentication process.

That means, it's not possible to re-authenticate the link if you
already have combination key and for instance want to re-authenticate
to get the high security (use 16 digit pin).

Therefore, it's necessary to check security requirements on auth
complete event to prevent not enough secure connection.

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/rfcomm/core.c