linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] Bluetooth: Update conf_state before send config_req out.
@ 2010-09-20  1:33 haijun liu
  2010-09-21  6:05 ` Ville Tervo
  2010-09-28 23:49 ` Gustavo F. Padovan
  0 siblings, 2 replies; 5+ messages in thread
From: haijun liu @ 2010-09-20  1:33 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org; +Cc: dantian.ip

Update conf_state with L2CAP_CONF_REQ_SENT before send config_req out.


Signed-off-by: Haijun.Liu <Haijun.Liu@Atheros.com>
---
 net/bluetooth/l2cap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 076d1af..9d1225d 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -3164,6 +3164,7 @@ static inline int l2cap_config_req(struct
l2cap_conn *conn, struct l2cap_cmd_hdr
 		u8 buf[64];
+		l2cap_pi(sk)->conf_state |= L2CAP_CONF_REQ_SENT;
 		l2cap_send_cmd(conn, l2cap_get_ident(conn), L2CAP_CONF_REQ,
 					l2cap_build_conf_req(sk, buf), buf);
 		l2cap_pi(sk)->num_conf_req++;
 	}

-- 
1.6.3.3


-- 
Haijun Liu

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

* Re: [PATCH 2/2] Bluetooth: Update conf_state before send config_req out.
  2010-09-20  1:33 [PATCH 2/2] Bluetooth: Update conf_state before send config_req out haijun liu
@ 2010-09-21  6:05 ` Ville Tervo
  2010-09-28 23:49 ` Gustavo F. Padovan
  1 sibling, 0 replies; 5+ messages in thread
From: Ville Tervo @ 2010-09-21  6:05 UTC (permalink / raw)
  To: ext haijun liu; +Cc: linux-bluetooth@vger.kernel.org, dantian.ip

On Mon, Sep 20, 2010 at 03:33:31AM +0200, ext haijun liu wrote:
> Update conf_state with L2CAP_CONF_REQ_SENT before send config_req out.
> 
> 
> Signed-off-by: Haijun.Liu <Haijun.Liu@Atheros.com>

Acked-by: Ville Tervo <ville.tervo@nokia.com>

> ---
>  net/bluetooth/l2cap.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
> index 076d1af..9d1225d 100644
> --- a/net/bluetooth/l2cap.c
> +++ b/net/bluetooth/l2cap.c
> @@ -3164,6 +3164,7 @@ static inline int l2cap_config_req(struct
> l2cap_conn *conn, struct l2cap_cmd_hdr
>  		u8 buf[64];
> +		l2cap_pi(sk)->conf_state |= L2CAP_CONF_REQ_SENT;
>  		l2cap_send_cmd(conn, l2cap_get_ident(conn), L2CAP_CONF_REQ,
>  					l2cap_build_conf_req(sk, buf), buf);
>  		l2cap_pi(sk)->num_conf_req++;
>  	}
> 
> -- 
> 1.6.3.3
> 
> 
> -- 
> Haijun Liu
> --
> 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] 5+ messages in thread

* Re: [PATCH 2/2] Bluetooth: Update conf_state before send config_req out.
  2010-09-20  1:33 [PATCH 2/2] Bluetooth: Update conf_state before send config_req out haijun liu
  2010-09-21  6:05 ` Ville Tervo
@ 2010-09-28 23:49 ` Gustavo F. Padovan
  2010-09-29 11:11   ` haijun liu
  1 sibling, 1 reply; 5+ messages in thread
From: Gustavo F. Padovan @ 2010-09-28 23:49 UTC (permalink / raw)
  To: haijun liu; +Cc: linux-bluetooth@vger.kernel.org, dantian.ip

Hi Haijun,

* haijun liu <liuhaijun.er@gmail.com> [2010-09-20 09:33:31 +0800]:

> Update conf_state with L2CAP_CONF_REQ_SENT before send config_req out.
> 
> 
> Signed-off-by: Haijun.Liu <Haijun.Liu@Atheros.com>

Both patches are corrupted, please fix that and rebase it against
http://git.kernel.org/?p=linux/kernel/git/padovan/bluetooth-next-2.6.git
Thanks.

-- 
Gustavo F. Padovan
ProFUSION embedded systems - http://profusion.mobi

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

* Re: [PATCH 2/2] Bluetooth: Update conf_state before send config_req out.
  2010-09-28 23:49 ` Gustavo F. Padovan
@ 2010-09-29 11:11   ` haijun liu
  2010-09-30  7:23     ` Gustavo F. Padovan
  0 siblings, 1 reply; 5+ messages in thread
From: haijun liu @ 2010-09-29 11:11 UTC (permalink / raw)
  To: Gustavo F. Padovan; +Cc: linux-bluetooth@vger.kernel.org, dantian.ip

 Update conf_state with L2CAP_CONF_REQ_SENT before send
 config_req out in l2cap_config_req().


Signed-off-by: Haijun.Liu <haijun.liu@atheros.com>
---
 net/bluetooth/l2cap_core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index bef5c9f..f461fee 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -3026,6 +3026,7 @@ static inline int l2cap_config_req(struct
l2cap_conn *conn, struct l2cap_cmd_hdr

 	if (!(l2cap_pi(sk)->conf_state & L2CAP_CONF_REQ_SENT)) {
 		u8 buf[64];
+		l2cap_pi(sk)->conf_state |= L2CAP_CONF_REQ_SENT;
 		l2cap_send_cmd(conn, l2cap_get_ident(conn), L2CAP_CONF_REQ,
 					l2cap_build_conf_req(sk, buf), buf);
 		l2cap_pi(sk)->num_conf_req++;
-- 
1.6.3.3

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

* Re: [PATCH 2/2] Bluetooth: Update conf_state before send config_req out.
  2010-09-29 11:11   ` haijun liu
@ 2010-09-30  7:23     ` Gustavo F. Padovan
  0 siblings, 0 replies; 5+ messages in thread
From: Gustavo F. Padovan @ 2010-09-30  7:23 UTC (permalink / raw)
  To: haijun liu; +Cc: linux-bluetooth@vger.kernel.org, dantian.ip

Hi Haijun,

* haijun liu <liuhaijun.er@gmail.com> [2010-09-29 19:11:29 +0800]:

>  Update conf_state with L2CAP_CONF_REQ_SENT before send
>  config_req out in l2cap_config_req().
> 
> 
> Signed-off-by: Haijun.Liu <haijun.liu@atheros.com>
> ---
>  net/bluetooth/l2cap_core.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Still corrupted:

Applying: Bluetooth: Update conf_state before send config_req out.
fatal: corrupt patch at line 10
Patch failed at 0001 Bluetooth: Update conf_state before send config_req
out.

Make sure you can apply your patches sent with git send-email before
sending them to the mailing list. Thanks.

-- 
Gustavo F. Padovan
ProFUSION embedded systems - http://profusion.mobi

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

end of thread, other threads:[~2010-09-30  7:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-20  1:33 [PATCH 2/2] Bluetooth: Update conf_state before send config_req out haijun liu
2010-09-21  6:05 ` Ville Tervo
2010-09-28 23:49 ` Gustavo F. Padovan
2010-09-29 11:11   ` haijun liu
2010-09-30  7:23     ` Gustavo F. 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).