Skip to content

Commit

Permalink
Bluetooth: Allow change security level on ATT_CID in slave role
Browse files Browse the repository at this point in the history
Kernel supports SMP Security Request so don't block increasing security
when we are slave.

Signed-off-by: Marcin Kraglak <marcin.kraglak@tieto.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org
  • Loading branch information
Marcin Kraglak authored and Marcel Holtmann committed Jun 13, 2014
1 parent c73f94b commit 92d1372
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/bluetooth/l2cap_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,11 +787,6 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,

/*change security for LE channels */
if (chan->scid == L2CAP_CID_ATT) {
if (!conn->hcon->out) {
err = -EINVAL;
break;
}

if (smp_conn_security(conn->hcon, sec.level))
break;
sk->sk_state = BT_CONFIG;
Expand Down

0 comments on commit 92d1372

Please sign in to comment.