From: Hemant Gupta Date: Wed, 28 Mar 2012 11:39:09 +0000 (+0530) Subject: Bluetooth: Use correct flags for checking HCI_SSP_ENABLED bit X-Git-Tag: v3.4-rc3~32^2^2~12^2~14 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3f17790c2d8524c3ddc4946bd716714becf079e1;p=~emulex%2Finfiniband.git Bluetooth: Use correct flags for checking HCI_SSP_ENABLED bit 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 Acked-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index daefaac5113..8e103281a09 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -427,7 +427,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)); }