Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752278AbaFFKqr (ORCPT ); Fri, 6 Jun 2014 06:46:47 -0400 Received: from senator.holtmann.net ([87.106.208.187]:43334 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbaFFKqq convert rfc822-to-8bit (ORCPT ); Fri, 6 Jun 2014 06:46:46 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: [RFC] Bluetooth: Do not attempt to send dlci disconnect when in BT_CONFIG. From: Marcel Holtmann In-Reply-To: <1402049971-7762-1-git-send-email-kiran.kumar@linaro.org> Date: Fri, 6 Jun 2014 12:46:40 +0200 Cc: linux-kernel@vger.kernel.org, Nick Pelly , "Gustavo F. Padovan" , Johan Hedberg , "David S. Miller" , Peter Hurley , Seung-Woo Kim , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, Android Kernel Team , John Stultz Content-Transfer-Encoding: 8BIT Message-Id: <02B0CA51-A2BB-47D0-B526-229C12C8195C@holtmann.org> References: <1402049971-7762-1-git-send-email-kiran.kumar@linaro.org> To: Kiran Kumar Raparthy X-Mailer: Apple Mail (2.1878.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kiran, > Do not attempt to send dlci disconnect when in BT_CONFIG. > > This fixes a bug where shutdown() and close() on a rfcomm socket during ACL > connection would not cause HCI Create Connection Cancel. > > This is one of the number of patches from the Android AOSP common.git tree, > which is used on almost all Android devices. so I wanted to submit it for > review to see if it should go upstream. > > Cc: Marcel Holtmann > Cc: Gustavo Padovan > Cc: Johan Hedberg > Cc: David S. Miller > Cc: Peter Hurley > Cc: Seung-Woo Kim > Cc: Nick Pelly > Cc: linux-bluetooth@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: Android Kernel Team > Cc: John Stultz > Signed-off-by: Nick Pelly > [kiran: Added context to commit message] > Signed-off-by: Kiran Raparthy > --- > net/bluetooth/rfcomm/core.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c > index cf62026..6a531e7 100644 > --- a/net/bluetooth/rfcomm/core.c > +++ b/net/bluetooth/rfcomm/core.c > @@ -456,7 +456,6 @@ static int __rfcomm_dlc_close(struct rfcomm_dlc *d, int err) > > switch (d->state) { > case BT_CONNECT: > - case BT_CONFIG: > case BT_OPEN: > case BT_CONNECT2: > if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { you can include traces and a test program that will demonstrate this behavior. I am hearing about this one for the first time. Nobody else has indicated an issue like this before. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/