summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMat Martineau <mathewm@codeaurora.org>2011-06-03 16:21:10 -0700
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-08 16:58:19 -0300
commite694928067b52f569a7df39b7f02efd7b34ab8f4 (patch)
tree3d9f6ac00ab5f525934d6bed824642c72b4e7dae /net/bluetooth
parentd8d69c54fb8fbb7483180b609f99f2e3e539962b (diff)
downloadop-kernel-dev-e694928067b52f569a7df39b7f02efd7b34ab8f4.zip
op-kernel-dev-e694928067b52f569a7df39b7f02efd7b34ab8f4.tar.gz
Bluetooth: Fix check for the ERTM local busy state
Local busy is encoded in a bitfield, but was not masked out correctly. Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index e3b86fc..dff9d76 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -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) {
OpenPOWER on IntegriCloud