Bluetooth: Clean up structures left unused
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Fri, 3 Feb 2012 00:08:04 +0000 (21:08 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:33 +0000 (17:01 +0200)
With the use of the new structures and lists for the SMP LTK's
we may remove some code that is now unused. No need to have extra
fields of information inside link_key now that it is only used
for Link Keys.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h

index 83f045a515a0e84a12b390592527a328b83154e9..1b634e1268788b6a8ef198cbada1fdb142ed3b2f 100644 (file)
@@ -270,10 +270,6 @@ enum {
 #define HCI_LK_UNAUTH_COMBINATION      0x04
 #define HCI_LK_AUTH_COMBINATION                0x05
 #define HCI_LK_CHANGED_COMBINATION     0x06
-/* The spec doesn't define types for SMP keys */
-#define HCI_LK_SMP_LTK                 0x81
-#define HCI_LK_SMP_IRK                 0x82
-#define HCI_LK_SMP_CSRK                        0x83
 /* The spec doesn't define types for SMP keys, the _MASTER suffix is implied */
 #define HCI_SMP_STK                    0x80
 #define HCI_SMP_STK_SLAVE              0x81
index 7793fc644b8754f40cf6ba1aeca3bc8aa062d21a..9751da78341d31bac2f570849efdaf301c106e98 100644 (file)
@@ -100,28 +100,12 @@ struct smp_ltk {
        u8 val[16];
 } __packed;
 
-struct key_master_id {
-       __le16 ediv;
-       u8 rand[8];
-} __packed;
-
-struct link_key_data {
-       bdaddr_t bdaddr;
-       u8 type;
-       u8 val[16];
-       u8 pin_len;
-       u8 dlen;
-       u8 data[0];
-} __packed;
-
 struct link_key {
        struct list_head list;
        bdaddr_t bdaddr;
        u8 type;
        u8 val[16];
        u8 pin_len;
-       u8 dlen;
-       u8 data[0];
 };
 
 struct oob_data {