Path: blob/main/sys/contrib/dev/athk/ath11k/reg.h
106601 views
/* SPDX-License-Identifier: BSD-3-Clause-Clear */1/*2* Copyright (c) 2019 The Linux Foundation. All rights reserved.3* Copyright (c) 2022-2025 Qualcomm Innovation Center, Inc. All rights reserved.4*/56#ifndef ATH11K_REG_H7#define ATH11K_REG_H89#include <linux/kernel.h>10#include <net/regulatory.h>1112struct ath11k_base;13struct ath11k;1415/* DFS regdomains supported by Firmware */16enum ath11k_dfs_region {17ATH11K_DFS_REG_UNSET,18ATH11K_DFS_REG_FCC,19ATH11K_DFS_REG_ETSI,20ATH11K_DFS_REG_MKK,21ATH11K_DFS_REG_CN,22ATH11K_DFS_REG_KR,23ATH11K_DFS_REG_MKK_N,24ATH11K_DFS_REG_UNDEF,25};2627/* Phy bitmaps */28#define ATH11K_REG_PHY_BITMAP_NO11AX BIT(5)2930/* ATH11K Regulatory API's */31void ath11k_reg_init(struct ath11k *ar);32void ath11k_reg_reset_info(struct cur_regulatory_info *reg_info);33void ath11k_reg_free(struct ath11k_base *ab);34void ath11k_regd_update_work(struct work_struct *work);35void ath11k_regd_update_chan_list_work(struct work_struct *work);36struct ieee80211_regdomain *37ath11k_reg_build_regd(struct ath11k_base *ab,38struct cur_regulatory_info *reg_info, bool intersect,39enum wmi_vdev_type vdev_type,40enum ieee80211_ap_reg_power power_type);41int ath11k_regd_update(struct ath11k *ar);42int ath11k_reg_update_chan_list(struct ath11k *ar, bool wait);43enum wmi_reg_6ghz_ap_type44ath11k_reg_ap_pwr_convert(enum ieee80211_ap_reg_power power_type);45int ath11k_reg_handle_chan_list(struct ath11k_base *ab,46struct cur_regulatory_info *reg_info,47enum ieee80211_ap_reg_power power_type);48int ath11k_reg_set_cc(struct ath11k *ar);49#endif505152