OSDN Git Service

Bluetooth: Move HCI_RUNNING check into hci_send_frame
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 4 Oct 2015 21:34:01 +0000 (23:34 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 5 Oct 2015 07:30:10 +0000 (10:30 +0300)
commit73d0d3c8671190ea982a8e79a7c79fbfe88f8f47
tree5a994705148d72200a441ca53e53694c2810b993
parent4a3f95b7b62e50a1e42e42ba6571ec9e747f4861
Bluetooth: Move HCI_RUNNING check into hci_send_frame

In all callbacks for hdev->send the status of HCI_RUNNING is checked. So
instead of repeating that code in every driver, move the check into the
hci_send_frame function before calling hdev->send.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/bfusb.c
drivers/bluetooth/bpa10x.c
drivers/bluetooth/btmrvl_main.c
drivers/bluetooth/btsdio.c
drivers/bluetooth/btusb.c
drivers/bluetooth/btwilink.c
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_vhci.c
net/bluetooth/hci_core.c