public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: "Zhang, Zhenhua" <zhenhua.zhang@intel.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: ioctl(RFCOMMCREATEDEV) failed: File descriptor in bad state
Date: Mon, 14 Sep 2009 04:01:48 -0700	[thread overview]
Message-ID: <1252926108.3421.5.camel@localhost.localdomain> (raw)
In-Reply-To: <0463F45F3606F4428ED35AC8C709F92E089A4160F9@pdsmsx502.ccr.corp.intel.com>

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



  reply	other threads:[~2009-09-14 11:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-14 10:02 ioctl(RFCOMMCREATEDEV) failed: File descriptor in bad state Zhang, Zhenhua
2009-09-14 11:01 ` Marcel Holtmann [this message]
2009-09-14 11:38   ` Zhang, Zhenhua
2009-09-14 13:28     ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1252926108.3421.5.camel@localhost.localdomain \
    --to=marcel@holtmann.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=zhenhua.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox