summaryrefslogtreecommitdiff
path: root/net/bluetooth/msft.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2021-04-06 22:55:56 +0300
committerMarcel Holtmann <marcel@holtmann.org>2021-04-08 13:26:34 +0300
commita61d67188f29ff678e94fb3ffba6c6d292e852c7 (patch)
tree393fadea53dafe200d9bac188e9ca18972084e53 /net/bluetooth/msft.h
parentba29d0360a092997074e07524cf6f798a95a71d8 (diff)
downloadlinux-a61d67188f29ff678e94fb3ffba6c6d292e852c7.tar.xz
Bluetooth: Allow Microsoft extension to indicate curve validation
Some controllers don't support the Simple Pairing Options feature that can indicate the support for P-192 and P-256 public key validation. However they might support the Microsoft vendor extension that can indicate the validiation capability as well. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/msft.h')
-rw-r--r--net/bluetooth/msft.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bluetooth/msft.h b/net/bluetooth/msft.h
index 88ed613dfa08..6e56d94b88d8 100644
--- a/net/bluetooth/msft.h
+++ b/net/bluetooth/msft.h
@@ -22,6 +22,7 @@ int msft_remove_monitor(struct hci_dev *hdev, struct adv_monitor *monitor,
u16 handle);
void msft_req_add_set_filter_enable(struct hci_request *req, bool enable);
int msft_set_filter_enable(struct hci_dev *hdev, bool enable);
+bool msft_curve_validity(struct hci_dev *hdev);
#else
@@ -54,4 +55,9 @@ static inline int msft_set_filter_enable(struct hci_dev *hdev, bool enable)
return -EOPNOTSUPP;
}
+static inline bool msft_curve_validity(struct hci_dev *hdev)
+{
+ return false;
+}
+
#endif