Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291075
b: refs/heads/master
c: 978c93b
h: refs/heads/master
i:
  291073: 0d09efe
  291071: 3645cf7
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Johan Hedberg committed Feb 29, 2012
1 parent 164c682 commit d688367
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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: 89bb46d02046b59c1de3d2e92680f3a1062750d0
refs/heads/master: 978c93b90fc4768e295b20492b5db76d5e026e5e
1 change: 1 addition & 0 deletions trunk/include/net/bluetooth/l2cap.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ struct l2cap_conn {
unsigned int mtu;

__u32 feat_mask;
__u8 fixed_chan_mask;

__u8 info_state;
__u8 info_ident;
Expand Down
9 changes: 7 additions & 2 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3209,7 +3209,8 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn, struct l2cap_cm
return 0;
}

if (type == L2CAP_IT_FEAT_MASK) {
switch (type) {
case L2CAP_IT_FEAT_MASK:
conn->feat_mask = get_unaligned_le32(rsp->data);

if (conn->feat_mask & L2CAP_FEAT_FIXED_CHAN) {
Expand All @@ -3226,11 +3227,15 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn, struct l2cap_cm

l2cap_conn_start(conn);
}
} else if (type == L2CAP_IT_FIXED_CHAN) {
break;

case L2CAP_IT_FIXED_CHAN:
conn->fixed_chan_mask = rsp->data[0];
conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_DONE;
conn->info_ident = 0;

l2cap_conn_start(conn);
break;
}

return 0;
Expand Down

0 comments on commit d688367

Please sign in to comment.