linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] sco: BT_DEFER_SETUP for SCO sockets
@ 2012-11-13 18:20 Frédéric Dalleau
  2012-11-13 18:20 ` [RFC] Bluetooth: Add BT_DEFER_SETUP option to sco socket Frédéric Dalleau
  0 siblings, 1 reply; 13+ messages in thread
From: Frédéric Dalleau @ 2012-11-13 18:20 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Frédéric Dalleau

Hi,

This is a first draft about what can be done to implement DEFER_SETUP on SCO
sockets.  I couldn't test it today I just pulled bluetooth-next and build
failed, so I plan to go further tomorrow.

hci layer get some changes since previous behavior was to accept all SCO
connections.

Some questions are open :
Should we be able to defer non eSCO capable devices? This would remove a few
lines of code.
hci_proto_defered is ugly: What about a flag similar to LM_ACCEPT called
LM_DEFER that would indicate that accepting is defered.

Let me know what you think.

Best regards,
Frédéric


Frédéric Dalleau (1):
  Bluetooth: Add BT_DEFER_SETUP option to sco socket

 include/net/bluetooth/hci_core.h |   15 +++++++
 net/bluetooth/hci_event.c        |   47 +++++++++++++++++++-
 net/bluetooth/sco.c              |   88 ++++++++++++++++++++++++++++++++++++--
 3 files changed, 145 insertions(+), 5 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-11-16 12:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-13 18:20 [RFC] sco: BT_DEFER_SETUP for SCO sockets Frédéric Dalleau
2012-11-13 18:20 ` [RFC] Bluetooth: Add BT_DEFER_SETUP option to sco socket Frédéric Dalleau
2012-11-13 18:45   ` Luiz Augusto von Dentz
2012-11-14  8:26   ` Michael Knudsen
2012-11-14 10:10     ` Frédéric Dalleau
2012-11-14 14:39       ` Marcel Holtmann
2012-11-14  9:17   ` Andrei Emeltchenko
2012-11-14 10:09   ` Arnaud Mouiche
2012-11-14 10:18     ` Frédéric Dalleau
2012-11-14 10:33       ` Arnaud Mouiche
2012-11-14 10:21     ` Michael Knudsen
2012-11-15 20:30   ` Gustavo Padovan
2012-11-16 12:10     ` Frédéric Dalleau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).