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

// SPDX-License-Identifier: BSD-3-Clause-Clear
/*
 * Copyright (c) 2018-2021 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 ATH12K_2GHZ_CH01_11
#define ATH12K_5GHZ_5150_5350
#define ATH12K_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 ath12k_world_regd =;

static bool ath12k_regdom_changes(struct ieee80211_hw *hw, char *alpha2)
{}

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

int ath12k_reg_update_chan_list(struct ath12k *ar)
{}

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

int ath12k_regd_update(struct ath12k *ar, bool init)
{}

static enum nl80211_dfs_regions
ath12k_map_fw_dfs_region(enum ath12k_dfs_region dfs_region)
{}

static u32 ath12k_map_fw_reg_flags(u16 reg_flags)
{}

static u32 ath12k_map_fw_phy_flags(u32 phy_flags)
{}

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

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

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

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

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

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

static void
ath12k_reg_update_weather_radar_band(struct ath12k_base *ab,
				     struct ieee80211_regdomain *regd,
				     struct ath12k_reg_rule *reg_rule,
				     u8 *rule_idx, u32 flags, u16 max_bw)
{}

struct ieee80211_regdomain *
ath12k_reg_build_regd(struct ath12k_base *ab,
		      struct ath12k_reg_info *reg_info, bool intersect)
{}

void ath12k_regd_update_work(struct work_struct *work)
{}

void ath12k_reg_init(struct ieee80211_hw *hw)
{}

void ath12k_reg_free(struct ath12k_base *ab)
{}