summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNick Pelly2014-06-30 07:55:01 +0200
committerMarcel Holtmann2014-07-03 17:42:52 +0200
commit81218d2099e85542a57e266336db5e0585c9f2cc (patch)
tree719ba145d2d29dce3ef9427ac4f5d546d1d277fe /net
parentBluetooth: Allow L2CAP getpeername() for BT_CONFIG state (diff)
downloadkernel-qcow2-linux-81218d2099e85542a57e266336db5e0585c9f2cc.tar.gz
kernel-qcow2-linux-81218d2099e85542a57e266336db5e0585c9f2cc.tar.xz
kernel-qcow2-linux-81218d2099e85542a57e266336db5e0585c9f2cc.zip
Bluetooth: Fallback to SCO on error code 0x10 (Connection Accept Timeout)
This is to support the Motorola HF850 carkit which reports the error code 0x10 for an eSCO attempt, even though it advertises eSCO support. With this patch we will retry with a SCO connection, which succeeds. Signed-off-by: Nick Pelly <npelly@google.com> Signed-off-by: Kiran Kumar Raparthy <kiran.kumar@linaro.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 315d615ca3f9..fe7a54b65e55 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -3408,6 +3408,7 @@ static void hci_sync_conn_complete_evt(struct hci_dev *hdev,
hci_conn_add_sysfs(conn);
break;
+ case 0x10: /* Connection Accept Timeout */
case 0x0d: /* Connection Rejected due to Limited Resources */
case 0x11: /* Unsupported Feature or Parameter Value */
case 0x1c: /* SCO interval rejected */