1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
3 * Copyright (c) 2019 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
10 #include <linux/kernel.h>
11 #include <net/regulatory.h>
16 /* DFS regdomains supported by Firmware */
17 enum ath11k_dfs_region
{
29 #define ATH11K_REG_PHY_BITMAP_NO11AX BIT(5)
31 /* ATH11K Regulatory API's */
32 void ath11k_reg_init(struct ath11k
*ar
);
33 void ath11k_reg_reset_info(struct cur_regulatory_info
*reg_info
);
34 void ath11k_reg_free(struct ath11k_base
*ab
);
35 void ath11k_regd_update_work(struct work_struct
*work
);
36 struct ieee80211_regdomain
*
37 ath11k_reg_build_regd(struct ath11k_base
*ab
,
38 struct cur_regulatory_info
*reg_info
, bool intersect
,
39 enum wmi_vdev_type vdev_type
,
40 enum ieee80211_ap_reg_power power_type
);
41 int ath11k_regd_update(struct ath11k
*ar
);
42 int ath11k_reg_update_chan_list(struct ath11k
*ar
, bool wait
);
43 enum wmi_reg_6ghz_ap_type
44 ath11k_reg_ap_pwr_convert(enum ieee80211_ap_reg_power power_type
);
45 int ath11k_reg_handle_chan_list(struct ath11k_base
*ab
,
46 struct cur_regulatory_info
*reg_info
,
47 enum ieee80211_ap_reg_power power_type
);
48 int ath11k_reg_set_cc(struct ath11k
*ar
);