Merge tag 's390-5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[linux-2.6-microblaze.git] / net / bluetooth / msft.c
index 47b104f..e28f154 100644 (file)
@@ -142,6 +142,9 @@ static bool read_supported_features(struct hci_dev *hdev,
        msft->evt_prefix_len = rp->evt_prefix_len;
        msft->features = __le64_to_cpu(rp->features);
 
+       if (msft->features & MSFT_FEATURE_MASK_CURVE_VALIDITY)
+               hdev->msft_curve_validity = true;
+
        kfree_skb(skb);
        return true;
 
@@ -605,3 +608,8 @@ int msft_set_filter_enable(struct hci_dev *hdev, bool enable)
 
        return err;
 }
+
+bool msft_curve_validity(struct hci_dev *hdev)
+{
+       return hdev->msft_curve_validity;
+}