aosp.h 643 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2021 Intel Corporation
  4. */
  5. #if IS_ENABLED(CONFIG_BT_AOSPEXT)
  6. void aosp_do_open(struct hci_dev *hdev);
  7. void aosp_do_close(struct hci_dev *hdev);
  8. bool aosp_has_quality_report(struct hci_dev *hdev);
  9. int aosp_set_quality_report(struct hci_dev *hdev, bool enable);
  10. #else
  11. static inline void aosp_do_open(struct hci_dev *hdev) {}
  12. static inline void aosp_do_close(struct hci_dev *hdev) {}
  13. static inline bool aosp_has_quality_report(struct hci_dev *hdev)
  14. {
  15. return false;
  16. }
  17. static inline int aosp_set_quality_report(struct hci_dev *hdev, bool enable)
  18. {
  19. return -EOPNOTSUPP;
  20. }
  21. #endif