Thread (13 messages) 13 messages, 7 authors, 2012-11-16

[RFC] sco: BT_DEFER_SETUP for SCO sockets

From: Frédéric Dalleau <hidden>
Date: 2012-11-13 18:20:24

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help