aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-01-16 01:37:38 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2014-02-13 02:51:35 -0500
commiteb9a8f3fb6762a4e6ae0aa9e96532c9c544f400e (patch)
treeb9f366377b8a96518c1e241be1eb17043f234882 /net/bluetooth/hci_event.c
parenteadd663a6ab78df479d116a59368a70dc60d8288 (diff)
Bluetooth: Track Secure Connections support of remote devices
It is important to know if Secure Connections support has been enabled for a given remote device. The information is provided in the remote host features page. So track this information and provide a simple helper function to extract the status. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index da1eca1c43db..8c44bbe19add 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -2898,6 +2898,9 @@ static void hci_remote_ext_features_evt(struct hci_dev *hdev,
2898 * features do not indicate SSP support */ 2898 * features do not indicate SSP support */
2899 clear_bit(HCI_CONN_SSP_ENABLED, &conn->flags); 2899 clear_bit(HCI_CONN_SSP_ENABLED, &conn->flags);
2900 } 2900 }
2901
2902 if (ev->features[0] & LMP_HOST_SC)
2903 set_bit(HCI_CONN_SC_ENABLED, &conn->flags);
2901 } 2904 }
2902 2905
2903 if (conn->state != BT_CONFIG) 2906 if (conn->state != BT_CONFIG)