Hi Sumeet, > I investigated the RFCOMM disconnect problem in more detail and found out > that when the device is a listener, it expects the initiator of RFCOMM > connection to disconnect dlci 0. But all devices don't send RFCOMM DISC for > dlci 0. For ex PTS doesn't disconnect dlci 0 in case of HS profile testing > Test Case: > -> IUT (BlueZ) is HS Gateway, PTS is HS > -> PTS initiates connection and then disconnect > -> RFCOMM data channel is disconnected by BlueZ but it waits for PTS to > disconnect RFCOMM control channel which doesn't happen. > -> As a result test case fails > > The HS Spec says HS Gateway is responsible for disconnecting the connection. > In that case I think there is a misbehaviour here. > > If there is something I am missing in understanding the RFCOMM > implementation and this problem, please correct me. > Otherwise do you have a patch to solve this problem, wherein the listener > disconnects dlci 0? I told you that this was a known bug and we fixed it. You should have tested a recent 2.6 kernel and this basically means 2.6.18 or even later. Not an ancient RHEL4 kernel. Anyway, this is the patch that went in upstream to fix this problem. Regards Marcel