]> Pileus Git - ~andy/linux/commitdiff
Bluetooth: The L2CAP fixed channel connectionless data is supported
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 12 Oct 2013 15:18:18 +0000 (08:18 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 12 Oct 2013 15:30:29 +0000 (18:30 +0300)
The implementation actually supports the L2CAP connectionless data
channel. So set it as supported in the fixed channels bitmask.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c

index 12523c79eb3bd3b0591efb8be5754872dd66ea2d..56f540e7a8fc11a30a10b874f4087fb7121a6a36 100644 (file)
@@ -131,6 +131,7 @@ struct l2cap_conninfo {
 
 /* L2CAP fixed channels */
 #define L2CAP_FC_L2CAP         0x02
+#define L2CAP_FC_CONNLESS      0x04
 #define L2CAP_FC_A2MP          0x08
 
 /* L2CAP Control Field bit masks */
index e932ffda5445f72f265e1dae90d90a86f5054d1b..8b5437c44c7b297a1000b182a818843df22c38cb 100644 (file)
@@ -44,7 +44,7 @@
 bool disable_ertm;
 
 static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN;
-static u8 l2cap_fixed_chan[8] = { L2CAP_FC_L2CAP, };
+static u8 l2cap_fixed_chan[8] = { L2CAP_FC_L2CAP | L2CAP_FC_CONNLESS, };
 
 static LIST_HEAD(chan_list);
 static DEFINE_RWLOCK(chan_list_lock);