FILE
reg.h
File preview with syntax highlighting.
linux-6.19.14/drivers/net/wireless/ath/ath11k/reg.h
1/* SPDX-License-Identifier: BSD-3-Clause-Clear */ 2/* 3 * Copyright (c) 2019 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022-2025 Qualcomm Innovation Center, Inc. All rights reserved. 5 */ 6 7#ifndef ATH11K_REG_H 8#define ATH11K_REG_H 9 10#include <linux/kernel.h> 11#include <net/regulatory.h> 12 13struct ath11k_base; 14struct ath11k; 15 16/* DFS regdomains supported by Firmware */ 17enum ath11k_dfs_region { 18 ATH11K_DFS_REG_UNSET, 19 ATH11K_DFS_REG_FCC, 20 ATH11K_DFS_REG_ETSI, 21 ATH11K_DFS_REG_MKK, 22 ATH11K_DFS_REG_CN, 23 ATH11K_DFS_REG_KR, 24 ATH11K_DFS_REG_MKK_N, 25 ATH11K_DFS_REG_UNDEF, 26}; 27 28/* Phy bitmaps */ 29#define ATH11K_REG_PHY_BITMAP_NO11AX BIT(5) 30 31/* ATH11K Regulatory API's */ 32void ath11k_reg_init(struct ath11k *ar); 33void ath11k_reg_reset_info(struct cur_regulatory_info *reg_info); 34void ath11k_reg_free(struct ath11k_base *ab); 35void ath11k_regd_update_work(struct work_struct *work); 36void ath11k_regd_update_chan_list_work(struct work_struct *work); 37struct ieee80211_regdomain * 38ath11k_reg_build_regd(struct ath11k_base *ab, 39 struct cur_regulatory_info *reg_info, bool intersect, 40 enum wmi_vdev_type vdev_type, 41 enum ieee80211_ap_reg_power power_type); 42int ath11k_regd_update(struct ath11k *ar); 43int ath11k_reg_update_chan_list(struct ath11k *ar, bool wait); 44enum wmi_reg_6ghz_ap_type 45ath11k_reg_ap_pwr_convert(enum ieee80211_ap_reg_power power_type); 46int ath11k_reg_handle_chan_list(struct ath11k_base *ab, 47 struct cur_regulatory_info *reg_info, 48 enum ieee80211_ap_reg_power power_type); 49int ath11k_reg_set_cc(struct ath11k *ar); 50#endif
~/
Read-only file preview.