Skip to content

Commit

Permalink
Bluetooth: Fix check for the ERTM local busy state
Browse files Browse the repository at this point in the history
Local busy is encoded in a bitfield, but was not masked out correctly.

Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: Gustavo F. Padovan <[email protected]>
  • Loading branch information
Mat Martineau authored and Gustavo F. Padovan committed Jun 8, 2011
1 parent d8d69c5 commit e694928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3540,7 +3540,7 @@ static inline int l2cap_data_channel_iframe(struct l2cap_chan *chan, u16 rx_cont
goto drop;
}

if (chan->conn_state == L2CAP_CONN_LOCAL_BUSY)
if (chan->conn_state & L2CAP_CONN_LOCAL_BUSY)
goto drop;

if (chan->conn_state & L2CAP_CONN_SREJ_SENT) {
Expand Down

0 comments on commit e694928

Please sign in to comment.