linux/drivers/net/wireless/ath/ath11k/reg.c

// SPDX-License-Identifier: BSD-3-Clause-Clear
/*
 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
 */
#include <linux/rtnetlink.h>

#include "core.h"
#include "debug.h"

/* World regdom to be used in case default regd from fw is unavailable */
#define ATH11K_2GHZ_CH01_11
#define ATH11K_5GHZ_5150_5350
#define ATH11K_5GHZ_5725_5850

#define ETSI_WEATHER_RADAR_BAND_LOW
#define ETSI_WEATHER_RADAR_BAND_HIGH
#define ETSI_WEATHER_RADAR_BAND_CAC_TIMEOUT

static const struct ieee80211_regdomain ath11k_world_regd =;

static bool ath11k_regdom_changes(struct ath11k *ar, char *alpha2)
{}

static void
ath11k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request)
{}

int ath11k_reg_update_chan_list(struct ath11k *ar, bool wait)
{}

static void ath11k_copy_regd(struct ieee80211_regdomain *regd_orig,
			     struct ieee80211_regdomain *regd_copy)
{}

int ath11k_regd_update(struct ath11k *ar)
{}

static enum nl80211_dfs_regions
ath11k_map_fw_dfs_region(enum ath11k_dfs_region dfs_region)
{}

static u32 ath11k_map_fw_reg_flags(u16 reg_flags)
{}

static u32 ath11k_map_fw_phy_flags(u32 phy_flags)
{}

static bool
ath11k_reg_can_intersect(struct ieee80211_reg_rule *rule1,
			 struct ieee80211_reg_rule *rule2)
{}

static void ath11k_reg_intersect_rules(struct ieee80211_reg_rule *rule1,
				       struct ieee80211_reg_rule *rule2,
				       struct ieee80211_reg_rule *new_rule)
{}

static struct ieee80211_regdomain *
ath11k_regd_intersect(struct ieee80211_regdomain *default_regd,
		      struct ieee80211_regdomain *curr_regd)
{}

static const char *
ath11k_reg_get_regdom_str(enum nl80211_dfs_regions dfs_region)
{}

static u16
ath11k_reg_adjust_bw(u16 start_freq, u16 end_freq, u16 max_bw)
{}

static void
ath11k_reg_update_rule(struct ieee80211_reg_rule *reg_rule, u32 start_freq,
		       u32 end_freq, u32 bw, u32 ant_gain, u32 reg_pwr,
		       s8 psd, u32 reg_flags)
{}

static void
ath11k_reg_update_weather_radar_band(struct ath11k_base *ab,
				     struct ieee80211_regdomain *regd,
				     struct cur_reg_rule *reg_rule,
				     u8 *rule_idx, u32 flags, u16 max_bw)
{}

enum wmi_reg_6ghz_ap_type
ath11k_reg_ap_pwr_convert(enum ieee80211_ap_reg_power power_type)
{}

struct ieee80211_regdomain *
ath11k_reg_build_regd(struct ath11k_base *ab,
		      struct cur_regulatory_info *reg_info, bool intersect,
		      enum wmi_vdev_type vdev_type,
		      enum ieee80211_ap_reg_power power_type)
{}

static bool ath11k_reg_is_world_alpha(char *alpha)
{}

static enum wmi_vdev_type ath11k_reg_get_ar_vdev_type(struct ath11k *ar)
{}

int ath11k_reg_handle_chan_list(struct ath11k_base *ab,
				struct cur_regulatory_info *reg_info,
				enum ieee80211_ap_reg_power power_type)
{}

void ath11k_regd_update_work(struct work_struct *work)
{}

void ath11k_reg_init(struct ath11k *ar)
{}

void ath11k_reg_reset_info(struct cur_regulatory_info *reg_info)
{}

void ath11k_reg_free(struct ath11k_base *ab)
{}

int ath11k_reg_set_cc(struct ath11k *ar)
{}