Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314426
b: refs/heads/master
c: 59e54bd
h: refs/heads/master
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Johan Hedberg committed Jun 5, 2012
1 parent bdeb295 commit ec58898
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8449e381a8558fb1d911017ea26bae681fea4240
refs/heads/master: 59e54bd15d63f102c71c3ce695bca5ed90926e46
3 changes: 3 additions & 0 deletions trunk/include/net/bluetooth/l2cap.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ struct l2cap_conf_rsp {
#define L2CAP_CONF_PENDING 0x0004
#define L2CAP_CONF_EFS_REJECT 0x0005

/* configuration req/rsp continuation flag */
#define L2CAP_CONF_FLAG_CONTINUATION 0x0001

struct l2cap_conf_opt {
__u8 type;
__u8 len;
Expand Down
10 changes: 5 additions & 5 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@ static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data)
}

req->dcid = cpu_to_le16(chan->dcid);
req->flags = cpu_to_le16(0);
req->flags = __constant_cpu_to_le16(0);

return ptr - data;
}
Expand Down Expand Up @@ -3164,7 +3164,7 @@ static int l2cap_parse_conf_req(struct l2cap_chan *chan, void *data)
}
rsp->scid = cpu_to_le16(chan->dcid);
rsp->result = cpu_to_le16(result);
rsp->flags = cpu_to_le16(0x0000);
rsp->flags = __constant_cpu_to_le16(0);

return ptr - data;
}
Expand Down Expand Up @@ -3263,7 +3263,7 @@ static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len, voi
}

req->dcid = cpu_to_le16(chan->dcid);
req->flags = cpu_to_le16(0x0000);
req->flags = __constant_cpu_to_le16(0);

return ptr - data;
}
Expand Down Expand Up @@ -3618,7 +3618,7 @@ static inline int l2cap_config_req(struct l2cap_conn *conn, struct l2cap_cmd_hdr
memcpy(chan->conf_req + chan->conf_len, req->data, len);
chan->conf_len += len;

if (flags & 0x0001) {
if (flags & L2CAP_CONF_FLAG_CONTINUATION) {
/* Incomplete config. Send empty response. */
l2cap_send_cmd(conn, cmd->ident, L2CAP_CONF_RSP,
l2cap_build_conf_rsp(chan, rsp,
Expand Down Expand Up @@ -3769,7 +3769,7 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr
goto done;
}

if (flags & 0x01)
if (flags & L2CAP_CONF_FLAG_CONTINUATION)
goto done;

set_bit(CONF_INPUT_DONE, &chan->conf_state);
Expand Down

0 comments on commit ec58898

Please sign in to comment.