From: Nick Pelly Date: Mon, 30 Jun 2014 05:55:01 +0000 (+0530) Subject: Bluetooth: Fallback to SCO on error code 0x10 (Connection Accept Timeout) X-Git-Tag: v3.17-rc1~106^2~12^2~41^2~206 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=81218d2099e85542a57e266336db5e0585c9f2cc;p=linux-block.git 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 Signed-off-by: Kiran Kumar Raparthy Signed-off-by: Marcel Holtmann --- 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 */