Bluetooth: Allow setting BT_SECURITY_FIPS with setsockopt

Update the security level check to allow setting BT_SECURITY_FIPS for
an L2CAP socket.

Signed-off-by: Patrik Flykt <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
Patrik Flykt 2016-03-24 16:04:15 +02:00 • committed by Marcel Holtmann
commit a164cee111

View file

@ -778,7 +778,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
}
if (sec.level < BT_SECURITY_LOW ||
sec.level > BT_SECURITY_HIGH) {
sec.level > BT_SECURITY_FIPS) {
err = -EINVAL;
break;
}