0001
0002
0003
0004
0005
0006 #define MSFT_FEATURE_MASK_BREDR_RSSI_MONITOR BIT(0)
0007 #define MSFT_FEATURE_MASK_LE_CONN_RSSI_MONITOR BIT(1)
0008 #define MSFT_FEATURE_MASK_LE_ADV_RSSI_MONITOR BIT(2)
0009 #define MSFT_FEATURE_MASK_LE_ADV_MONITOR BIT(3)
0010 #define MSFT_FEATURE_MASK_CURVE_VALIDITY BIT(4)
0011 #define MSFT_FEATURE_MASK_CONCURRENT_ADV_MONITOR BIT(5)
0012
0013 #if IS_ENABLED(CONFIG_BT_MSFTEXT)
0014
0015 bool msft_monitor_supported(struct hci_dev *hdev);
0016 void msft_register(struct hci_dev *hdev);
0017 void msft_unregister(struct hci_dev *hdev);
0018 void msft_do_open(struct hci_dev *hdev);
0019 void msft_do_close(struct hci_dev *hdev);
0020 void msft_vendor_evt(struct hci_dev *hdev, void *data, struct sk_buff *skb);
0021 __u64 msft_get_features(struct hci_dev *hdev);
0022 int msft_add_monitor_pattern(struct hci_dev *hdev, struct adv_monitor *monitor);
0023 int msft_remove_monitor(struct hci_dev *hdev, struct adv_monitor *monitor);
0024 void msft_req_add_set_filter_enable(struct hci_request *req, bool enable);
0025 int msft_set_filter_enable(struct hci_dev *hdev, bool enable);
0026 int msft_suspend_sync(struct hci_dev *hdev);
0027 int msft_resume_sync(struct hci_dev *hdev);
0028 bool msft_curve_validity(struct hci_dev *hdev);
0029
0030 #else
0031
0032 static inline bool msft_monitor_supported(struct hci_dev *hdev)
0033 {
0034 return false;
0035 }
0036
0037 static inline void msft_register(struct hci_dev *hdev) {}
0038 static inline void msft_unregister(struct hci_dev *hdev) {}
0039 static inline void msft_do_open(struct hci_dev *hdev) {}
0040 static inline void msft_do_close(struct hci_dev *hdev) {}
0041 static inline void msft_vendor_evt(struct hci_dev *hdev, void *data,
0042 struct sk_buff *skb) {}
0043 static inline __u64 msft_get_features(struct hci_dev *hdev) { return 0; }
0044 static inline int msft_add_monitor_pattern(struct hci_dev *hdev,
0045 struct adv_monitor *monitor)
0046 {
0047 return -EOPNOTSUPP;
0048 }
0049
0050 static inline int msft_remove_monitor(struct hci_dev *hdev,
0051 struct adv_monitor *monitor)
0052 {
0053 return -EOPNOTSUPP;
0054 }
0055
0056 static inline void msft_req_add_set_filter_enable(struct hci_request *req,
0057 bool enable) {}
0058 static inline int msft_set_filter_enable(struct hci_dev *hdev, bool enable)
0059 {
0060 return -EOPNOTSUPP;
0061 }
0062
0063 static inline int msft_suspend_sync(struct hci_dev *hdev)
0064 {
0065 return -EOPNOTSUPP;
0066 }
0067
0068 static inline int msft_resume_sync(struct hci_dev *hdev)
0069 {
0070 return -EOPNOTSUPP;
0071 }
0072
0073 static inline bool msft_curve_validity(struct hci_dev *hdev)
0074 {
0075 return false;
0076 }
0077
0078 #endif