Return-Path: Subject: Re: conn->state vs conn->sk->sk_state From: Marcel Holtmann To: jaikumar Ganesh Cc: linux-bluetooth@vger.kernel.org In-Reply-To: References: Content-Type: text/plain Date: Fri, 19 Dec 2008 19:58:00 +0100 Message-Id: <1229713080.879.8.camel@californication> Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jaikumar, > Looking at this a bit further, I see a discrepancy between the code in > function hci_conn_complete_evt and hci_sync_conn_complete_evt. > Is this intentional or a bug ? Like I said below, using > hci_conn_complete_evt (when the AG doesn't support eSCO) results in > the connect() never returning because the socket state is not updated. I still have no idea what's your problem. It doesn't matter if the remote side supports eSCO or not. The sync setup commands can be used even for setting up SCO channels. Regards Marcel