reg.h 926 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: BSD-3-Clause-Clear */
  2. /*
  3. * Copyright (c) 2019 The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef ATH11K_REG_H
  6. #define ATH11K_REG_H
  7. #include <linux/kernel.h>
  8. #include <net/regulatory.h>
  9. struct ath11k_base;
  10. struct ath11k;
  11. /* DFS regdomains supported by Firmware */
  12. enum ath11k_dfs_region {
  13. ATH11K_DFS_REG_UNSET,
  14. ATH11K_DFS_REG_FCC,
  15. ATH11K_DFS_REG_ETSI,
  16. ATH11K_DFS_REG_MKK,
  17. ATH11K_DFS_REG_CN,
  18. ATH11K_DFS_REG_KR,
  19. ATH11K_DFS_REG_MKK_N,
  20. ATH11K_DFS_REG_UNDEF,
  21. };
  22. /* ATH11K Regulatory API's */
  23. void ath11k_reg_init(struct ath11k *ar);
  24. void ath11k_reg_free(struct ath11k_base *ab);
  25. void ath11k_regd_update_work(struct work_struct *work);
  26. struct ieee80211_regdomain *
  27. ath11k_reg_build_regd(struct ath11k_base *ab,
  28. struct cur_regulatory_info *reg_info, bool intersect);
  29. int ath11k_regd_update(struct ath11k *ar);
  30. int ath11k_reg_update_chan_list(struct ath11k *ar, bool wait);
  31. #endif