Bluetooth: Move HCI_RUNNING check into hci_send_frame
[firefly-linux-kernel-4.4.55.git] / drivers / bluetooth / btsdio.c
index 83f6437dd91df4014e27084f53ac6b02be5ed68a..21f99cc8c6692440a73c200600312756926c5884 100644 (file)
@@ -261,9 +261,6 @@ static int btsdio_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
 
        BT_DBG("%s", hdev->name);
 
-       if (!test_bit(HCI_RUNNING, &hdev->flags))
-               return -EBUSY;
-
        switch (bt_cb(skb)->pkt_type) {
        case HCI_COMMAND_PKT:
                hdev->stat.cmd_tx++;