Bluetooth: Simplify hci_conn_accept_secure check
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Thu, 2 Jun 2011 12:24:52 +0000 (14:24 +0200)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:10:33 +0000 (12:10 -0800)
commit72e69dd5072463fc5a74da42a9f6ef05459603af
treefb513a1ace88310b193e33118a27a67bc5bbe1e4
parent189e44974da3b27b1d6f9d24c8366acc573944b5
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