--- a/drivers/bluetooth/hci_ldisc.c +++ h/drivers/bluetooth/hci_ldisc.c @@ -767,7 +767,7 @@ static int hci_uart_tty_ioctl(struct tty break; case HCIUARTGETPROTO: - if (test_bit(HCI_UART_PROTO_SET, &hu->flags)) + if (test_bit(HCI_UART_PROTO_READY, &hu->flags)) err = hu->proto->id; else err = -EUNATCH;