summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-17 21:52:23 -0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-17 21:52:23 -0800
commit89b20242bc4a74a4f4446ec5a8d49cde51aaa6f7 (patch)
tree477df70847cadf491e28f46bb04556185790162c /lib
parentde2a487b40b3a60bd25ce52355bba97a1508106e (diff)
downloadbluez-89b20242bc4a74a4f4446ec5a8d49cde51aaa6f7.tar.gz
Add LMP features for Low Energy support
Diffstat (limited to 'lib')
-rw-r--r--lib/hci.c6
-rw-r--r--lib/hci.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/hci.c b/lib/hci.c
index 0ea8b6bf2..6b5187b40 100644
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -667,8 +667,8 @@ static hci_map lmp_features_map[8][9] = {
{ "<no. 34>", 0x04 }, /* Bit 2 */
{ "<AFH cap. slave>", LMP_AFH_CAP_SLV }, /* Bit 3 */
{ "<AFH class. slave>", LMP_AFH_CLS_SLV }, /* Bit 4 */
- { "<no. 37>", 0x20 }, /* Bit 5 */
- { "<no. 38>", 0x40 }, /* Bit 6 */
+ { "<BR/EDR not supp.>", LMP_NO_BREDR }, /* Bit 5 */
+ { "<LE support>", LMP_LE }, /* Bit 6 */
{ "<3-slot EDR ACL>", LMP_EDR_3SLOT }, /* Bit 7 */
{ NULL }
},
@@ -685,7 +685,7 @@ static hci_map lmp_features_map[8][9] = {
},
{ /* Byte 6 */
{ "<extended inquiry>", LMP_EXT_INQ }, /* Bit 0 */
- { "<no. 49>", 0x02 }, /* Bit 1 */
+ { "<LE and BR/EDR>", LMP_LE_BREDR }, /* Bit 1 */
{ "<no. 50>", 0x04 }, /* Bit 2 */
{ "<simple pairing>", LMP_SIMPLE_PAIR }, /* Bit 3 */
{ "<encapsulated PDU>", LMP_ENCAPS_PDU }, /* Bit 4 */
diff --git a/lib/hci.h b/lib/hci.h
index 38dac7475..10dc02997 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -236,6 +236,8 @@ enum {
#define LMP_EV5 0x02
#define LMP_AFH_CAP_SLV 0x08
#define LMP_AFH_CLS_SLV 0x10
+#define LMP_NO_BREDR 0x20
+#define LMP_LE 0x40
#define LMP_EDR_3SLOT 0x80
#define LMP_EDR_5SLOT 0x01
@@ -248,6 +250,7 @@ enum {
#define LMP_EDR_3S_ESCO 0x80
#define LMP_EXT_INQ 0x01
+#define LMP_LE_BREDR 0x02
#define LMP_SIMPLE_PAIR 0x08
#define LMP_ENCAPS_PDU 0x10
#define LMP_ERR_DAT_REP 0x20