From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-devel] Prepare patch bluez for the CoD in hci_conn From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: <1102340081.653.6.camel@debian> References: <1102340081.653.6.camel@debian> Content-Type: text/plain Message-Id: <1102315236.8510.55.camel@pegasus> Mime-Version: 1.0 Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 06 Dec 2004 07:40:36 +0100 Hi Chen, > Do you remember that I have asked a CoD question in this list and you > ask me to do a patch to let the CoD value in hci_conn? Now I have time > to do this work and I have something to clarify for I am not a bluez > member before and I am not very fimiliar with BlueZ. > > This time I just want to keep the remote CoD value in hci_conn when a > connection is done. But as you know, sometimes it is impossible for us > to get the CoD of the remote class without a prestage inquiry. So, not > every CoD value in hci_conn is valid. I will check the BT spec to find a > right way to tell the user whether the CoD is valid. > > Is it enough that I add a field to hci_conn and when the connection is > done I update the field? you need only to add a "__u8 dev_class[3]" field to the data structure and if you don't know the current value for CoD. For example for an outgoing connection, where the value is not in the inquiry cache, then you simply put 0x000000 in there. Regards Marcel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel