Marcel Holtmann wrote: > Hi, > >> I think that do_command function (csr_bcsp.c) could have a problem >> >> if we receive both UBCSP_PACKET_SENT and UBCSP_PACKET_RECEIVED >> simultaneously from ubcsp_poll function. >> >> An expected scenario is that UBCSP_PACKET_SENT comes earlier than >> UBCSP_PACKET_RECEIVED. >> >> But if we get them at the same time this could be a problem because >> “sent=1” is located after checking “sent==1”. >> >> It means that this program doesn’t know UBCSP_PACKET_SENT even if we >> already receive it. > > please sent a patch (unified diff) for it. > > Regards > > Marcel Hi Marcel, I sent in a patch for this back in August 2006 (http://article.gmane.org/gmane.linux.bluez.devel/8836). The patch still applies to the latest CVS source. I have attached it to this post. Regards ../fam -- Frank Mandarino fmandarino(a)endrelia.com Endrelia Technologies Inc. Toronto, Ontario, Canada