Commit 3a273aa9 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Marcel Holtmann

[Bluetooth] Don't do wakeup if protocol is not set

This patch checks whether protocol is set or not, before it will try
to wake us up.
parent 7298e5c2
......@@ -344,6 +344,7 @@ static void hci_uart_tty_wakeup(struct tty_struct *tty)
if (tty != hu->tty)
return;
if (test_bit(HCI_UART_PROTO_SET, &hu->flags))
hci_uart_tx_wakeup(hu);
}
......
......@@ -68,7 +68,7 @@ struct hci_uart {
};
/* HCI_UART flag bits */
#define HCI_UART_PROTO_SET 0x00
#define HCI_UART_PROTO_SET 0
/* TX states */
#define HCI_UART_SENDING 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment