blob: 2fd8886d51b26a9fbffa09a626c5cad501e8b781 [file] [log] [blame]
Marcel Holtmannf67743f2021-04-06 21:55:52 +02001// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2021 Intel Corporation
4 */
5
6#if IS_ENABLED(CONFIG_BT_AOSPEXT)
7
8void aosp_do_open(struct hci_dev *hdev);
9void aosp_do_close(struct hci_dev *hdev);
10
Joseph Hwang258f56d2021-11-02 15:19:29 +080011bool aosp_has_quality_report(struct hci_dev *hdev);
12int aosp_set_quality_report(struct hci_dev *hdev, bool enable);
13
Marcel Holtmannf67743f2021-04-06 21:55:52 +020014#else
15
16static inline void aosp_do_open(struct hci_dev *hdev) {}
17static inline void aosp_do_close(struct hci_dev *hdev) {}
18
Joseph Hwang258f56d2021-11-02 15:19:29 +080019static inline bool aosp_has_quality_report(struct hci_dev *hdev)
20{
21 return false;
22}
23
24static inline int aosp_set_quality_report(struct hci_dev *hdev, bool enable)
25{
26 return -EOPNOTSUPP;
27}
28
Marcel Holtmannf67743f2021-04-06 21:55:52 +020029#endif