Linux 6.10-rc3
[linux-stable.git] / net / bluetooth / aosp.h
blob2fd8886d51b26a9fbffa09a626c5cad501e8b781
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (C) 2021 Intel Corporation
4 */
6 #if IS_ENABLED(CONFIG_BT_AOSPEXT)
8 void aosp_do_open(struct hci_dev *hdev);
9 void aosp_do_close(struct hci_dev *hdev);
11 bool aosp_has_quality_report(struct hci_dev *hdev);
12 int aosp_set_quality_report(struct hci_dev *hdev, bool enable);
14 #else
16 static inline void aosp_do_open(struct hci_dev *hdev) {}
17 static inline void aosp_do_close(struct hci_dev *hdev) {}
19 static inline bool aosp_has_quality_report(struct hci_dev *hdev)
21 return false;
24 static inline int aosp_set_quality_report(struct hci_dev *hdev, bool enable)
26 return -EOPNOTSUPP;
29 #endif