Bluetooth: Restrict access for raw-only controllers
[deliverable/linux.git] / net / bluetooth / hci_conn.c
index 8a0c7a0ac1b6147e2434979d4564481119bd3dd8..25ee27ddc882ba002295b95400842c6aa31577c0 100644 (file)
@@ -346,9 +346,6 @@ static void hci_conn_idle(struct work_struct *work)
 
        BT_DBG("hcon %p mode %d", conn, conn->mode);
 
-       if (test_bit(HCI_RAW, &hdev->flags))
-               return;
-
        if (!lmp_sniff_capable(hdev) || !lmp_sniff_capable(conn))
                return;
 
@@ -539,7 +536,6 @@ struct hci_dev *hci_get_route(bdaddr_t *dst, bdaddr_t *src)
 
        list_for_each_entry(d, &hci_dev_list, list) {
                if (!test_bit(HCI_UP, &d->flags) ||
-                   test_bit(HCI_RAW, &d->flags) ||
                    test_bit(HCI_USER_CHANNEL, &d->dev_flags) ||
                    d->dev_type != HCI_BREDR)
                        continue;
@@ -1059,9 +1055,6 @@ void hci_conn_enter_active_mode(struct hci_conn *conn, __u8 force_active)
 
        BT_DBG("hcon %p mode %d", conn, conn->mode);
 
-       if (test_bit(HCI_RAW, &hdev->flags))
-               return;
-
        if (conn->mode != HCI_CM_SNIFF)
                goto timer;
 
This page took 0.027678 seconds and 5 git commands to generate.