From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Route traffic only through BR/EDR controller
Date: Tue, 26 Jun 2012 15:00:10 +0300 [thread overview]
Message-ID: <20120626120008.GD22061@aemeltch-MOBL1> (raw)
In-Reply-To: <1340108482-16071-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>
On Tue, Jun 19, 2012 at 03:21:21PM +0300, Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
>
> If AMP controller is first in the list then Bluetooth traffic might
> be routed through it (if source is not specified). The patch
> prevents this case and also checks that source is BR/EDR.
>
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
ping
> ---
> net/bluetooth/hci_conn.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
> index 9aac198..3ec5fc2 100644
> --- a/net/bluetooth/hci_conn.c
> +++ b/net/bluetooth/hci_conn.c
> @@ -442,7 +442,8 @@ struct hci_dev *hci_get_route(bdaddr_t *dst, bdaddr_t *src)
>
> list_for_each_entry(d, &hci_dev_list, list) {
> if (!test_bit(HCI_UP, &d->flags) ||
> - test_bit(HCI_RAW, &d->flags))
> + test_bit(HCI_RAW, &d->flags) ||
> + d->dev_type != HCI_BREDR)
> continue;
>
> /* Simple routing:
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-06-26 12:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-19 12:21 [PATCH] Bluetooth: Route traffic only through BR/EDR controller Andrei Emeltchenko
2012-06-26 12:00 ` Andrei Emeltchenko [this message]
2012-06-30 15:16 ` Gustavo Padovan
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=20120626120008.GD22061@aemeltch-MOBL1 \
--to=andrei.emeltchenko.news@gmail.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