]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Remove unneeded flag
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Tue, 14 May 2013 08:44:17 +0000 (11:44 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 20 May 2013 21:40:08 +0000 (18:40 -0300)
Remove HCI_LINK_KEYS flag since using HCI_MGMT is enough for test that
user space expects the kernel managing link keys.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci.h
net/bluetooth/mgmt.c

index e0512aaef4b85df8d05c7f91983f1054ee6a7628..3c592cf473dae89f5fb529bcfdeb445612604622 100644 (file)
@@ -107,7 +107,6 @@ enum {
        HCI_MGMT,
        HCI_PAIRABLE,
        HCI_SERVICE_CACHE,
-       HCI_LINK_KEYS,
        HCI_DEBUG_KEYS,
        HCI_UNREGISTER,
 
index 8567764aea763c8b432e34d10fa9f26440fd45f0..5cd3aee77f8e3ee0e5e7a8db278fcac68ae3ed5a 100644 (file)
@@ -1736,8 +1736,6 @@ static int load_link_keys(struct sock *sk, struct hci_dev *hdev, void *data,
 
        hci_link_keys_clear(hdev);
 
-       set_bit(HCI_LINK_KEYS, &hdev->dev_flags);
-
        if (cp->debug_keys)
                set_bit(HCI_DEBUG_KEYS, &hdev->dev_flags);
        else