From: Pavel Machek <pavel@ucw.cz>
To: Olivier Galibert <galibert@pobox.com>,
"Hack inc." <linux-kernel@vger.kernel.org>,
marcel@holtmann.org, maxk@qualcomm.com,
bluez-devel@lists.sourceforge.net
Subject: Re: [PATCH] Fix SCO on Broadcom Bluetooth adapters
Date: Tue, 14 Mar 2006 13:12:24 +0100 [thread overview]
Message-ID: <20060314121224.GA11211@elf.ucw.cz> (raw)
In-Reply-To: <20060314111248.GA75477@dspnet.fr.eu.org>
On Út 14-03-06 12:12:48, Olivier Galibert wrote:
> Broadcom USB Bluetooth adapters report a maximum of zero SCO packets
> in-flight, killing SCO. Use a reasonable count instead in that
> case.
Printk("broken Broadcom USB detected, working around"), I'd say. Then
you can also remove the comment :-). Maybe 4 is reasonable value for
some really broken thing, or something...
> Signed-off-by: Olivier Galibert <galibert@pobox.com>
Pavel
> diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
> --- a/net/bluetooth/hci_event.c
> +++ b/net/bluetooth/hci_event.c
> @@ -324,6 +324,13 @@ static void hci_cc_info_param(struct hci
> hdev->acl_pkts = hdev->acl_cnt = __le16_to_cpu(bs->acl_max_pkt);
> hdev->sco_pkts = hdev->sco_cnt = __le16_to_cpu(bs->sco_max_pkt);
>
> + /* Some buggy USB bluetooth adapters, Broadcom in
> + particular, answer zero as the max number of sco
> + packets in flight. Use a reasonable value
> + instead */
> + if (hdev->sco_pkts == 0)
> + hdev->sco_pkts = hdev->sco_cnt = 8
> +
> BT_DBG("%s mtu: acl %d, sco %d max_pkt: acl %d, sco %d", hdev->name,
> hdev->acl_mtu, hdev->sco_mtu, hdev->acl_pkts, hdev->sco_pkts);
> break;
--
189: private string AtomSTSZ = "stsz";
next prev parent reply other threads:[~2006-03-14 12:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-14 11:12 Olivier Galibert
2006-03-14 12:12 ` Pavel Machek [this message]
2006-03-14 13:49 ` Marcel Holtmann
2006-03-14 14:08 ` Olivier Galibert
2006-03-14 22:27 ` Alan Cox
2006-03-14 23:47 ` Olivier Galibert
2006-03-14 17:39 ` Randy.Dunlap
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=20060314121224.GA11211@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=bluez-devel@lists.sourceforge.net \
--cc=galibert@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=maxk@qualcomm.com \
/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
all inboxes | Powered by JetHome®