diff options
-rw-r--r-- | net/bluetooth/hci_event.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 488fdbcfe762..8c3261db7611 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2869,9 +2869,9 @@ static inline void hci_remote_ext_features_evt(struct hci_dev *hdev, struct sk_b | |||
2869 | 2869 | ||
2870 | ie = hci_inquiry_cache_lookup(hdev, &conn->dst); | 2870 | ie = hci_inquiry_cache_lookup(hdev, &conn->dst); |
2871 | if (ie) | 2871 | if (ie) |
2872 | ie->data.ssp_mode = (ev->features[0] & 0x01); | 2872 | ie->data.ssp_mode = (ev->features[0] & LMP_HOST_SSP); |
2873 | 2873 | ||
2874 | if (ev->features[0] & 0x01) | 2874 | if (ev->features[0] & LMP_HOST_SSP) |
2875 | set_bit(HCI_CONN_SSP_ENABLED, &conn->flags); | 2875 | set_bit(HCI_CONN_SSP_ENABLED, &conn->flags); |
2876 | } | 2876 | } |
2877 | 2877 | ||
@@ -3224,7 +3224,7 @@ static inline void hci_remote_host_features_evt(struct hci_dev *hdev, struct sk_ | |||
3224 | 3224 | ||
3225 | ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); | 3225 | ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); |
3226 | if (ie) | 3226 | if (ie) |
3227 | ie->data.ssp_mode = (ev->features[0] & 0x01); | 3227 | ie->data.ssp_mode = (ev->features[0] & LMP_HOST_SSP); |
3228 | 3228 | ||
3229 | hci_dev_unlock(hdev); | 3229 | hci_dev_unlock(hdev); |
3230 | } | 3230 | } |