Commit 7af32eeb authored by Marcel Holtmann's avatar Marcel Holtmann

[Bluetooth] Remove MTU check for the L2CAP raw socket

The L2CAP raw socket is associated with the signal channel and the
check for the maximum transfer unit makes no sense here.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 842ca9a3
......@@ -770,7 +770,7 @@ static int l2cap_sock_sendmsg(struct kiocb *iocb, struct socket *sock, struct ms
return -EOPNOTSUPP;
/* Check outgoing MTU */
if (len > l2cap_pi(sk)->omtu)
if (sk->sk_type != SOCK_RAW && len > l2cap_pi(sk)->omtu)
return -EINVAL;
lock_sock(sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment