Bluetooth: Simplify hci_conn_accept_secure check
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Thu, 2 Jun 2011 12:24:52 +0000 (14:24 +0200)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:17 +0000 (11:59 -0700)
commit8b00cf0995d246b2d0fa3e1f1b52b073eafec611
treea4e046264bb7acc419a697b02658842e9ff5df41
parent514abe61e146e18b256782fe959d8686a420c133
Bluetooth: Simplify hci_conn_accept_secure check

If the link key is secure (authenticated or combination 16 digit)
the sec_level will be always BT_SECURITY_HIGH. Therefore, instead
of checking the link key type simply check the sec_level on the link.

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