public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Pelly <npelly@google.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Fallback from eSCO to SCO on error code 0x1f (unspecified error).
Date: Tue, 24 Mar 2009 09:22:12 -0700	[thread overview]
Message-ID: <35c90d960903240922y2f956ccnd4f1c81092235fa@mail.gmail.com> (raw)
In-Reply-To: <1237911625-20893-1-git-send-email-npelly@google.com>

Here is the hcidump that prompted this patch:

009-03-23 17:43:50.727376 < HCI Command: Setup Synchronous Connection
(0x01|0x0028) plen 17
  handle 1 voice setting 0x0060
2009-03-23 17:43:50.746969 > HCI Event: Command Status (0x0f) plen 4
  Setup Synchronous Connection (0x01|0x0028) status 0x00 ncmd 1
2009-03-23 17:43:50.909963 > HCI Event: Synchronous Connect Complete
(0x2c) plen 17
  status 0x1f handle 257 bdaddr 00:14:0A:01:E1:67 type eSCO
  Error: Unspecified Error

I have confirmed that with this patch we successfully fall back to SCO
with the Kyocera ED-8800


On Tue, Mar 24, 2009 at 9:20 AM, Nick Pelly <npelly@google.com> wrote:
> 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
>
>

  reply	other threads:[~2009-03-24 16:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2009-03-24 10:59   ` Marcel Holtmann
2009-03-24 19:57     ` Nick Pelly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=35c90d960903240922y2f956ccnd4f1c81092235fa@mail.gmail.com \
    --to=npelly@google.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox