summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2009-08-14 11:36:19 -0700
committerNick Pelly <npelly@google.com>2009-08-14 14:22:03 -0700
commit7aad5fafb6c4a842bf867cd0f0a6c36364bd5308 (patch)
tree3f9df7d07194bb90f1d3de386b468de5c1ccea2e /net
parentb21460a43ac18f2e41b026b6f1dc27dcade7c99c (diff)
Bluetooth: Fallback from eSCO to SCO on error code 0x1a (unsupported feature).
GM carkits with LGE BT chipsets return this error code when eSCO is attempted. Signed-off-by: Jaikumar Ganesh <jaikumar@google.com> Acked-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 42cb717446e7..c4795924c99b 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1646,8 +1646,8 @@ static inline void hci_sync_conn_complete_evt(struct hci_dev *hdev, struct sk_bu
conn->type = SCO_LINK;
}
- if (conn->out && (ev->status == 0x1c || ev->status == 0x1f) &&
- conn->attempt < 2) {
+ if (conn->out && (ev->status == 0x1a || ev->status == 0x1c ||
+ ev->status == 0x1f) && conn->attempt < 2) {
conn->pkt_type = (hdev->esco_type & SCO_ESCO_MASK) |
(hdev->esco_type & EDR_ESCO_MASK);
hci_setup_sync(conn, conn->link->handle);