#include "wifi.h"
#include "regd.h"
static struct country_code_to_enum_rd all_countries[] = …;
#define RTL819x_2GHZ_CH01_11 …
#define RTL819x_2GHZ_CH12_13 …
#define RTL819x_2GHZ_CH14 …
#define RTL819x_5GHZ_5150_5350 …
#define RTL819x_5GHZ_5470_5850 …
#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)
{ … }
static void _rtl_reg_apply_active_scan_flags(struct wiphy *wiphy,
enum nl80211_reg_initiator
initiator)
{ … }
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)
{ … }