Return-Path: Date: Mon, 14 Feb 2011 12:40:03 -0200 From: "Gustavo F. Padovan" To: ville.tervo@nokia.com Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH v2] Bluetooth: Use proper timer for hci command timout Message-ID: <20110214144003.GC2597@joana> References: <1297683372-28351-1-git-send-email-ville.tervo@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1297683372-28351-1-git-send-email-ville.tervo@nokia.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Ville, * ville.tervo@nokia.com [2011-02-14 13:36:12 +0200]: > From: Ville Tervo > > Use proper timer instead of hci command flow control to timeout > failed hci commands. Otherwise stack ends up sending commands > when flow control is used to block new commands. > > 2010-09-01 18:29:41.592132 < HCI Command: Remote Name Request (0x01|0x0019) plen 10 > bdaddr 00:16:CF:E1:C7:D7 mode 2 clkoffset 0x0000 > 2010-09-01 18:29:41.592681 > HCI Event: Command Status (0x0f) plen 4 > Remote Name Request (0x01|0x0019) status 0x00 ncmd 0 > 2010-09-01 18:29:51.022033 < HCI Command: Remote Name Request Cancel (0x01|0x001a) plen 6 > bdaddr 00:16:CF:E1:C7:D7 > > Signed-off-by: Ville Tervo > --- > include/net/bluetooth/hci.h | 3 +++ > include/net/bluetooth/hci_core.h | 2 +- > net/bluetooth/hci_core.c | 22 ++++++++++++++++------ > net/bluetooth/hci_event.c | 6 ++++++ > 4 files changed, 26 insertions(+), 7 deletions(-) Patch has been applied. Thanks. -- Gustavo F. Padovan http://profusion.mobi