Bluetooth: Introduce L2CAP_LM_FLUSHABLE to allow flushing of ACL packets.
authorNick Pelly <npelly@google.com>
Wed, 9 Dec 2009 03:42:21 +0000 (19:42 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:36:00 +0000 (15:36 -0800)
commitd7897fd1e9fb3a5df0740dc2dc45ec94ca0965f2
tree212679db880f96eafc6e1ed81aa2f3ab8e0f7e15
parent7b75ff3c3f0b0014dd22c1db05ca916cd4b886e8
Bluetooth: Introduce L2CAP_LM_FLUSHABLE to allow flushing of ACL packets.

With Bluetooth 2.1 ACL packets can be flushable or non-flushable. This changes
makes the default ACL packet non-flushable, and allows selection of flushable
packets on a per-L2CAP socket basis with L2CAP_LM_FLUSHABLE.

Note the HCI Write Automatic Flush Timeout command also needs to be issued
to set the flush timeout to non-zero.

Need to featurize this change to Bluetooth 2.1 chipsets only before pushing
upstream.

Signed-off-by: Nick Pelly <npelly@google.com>
include/net/bluetooth/hci.h
include/net/bluetooth/l2cap.h
net/bluetooth/hci_core.c
net/bluetooth/l2cap.c