From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: <35741970-1ED7-4A2B-8625-4F16186FA764@holtmann.org> References: <1411746855-9936-1-git-send-email-fons@spotify.com> <24D2CD11-D43B-4F53-8A7C-175934A54C87@holtmann.org> <1D7AEE8B-51DB-4A6D-8EBA-3EC81760224E@holtmann.org> <35741970-1ED7-4A2B-8625-4F16186FA764@holtmann.org> From: Alfonso Acosta Date: Thu, 9 Oct 2014 03:01:32 +0200 Message-ID: Subject: Re: [PATCH v3] Bluetooth: Add HCI_AUTO_CONN_DIRECT_REPORT_IND To: Marcel Holtmann Cc: BlueZ development Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Marcel, > what sounds most simple to me is that we allow for a way to suspend and later resume the trigger for doing service discovery. Attaching the attribute channel is fine, but then essentially tell it to stay put. > > This all becomes tricky and we might need to have some redesign and cleanups to do to make this work cleanly. We also long term want to switch to the newly designed gatt-client.c that we are working on. So something to keep in mind. > > However one thing has to present and that is our GATT server. So even if we stall everything else and even if we drop the keys and unpair, the GATT server needs to be operational. So we need to attach the ATT protocol to the ATT socket that we are getting from the kernel on every single connection. Thanks. Using your suggestion I am suspending the trigger for doing service discovery until rebonding is completed. As expected, without the connection re-establishment, rebonding is now considerably faster. I, however, have to keep the ATT socket around until resuming the service discovery, which is a bit dirty. But I guess I can live with that until the new gatt-client is in. Thanks again, Fons -- Alfonso Acosta Embedded Systems Engineer at Spotify Birger Jarlsgatan 61, Stockholm, Sweden http://www.spotify.com