linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5/6] Bluetooth: Fix initiated LE connections
@ 2010-10-22 23:56 Anderson Briglia
  2010-10-26  9:28 ` Ville Tervo
  0 siblings, 1 reply; 2+ messages in thread
From: Anderson Briglia @ 2010-10-22 23:56 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Vinicius Costa Gomes

From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>

Fix LE connections not being marked as master.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
---
 net/bluetooth/hci_conn.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index c7309e4..1a48c6a 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -52,6 +52,7 @@ void hci_le_connect(struct hci_conn *conn)
 
 	conn->state = BT_CONNECT;
 	conn->out = 1;
+	conn->link_mode |= HCI_LM_MASTER;
 
 	memset(&cp, 0, sizeof(cp));
 	cp.scan_interval = cpu_to_le16(0x0004);
-- 
1.7.0.4


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

* Re: [PATCH 5/6] Bluetooth: Fix initiated LE connections
  2010-10-22 23:56 [PATCH 5/6] Bluetooth: Fix initiated LE connections Anderson Briglia
@ 2010-10-26  9:28 ` Ville Tervo
  0 siblings, 0 replies; 2+ messages in thread
From: Ville Tervo @ 2010-10-26  9:28 UTC (permalink / raw)
  To: ext Anderson Briglia
  Cc: linux-bluetooth@vger.kernel.org, Vinicius Costa Gomes

Hi,

On Sat, Oct 23, 2010 at 01:56:59AM +0200, ext Anderson Briglia wrote:
> From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
> 
> Fix LE connections not being marked as master.
> 
> Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
> ---
>  net/bluetooth/hci_conn.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
> index c7309e4..1a48c6a 100644
> --- a/net/bluetooth/hci_conn.c
> +++ b/net/bluetooth/hci_conn.c
> @@ -52,6 +52,7 @@ void hci_le_connect(struct hci_conn *conn)
>  
>  	conn->state = BT_CONNECT;
>  	conn->out = 1;
> +	conn->link_mode |= HCI_LM_MASTER;

conn->out and conn->link_mode are redutant information. The role cannot be changed.

>  
>  	memset(&cp, 0, sizeof(cp));
>  	cp.scan_interval = cpu_to_le16(0x0004);
> -- 
> 1.7.0.4

-- 
Ville

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

end of thread, other threads:[~2010-10-26  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22 23:56 [PATCH 5/6] Bluetooth: Fix initiated LE connections Anderson Briglia
2010-10-26  9:28 ` Ville Tervo

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).