* [PATCH] Bluetooth: Route traffic only through BR/EDR controller
@ 2012-06-19 12:21 Andrei Emeltchenko
2012-06-26 12:00 ` Andrei Emeltchenko
2012-06-30 15:16 ` Gustavo Padovan
0 siblings, 2 replies; 3+ messages in thread
From: Andrei Emeltchenko @ 2012-06-19 12:21 UTC (permalink / raw)
To: linux-bluetooth
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>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Bluetooth: Route traffic only through BR/EDR controller
2012-06-19 12:21 [PATCH] Bluetooth: Route traffic only through BR/EDR controller Andrei Emeltchenko
@ 2012-06-26 12:00 ` Andrei Emeltchenko
2012-06-30 15:16 ` Gustavo Padovan
1 sibling, 0 replies; 3+ messages in thread
From: Andrei Emeltchenko @ 2012-06-26 12:00 UTC (permalink / raw)
To: linux-bluetooth
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Bluetooth: Route traffic only through BR/EDR controller
2012-06-19 12:21 [PATCH] Bluetooth: Route traffic only through BR/EDR controller Andrei Emeltchenko
2012-06-26 12:00 ` Andrei Emeltchenko
@ 2012-06-30 15:16 ` Gustavo Padovan
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Padovan @ 2012-06-30 15:16 UTC (permalink / raw)
To: Andrei Emeltchenko; +Cc: linux-bluetooth
Hi Andrei,
* Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com> [2012-06-19 15:21:21 +0300]:
> 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>
> ---
> net/bluetooth/hci_conn.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Patch has been applied to bluetooth-next, thanks.
Gustavo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-30 15:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19 12:21 [PATCH] Bluetooth: Route traffic only through BR/EDR controller Andrei Emeltchenko
2012-06-26 12:00 ` Andrei Emeltchenko
2012-06-30 15:16 ` Gustavo Padovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).