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 <patrik.flykt@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Patrik Flykt 2016-03-24 16:04:15 +02:00 committed by Marcel Holtmann
parent 84cb3df02a
commit a164cee111
1 changed files with 1 additions and 1 deletions

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;
}