Browse Source

Bluetooth: Update the list of L2CAP fixed channels

The list of L2CAP fixed channels increased with newer versions of the
specification. This just updates the constants for it.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Marcel Holtmann 11 years ago
parent
commit
a6801ca985
2 changed files with 5 additions and 2 deletions
  1. 4 1
      include/net/bluetooth/l2cap.h
  2. 1 1
      net/bluetooth/l2cap_core.c

+ 4 - 1
include/net/bluetooth/l2cap.h

@@ -134,9 +134,12 @@ struct l2cap_conninfo {
 #define L2CAP_FCS_CRC16		0x01
 #define L2CAP_FCS_CRC16		0x01
 
 
 /* L2CAP fixed channels */
 /* L2CAP fixed channels */
-#define L2CAP_FC_L2CAP		0x02
+#define L2CAP_FC_SIG_BREDR	0x02
 #define L2CAP_FC_CONNLESS	0x04
 #define L2CAP_FC_CONNLESS	0x04
 #define L2CAP_FC_A2MP		0x08
 #define L2CAP_FC_A2MP		0x08
+#define L2CAP_FC_ATT		0x10
+#define L2CAP_FC_SIG_LE		0x20
+#define L2CAP_FC_SMP_LE		0x40
 
 
 /* L2CAP Control Field bit masks */
 /* L2CAP Control Field bit masks */
 #define L2CAP_CTRL_SAR			0xC000
 #define L2CAP_CTRL_SAR			0xC000

+ 1 - 1
net/bluetooth/l2cap_core.c

@@ -46,7 +46,7 @@
 bool disable_ertm;
 bool disable_ertm;
 
 
 static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN | L2CAP_FEAT_UCD;
 static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN | L2CAP_FEAT_UCD;
-static u8 l2cap_fixed_chan[8] = { L2CAP_FC_L2CAP | L2CAP_FC_CONNLESS, };
+static u8 l2cap_fixed_chan[8] = { L2CAP_FC_SIG_BREDR | L2CAP_FC_CONNLESS, };
 
 
 static LIST_HEAD(chan_list);
 static LIST_HEAD(chan_list);
 static DEFINE_RWLOCK(chan_list_lock);
 static DEFINE_RWLOCK(chan_list_lock);