Re: ioctl(RFCOMMCREATEDEV) failed: File descriptor in bad state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> I am calling ioctl(RFCOMMCREATEDEV) to create tty device from a rfcomm fd 
> using hands-free profile. If the HF send connection request to AG and make
> rfcomm connect, the tty could be made successfully. However, if the 
> AG(mobile) side make request to create rfcomm connection, the rfcomm could
> be created but fail to create the tty device. The kernel returns error 
> because socket is not connected, see below code. Any idea? Thanks much!

why do you wanna create the TTY in the first place? Going via the TTY
layer is pretty bad idea. Don't even think about doing that. Use the
RFCOMM socket.

Regards

Marcel


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux