linux/drivers/net/wireless/realtek/rtw89/regd.c

// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright(c) 2019-2020  Realtek Corporation
 */

#include "acpi.h"
#include "debug.h"
#include "ps.h"
#include "util.h"

#define COUNTRY_REGD(_alpha2, _txpwr_regd...)

static const struct rtw89_regd rtw89_ww_regd =;

static const struct rtw89_regd rtw89_regd_map[] =;

static const char rtw89_alpha2_list_eu[][3] =;

static const struct rtw89_regd *rtw89_regd_find_reg_by_name(const char *alpha2)
{}

static bool rtw89_regd_is_ww(const struct rtw89_regd *regd)
{}

static u8 rtw89_regd_get_index(const struct rtw89_regd *regd)
{}

static u8 rtw89_regd_get_index_by_name(const char *alpha2)
{}

#define rtw89_debug_regd(_dev, _regd, _desc, _argv...)

static void rtw89_regd_setup_unii4(struct rtw89_dev *rtwdev,
				   struct wiphy *wiphy)
{}

static void __rtw89_regd_setup_policy_6ghz(struct rtw89_dev *rtwdev, bool block,
					   const char *alpha2)
{}

static void rtw89_regd_setup_policy_6ghz(struct rtw89_dev *rtwdev)
{}

static void rtw89_regd_setup_policy_6ghz_sp(struct rtw89_dev *rtwdev)
{}

static void rtw89_regd_setup_6ghz(struct rtw89_dev *rtwdev, struct wiphy *wiphy)
{}

int rtw89_regd_setup(struct rtw89_dev *rtwdev)
{}

int rtw89_regd_init(struct rtw89_dev *rtwdev,
		    void (*reg_notifier)(struct wiphy *wiphy,
					 struct regulatory_request *request))
{}

static void rtw89_regd_apply_policy_unii4(struct rtw89_dev *rtwdev,
					  struct wiphy *wiphy)
{}

static void rtw89_regd_apply_policy_6ghz(struct rtw89_dev *rtwdev,
					 struct wiphy *wiphy)
{}

static void rtw89_regd_notifier_apply(struct rtw89_dev *rtwdev,
				      struct wiphy *wiphy,
				      struct regulatory_request *request)
{}

void rtw89_regd_notifier(struct wiphy *wiphy, struct regulatory_request *request)
{}

/* Maximum Transmit Power field (@raw) can be EIRP or PSD.
 * Both units are 0.5 dB-based. Return a constraint in dB.
 */
static s8 tpe_get_constraint(s8 raw)
{}

static void tpe_intersect_constraint(struct rtw89_reg_6ghz_tpe *tpe, s8 cstr)
{}

static void tpe_deal_with_eirp(struct rtw89_reg_6ghz_tpe *tpe,
			       const struct ieee80211_parsed_tpe_eirp *eirp)
{}

static s8 tpe_convert_psd_to_eirp(s8 psd)
{}

static void tpe_deal_with_psd(struct rtw89_reg_6ghz_tpe *tpe,
			      const struct ieee80211_parsed_tpe_psd *psd)
{}

static void rtw89_calculate_tpe(struct rtw89_dev *rtwdev,
				struct rtw89_reg_6ghz_tpe *result_tpe,
				const struct ieee80211_parsed_tpe *parsed_tpe)
{}

static bool __rtw89_reg_6ghz_tpe_recalc(struct rtw89_dev *rtwdev)
{}

static int rtw89_reg_6ghz_tpe_recalc(struct rtw89_dev *rtwdev,
				     struct rtw89_vif *rtwvif, bool active,
				     unsigned int *changed)
{}

static bool __rtw89_reg_6ghz_power_recalc(struct rtw89_dev *rtwdev)
{}

static int rtw89_reg_6ghz_power_recalc(struct rtw89_dev *rtwdev,
				       struct rtw89_vif *rtwvif, bool active,
				       unsigned int *changed)
{}

int rtw89_reg_6ghz_recalc(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvif,
			  bool active)
{}