Bluetooth: Add constants and macro declaration for transparent data
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>
Mon, 19 Aug 2013 12:24:00 +0000 (14:24 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 21 Aug 2013 14:47:12 +0000 (16:47 +0200)
This patch defines constants and macro for transparent data LMP
features. It refers to Bluetooth Core V4.0 specification, Part C, Chap
3.3 which defines LMP feature mask.

Signed-off-by: Frédéric Dalleau <frederic.dalleau@linux.intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h

index a01fbb4a04992f14cd5357413f4018aa4f8313ec..aaeaf0938ec0af1181c4660c8fa0468937e1bc74 100644 (file)
@@ -238,6 +238,7 @@ enum {
 #define LMP_CVSD       0x01
 #define LMP_PSCHEME    0x02
 #define LMP_PCONTROL   0x04
+#define LMP_TRANSPARENT        0x08
 
 #define LMP_RSSI_INQ   0x40
 #define LMP_ESCO       0x80
index 61ca2ce5b063d05b19dcc07dbcc27461a47e30ee..b2bfab8018408f68718ae466de6614cfc0fe1f9a 100644 (file)
@@ -800,6 +800,7 @@ void hci_conn_del_sysfs(struct hci_conn *conn);
 #define lmp_lsto_capable(dev)      ((dev)->features[0][7] & LMP_LSTO)
 #define lmp_inq_tx_pwr_capable(dev) ((dev)->features[0][7] & LMP_INQ_TX_PWR)
 #define lmp_ext_feat_capable(dev)  ((dev)->features[0][7] & LMP_EXTFEATURES)
+#define lmp_transp_capable(dev)    ((dev)->features[0][2] & LMP_TRANSPARENT)
 
 /* ----- Extended LMP capabilities ----- */
 #define lmp_host_ssp_capable(dev)  ((dev)->features[1][0] & LMP_HOST_SSP)