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)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:23 +0000 (17:49 -0700)
commit8401653065a6c0adbf7f54e94f7ee1a85467f01c
tree5bda24eb52ce117fe496fe12f86791c544943053
parent197cf17c5c81851981f2f3fceead81299a901077
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