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

// SPDX-License-Identifier: GPL-2.0
/* Copyright(c) 2009-2012  Realtek Corporation.*/

#include "wifi.h"
#include "regd.h"

static struct country_code_to_enum_rd all_countries[] =;

/*
 *Only these channels all allow active
 *scan on all world regulatory domains
 */
#define RTL819x_2GHZ_CH01_11

/*
 *We enable active scan on these a case
 *by case basis by regulatory domain
 */
#define RTL819x_2GHZ_CH12_13

#define RTL819x_2GHZ_CH14

/* 5G chan 36 - chan 64*/
#define RTL819x_5GHZ_5150_5350
/* 5G chan 100 - chan 165*/
#define RTL819x_5GHZ_5470_5850
/* 5G chan 149 - chan 165*/
#define RTL819x_5GHZ_5725_5850

#define RTL819x_5GHZ_ALL

static const struct ieee80211_regdomain rtl_regdom_11 =;

static const struct ieee80211_regdomain rtl_regdom_12_13 =;

static const struct ieee80211_regdomain rtl_regdom_no_midband =;

static const struct ieee80211_regdomain rtl_regdom_60_64 =;

static const struct ieee80211_regdomain rtl_regdom_14_60_64 =;

static const struct ieee80211_regdomain rtl_regdom_12_13_5g_all =;

static const struct ieee80211_regdomain rtl_regdom_14 =;

static bool _rtl_is_radar_freq(u16 center_freq)
{}

static void _rtl_reg_apply_beaconing_flags(struct wiphy *wiphy,
					   enum nl80211_reg_initiator initiator)
{}

/* Allows active scan on Ch 12 and 13 */
static void _rtl_reg_apply_active_scan_flags(struct wiphy *wiphy,
					     enum nl80211_reg_initiator
					     initiator)
{}

/*
 *Always apply Radar/DFS rules on
 *freq range 5260 MHz - 5700 MHz
 */
static void _rtl_reg_apply_radar_flags(struct wiphy *wiphy)
{}

static void _rtl_reg_apply_world_flags(struct wiphy *wiphy,
				       enum nl80211_reg_initiator initiator,
				       struct rtl_regulatory *reg)
{}

static int _rtl_reg_notifier_apply(struct wiphy *wiphy,
				   struct regulatory_request *request,
				   struct rtl_regulatory *reg)
{}

static const struct ieee80211_regdomain *_rtl_regdomain_select(
						struct rtl_regulatory *reg)
{}

static int _rtl_regd_init_wiphy(struct rtl_regulatory *reg,
				struct wiphy *wiphy,
				void (*reg_notifier)(struct wiphy *wiphy,
						     struct regulatory_request *
						     request))
{}

static struct country_code_to_enum_rd *_rtl_regd_find_country(u16 countrycode)
{}

static u8 channel_plan_to_country_code(u8 channelplan)
{}

int rtl_regd_init(struct ieee80211_hw *hw,
		  void (*reg_notifier)(struct wiphy *wiphy,
				       struct regulatory_request *request))
{}

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