public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Fallback from eSCO to SCO on error code 0x1f (unspecified error).
@ 2009-03-24 16:20 Nick Pelly
  2009-03-24 16:22 ` Nick Pelly
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Pelly @ 2009-03-24 16:20 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Nick Pelly

Kyocera ED-8800 headset returns this error code when eSCO is attempted.

Signed-off-by: Nick Pelly <npelly@google.com>
---
 net/bluetooth/hci_event.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 5553424..42cb717 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1646,7 +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 && conn->attempt < 2) {
+	if (conn->out && (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);
-- 
1.5.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-24 19:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 16:20 [PATCH] Bluetooth: Fallback from eSCO to SCO on error code 0x1f (unspecified error) Nick Pelly
2009-03-24 16:22 ` Nick Pelly
2009-03-24 10:59   ` Marcel Holtmann
2009-03-24 19:57     ` Nick Pelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox