Hi Johan, * Johan Hedberg <johan.hedberg@xxxxxxxxx> [2012-06-27 14:26:03 +0300]: > From: Johan Hedberg <johan.hedberg@xxxxxxxxx> > > This patch adds very basic support for the sleep related messages. The > only thing the code does right now is send a wakeup message as soon as > receiving a sleep one, essentially preventing the controller from going > to sleep. > > Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx> > --- > drivers/bluetooth/hci_h5.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c > index 31b8d57..d26f801 100644 > --- a/drivers/bluetooth/hci_h5.c > +++ b/drivers/bluetooth/hci_h5.c > @@ -71,6 +71,8 @@ struct h5 { > bool tx_ack_req; /* Pending ack to send */ > u8 tx_seq; /* Next seq number to send */ > u8 tx_ack; /* Next ack number to send */ > + > + bool sleeping; Please fold this into the flags member I proposed in the other patch. Gustavo -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html