Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168745
b: refs/heads/master
c: 68ae663
h: refs/heads/master
i:
  168743: 24fd1df
v: v3
  • Loading branch information
Gustavo F. Padovan authored and Marcel Holtmann committed Nov 16, 2009
1 parent c2acbd6 commit a2b5f61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: a0e55a32afc2130e5ae506755e4b8eb42a23b568
refs/heads/master: 68ae6639b6dff117ba37f648f1611a4629abadf0
11 changes: 8 additions & 3 deletions trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2394,13 +2394,21 @@ static int l2cap_parse_conf_req(struct sock *sk, void *data)
rfc.monitor_timeout = L2CAP_DEFAULT_MONITOR_TO;

pi->conf_state |= L2CAP_CONF_MODE_DONE;

l2cap_add_conf_opt(&ptr, L2CAP_CONF_RFC,
sizeof(rfc), (unsigned long) &rfc);

break;

case L2CAP_MODE_STREAMING:
pi->remote_tx_win = rfc.txwin_size;
pi->max_pdu_size = rfc.max_pdu_size;

pi->conf_state |= L2CAP_CONF_MODE_DONE;

l2cap_add_conf_opt(&ptr, L2CAP_CONF_RFC,
sizeof(rfc), (unsigned long) &rfc);

break;

default:
Expand All @@ -2410,9 +2418,6 @@ static int l2cap_parse_conf_req(struct sock *sk, void *data)
rfc.mode = pi->mode;
}

l2cap_add_conf_opt(&ptr, L2CAP_CONF_RFC,
sizeof(rfc), (unsigned long) &rfc);

if (result == L2CAP_CONF_SUCCESS)
pi->conf_state |= L2CAP_CONF_OUTPUT_DONE;
}
Expand Down

0 comments on commit a2b5f61

Please sign in to comment.