Skip to content

sco: SCO socket option for mode

Frédéric Dalleau linux-bluetooth 1 version In review

Get series with b4
b4 am 1358426389-25903-1-git-send-email-frederic.dalleau@linux.intel.com

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Bluetooth: Add option for SCO socket modeinclude/net/bluetooth/sco.h net/bluetooth/sco.c+23 -02 replies
2/5Bluetooth: Add setsockopt for SCO socket modenet/bluetooth/sco.c+44 -01 reply
3/5Bluetooth: Use mode when accepting SCO connectioninclude/net/bluetooth/hci_core.h net/bluetooth/hci_event.c net/bluetooth/sco.c+19 -61 reply
4/5Bluetooth: Parameters for outgoing SCO connectionsinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/sco.c+25 -91 reply
5/5Bluetooth: Fallback transparent SCO from T2 to T1net/bluetooth/hci_conn.c net/bluetooth/hci_event.c+11 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] sco: SCO socket option for mode

Hi,

This is the patch version of the socket option for enabling transparent SCO sockets. RFC didn't generate feedback, so if we consider that people only complains when something is wrong, this patch is fine ;)
In between, the patch series has been simplified, the most visible change is that RFC was declaring HCI_CONN_SCO_T1_SETTINGS and removing it later, plus some __cpu_to_le16 conversion were added.

The initial mode corresponding to current behavior is SCO_MODE_CVSD. SCO_MODE_TRANSPARENT is the mode for setting up transparent sockets. SCO_MODE_ENHANCED is targeted at CSA2. It is only declared and not implemented.

Let me know what you think.
Best regards,

Frédéric

Frédéric Dalleau (5):
Bluetooth: Add option for SCO socket mode
Bluetooth: Add setsockopt for SCO socket mode
Bluetooth: Use mode when accepting SCO connection
Bluetooth: Parameters for outgoing SCO connections
Bluetooth: Fallback transparent SCO from T2 to T1

 include/net/bluetooth/hci_core.h |    5 +++-
 include/net/bluetooth/sco.h      |   20 ++++++++++++++
 net/bluetooth/hci_conn.c         |   36 +++++++++++++++++++++-----
 net/bluetooth/hci_event.c        |   22 +++++++++++++---
 net/bluetooth/sco.c              |   53 +++++++++++++++++++++++++++++++++++---
 5 files changed, 121 insertions(+), 15 deletions(-)
Signature · 1 line
1.7.9.5