summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2011-10-11 14:04:31 +0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-11 10:44:44 -0300
commitd57b0e8b8990419b7b7ae0dda5cc4452720b3c7c (patch)
tree1e08d57106396709bdfc261d86b7fd85c00ca8cd /net/bluetooth/l2cap_core.c
parentd4b8d1c9c1564f4cbce86cbbee099fadf735b226 (diff)
downloadblackbird-op-linux-d57b0e8b8990419b7b7ae0dda5cc4452720b3c7c.tar.gz
blackbird-op-linux-d57b0e8b8990419b7b7ae0dda5cc4452720b3c7c.zip
Bluetooth: convert flushable variable to flag in l2cap chan
flushable variable inside l2cap_chan is a logical one and can be easily converted to flag. Added flags in l2cap_chan structure. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 3158cec9e274..b21ecfffcaa9 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -1253,7 +1253,8 @@ static void l2cap_do_send(struct l2cap_chan *chan, struct sk_buff *skb)
BT_DBG("chan %p, skb %p len %d", chan, skb, skb->len);
- if (!chan->flushable && lmp_no_flush_capable(hcon->hdev))
+ if (!test_bit(FLAG_FLUSHABLE, &chan->flags) &&
+ lmp_no_flush_capable(hcon->hdev))
flags = ACL_START_NO_FLUSH;
else
flags = ACL_START;
OpenPOWER on IntegriCloud