From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 9 Jun 2014 21:14:41 +0300 From: Johan Hedberg To: Marcel Holtmann Cc: Tedd Ho-Jeong An , Linux Bluetooth mailing list , "Gustavo F. Padovan" Subject: Re: Question about HCI_QUIRK_RESET_ON_CLOSE Message-ID: <20140609181441.GA30978@t440s.P-661HNU-F1> References: <20140609083124.1ea9e852@han1-desk-dev> <8BACFBA7-C6B6-4BE7-9107-2E4665B3A278@holtmann.org> <20140609101542.5b7ae24a@han1-desk-dev> <98D1490C-B3DC-4CEC-971B-F24F515CFC2E@holtmann.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <98D1490C-B3DC-4CEC-971B-F24F515CFC2E@holtmann.org> List-ID: Hi Marcel, On Mon, Jun 09, 2014, Marcel Holtmann wrote: > I think that 3.14 kernel and later have this feature enabled. What I > can tell is that we cancel connection attempts since I found a follow > up patch there. For inquiry and remote name request, I do not know. > > Johan, did we ever checked this and in addition that we send a > Discovery Stopped event as well. I'm not completely sure about a proper emission of Discover Stopped, but the function to look at is clean_up_hci_state() in mgmt.c. You'll see that it stops inquiry scan & page scan, advertising, LE scanning, cancels outgoing connection attempts and disconnects existing connections. However, as I just looked at the function we seem to (quite surprisingly) have completely forgotten about inquiry (either normal or periodic), so another patch to this function is needed as it seems. Johan