]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Use correct flags for checking HCI_SSP_ENABLED bit
authorHemant Gupta <hemant.gupta@stericsson.com>
Wed, 28 Mar 2012 11:39:09 +0000 (17:09 +0530)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 15:29:02 +0000 (12:29 -0300)
This patch uses the correct flags for checking the HCI_SSP_ENABLED bit.
Without this authentication request was not being initiated.

Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h

index fa2c77849a297b22531f833acf84efccf616919f..c8d5bebc0eaa1358455f1fcbd75ca3687bd74086 100644 (file)
@@ -431,7 +431,7 @@ enum {
 static inline bool hci_conn_ssp_enabled(struct hci_conn *conn)
 {
        struct hci_dev *hdev = conn->hdev;
-       return (test_bit(HCI_SSP_ENABLED, &hdev->flags) &&
+       return (test_bit(HCI_SSP_ENABLED, &hdev->dev_flags) &&
                                test_bit(HCI_CONN_SSP_ENABLED, &conn->flags));
 }