Skip to content

Commit

Permalink
Bluetooth: Fix assuming EIR flags can result in SSP authentication
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luiz Augusto von Dentz authored and Marcel Holtmann committed May 20, 2020
1 parent 3ca44c1 commit 755dfcb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 755dfcb

Please sign in to comment.