]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Bluetooth: Fallback to SCO on error code 0x10 (Connection Accept Timeout)
authorNick Pelly <npelly@google.com>
Mon, 30 Jun 2014 05:55:01 +0000 (11:25 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:52 +0000 (17:42 +0200)
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>
net/bluetooth/hci_event.c

index 315d615ca3f9527f82dc476f028a849f341e0bbe..fe7a54b65e55a5e3267424f8005b6f75be9e8747 100644 (file)
@@ -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 */