OSDN Git Service

Add LMP features for Low Energy support
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Dec 2009 05:52:23 +0000 (21:52 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Dec 2009 05:52:23 +0000 (21:52 -0800)
lib/hci.c
lib/hci.h

index 0ea8b6b..6b5187b 100644 (file)
--- 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 */
index 38dac74..10dc029 100644 (file)
--- 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