diff options
author | Haijun Liu <haijun.liu@atheros.com> | 2010-09-30 04:52:40 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-10-12 11:44:53 -0400 |
commit | ab3e571564a5d8fa4923e2e858e574c931a014c7 (patch) | |
tree | 40d29b990ea779b1c68c2a72ccde93c84c0a1b0f /net | |
parent | 0175d629e096a5a59dde6cc91b32ac3160a44b9e (diff) |
Bluetooth: Update conf_state before send config_req out
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>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r-- | 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 01c476239dd6..16049de49896 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -3171,6 +3171,7 @@ static inline int l2cap_config_req(struct l2cap_conn *conn, struct l2cap_cmd_hdr | |||
3171 | 3171 | ||
3172 | if (!(l2cap_pi(sk)->conf_state & L2CAP_CONF_REQ_SENT)) { | 3172 | if (!(l2cap_pi(sk)->conf_state & L2CAP_CONF_REQ_SENT)) { |
3173 | u8 buf[64]; | 3173 | u8 buf[64]; |
3174 | l2cap_pi(sk)->conf_state |= L2CAP_CONF_REQ_SENT; | ||
3174 | l2cap_send_cmd(conn, l2cap_get_ident(conn), L2CAP_CONF_REQ, | 3175 | l2cap_send_cmd(conn, l2cap_get_ident(conn), L2CAP_CONF_REQ, |
3175 | l2cap_build_conf_req(sk, buf), buf); | 3176 | l2cap_build_conf_req(sk, buf), buf); |
3176 | l2cap_pi(sk)->num_conf_req++; | 3177 | l2cap_pi(sk)->num_conf_req++; |