diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-05-19 22:25:17 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-05-20 16:33:43 +0200 |
commit | 755dfcbca83710fa967d0efa7c5bb601f871a747 (patch) | |
tree | 6fb68b67a52b7dacddcc83c91968731f3759339b /net/bluetooth/hci_conn.c | |
parent | Bluetooth: Consolidate encryption handling in hci_encrypt_cfm (diff) | |
download | linux-755dfcbca83710fa967d0efa7c5bb601f871a747.tar.xz linux-755dfcbca83710fa967d0efa7c5bb601f871a747.zip |
Bluetooth: Fix assuming EIR flags can result in SSP authentication
EIR flags should just hint if SSP may be supported but we shall verify
this with use of the actual features as the SSP bits may be disabled in
the lower layers which would result in legacy authentication to be
used.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 07c34c55fc50..307800fd18e6 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -225,8 +225,6 @@ static void hci_acl_create_connection(struct hci_conn *conn) } memcpy(conn->dev_class, ie->data.dev_class, 3); - if (ie->data.ssp_mode > 0) - set_bit(HCI_CONN_SSP_ENABLED, &conn->flags); } cp.pkt_type = cpu_to_le16(conn->pkt_type); |