Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203853
b: refs/heads/master
c: 6c2ea7a
h: refs/heads/master
i:
  203851: 9554671
v: v3
  • Loading branch information
Gustavo F. Padovan authored and Marcel Holtmann committed Jul 21, 2010
1 parent 52d2d10 commit abf8a46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 625477523b4e656fbcc5ec2a8ca7a1beb39b1caf
refs/heads/master: 6c2ea7a8f5fea67fa20e5825401b8fce5a78dbf6
6 changes: 5 additions & 1 deletion trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2747,7 +2747,6 @@ static int l2cap_parse_conf_rsp(struct sock *sk, void *rsp, int len, void *data,
rfc.mode != pi->mode)
return -ECONNREFUSED;

pi->mode = rfc.mode;
pi->fcs = 0;

l2cap_add_conf_opt(&ptr, L2CAP_CONF_RFC,
Expand All @@ -2756,6 +2755,11 @@ static int l2cap_parse_conf_rsp(struct sock *sk, void *rsp, int len, void *data,
}
}

if (pi->mode == L2CAP_MODE_BASIC && pi->mode != rfc.mode)
return -ECONNREFUSED;

pi->mode = rfc.mode;

if (*result == L2CAP_CONF_SUCCESS) {
switch (rfc.mode) {
case L2CAP_MODE_ERTM:
Expand Down

0 comments on commit abf8a46

Please sign in to comment.