diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_sock.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index b9a418e578e0..f608bffdb8b9 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c | |||
@@ -524,16 +524,7 @@ static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd, | |||
524 | case HCISETRAW: | 524 | case HCISETRAW: |
525 | if (!capable(CAP_NET_ADMIN)) | 525 | if (!capable(CAP_NET_ADMIN)) |
526 | return -EPERM; | 526 | return -EPERM; |
527 | 527 | return -EOPNOTSUPP; | |
528 | if (test_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks)) | ||
529 | return -EPERM; | ||
530 | |||
531 | if (arg) | ||
532 | set_bit(HCI_RAW, &hdev->flags); | ||
533 | else | ||
534 | clear_bit(HCI_RAW, &hdev->flags); | ||
535 | |||
536 | return 0; | ||
537 | 528 | ||
538 | case HCIGETCONNINFO: | 529 | case HCIGETCONNINFO: |
539 | return hci_get_conn_info(hdev, (void __user *) arg); | 530 | return hci_get_conn_info(hdev, (void __user *) arg); |