Bluetooth: Remove unused field in hci_conn
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Thu, 7 Jul 2011 21:59:42 +0000 (18:59 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Fri, 8 Jul 2011 20:37:22 +0000 (17:37 -0300)
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/smp.c

index 306430ef164bf8b4bbc987ff5ffda6d44dbc2fe0..4ff530e3892bec1b9708a0514bc2ea7ea507e0fb 100644 (file)
@@ -265,7 +265,6 @@ struct hci_conn {
        __u8            power_save;
        __u16           disc_timeout;
        unsigned long   pend;
-       __u8            ltk[16];
 
        __u8            remote_cap;
        __u8            remote_oob;
index 5b7217919202acb0588b2809b77538abf57a2645..a8b971b75a67a7f4c2a5675e5ebebb888cfe5245 100644 (file)
@@ -367,8 +367,6 @@ static u8 smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
        swap128(skb->data, random);
        skb_pull(skb, sizeof(random));
 
-       memset(hcon->ltk, 0, sizeof(hcon->ltk));
-
        if (conn->hcon->out)
                ret = smp_c1(tfm, conn->tk, random, conn->preq, conn->prsp, 0,
                                conn->src, conn->hcon->dst_type, conn->dst,