Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194855
b: refs/heads/master
c: 0041ecf
h: refs/heads/master
i:
  194853: 5e3f377
  194851: 3b90e68
  194847: ac87118
v: v3
  • Loading branch information
João Paulo Rechi Vita authored and Marcel Holtmann committed May 10, 2010
1 parent af715bf commit f78eef5
Show file tree
Hide file tree
Showing 2 changed files with 15 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: bd3c9e255e76ae232d417e3914ca5d80ca3e9485
refs/heads/master: 0041ecfa3025d7612fdaab12b2f07c9c3c09f42f
15 changes: 14 additions & 1 deletion trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1814,9 +1814,22 @@ static int l2cap_sock_setsockopt_old(struct socket *sock, int optname, char __us
break;
}

l2cap_pi(sk)->mode = opts.mode;
switch (l2cap_pi(sk)->mode) {
case L2CAP_MODE_BASIC:
break;
case L2CAP_MODE_ERTM:
case L2CAP_MODE_STREAMING:
if (enable_ertm)
break;
/* fall through */
default:
err = -EINVAL;
break;
}

l2cap_pi(sk)->imtu = opts.imtu;
l2cap_pi(sk)->omtu = opts.omtu;
l2cap_pi(sk)->mode = opts.mode;
l2cap_pi(sk)->fcs = opts.fcs;
l2cap_pi(sk)->max_tx = opts.max_tx;
l2cap_pi(sk)->tx_win = (__u8)opts.txwin_size;
Expand Down

0 comments on commit f78eef5

Please sign in to comment.