#define pr_fmt(fmt) …
#include <linux/kernel.h>
#include <linux/export.h>
#include <net/cfg80211.h>
#include <net/mac80211.h>
#include "regd.h"
#include "regd_common.h"
static int __ath_regd_init(struct ath_regulatory *reg);
#define ATH_2GHZ_CH01_11 …
#define ATH_2GHZ_CH12_13 …
#define ATH_2GHZ_CH14 …
#define ATH_5GHZ_5150_5350 …
#define ATH_5GHZ_5470_5850 …
#define ATH_5GHZ_5725_5850 …
#define ATH_2GHZ_ALL …
#define ATH_5GHZ_ALL …
#define ATH_5GHZ_NO_MIDBAND …
static const struct ieee80211_regdomain ath_world_regdom_60_61_62 = …;
static const struct ieee80211_regdomain ath_world_regdom_63_65 = …;
static const struct ieee80211_regdomain ath_world_regdom_64 = …;
static const struct ieee80211_regdomain ath_world_regdom_66_69 = …;
static const struct ieee80211_regdomain ath_world_regdom_67_68_6A_6C = …;
static bool dynamic_country_user_possible(struct ath_regulatory *reg)
{ … }
static bool ath_reg_dyn_country_user_allow(struct ath_regulatory *reg)
{ … }
static inline bool is_wwr_sku(u16 regd)
{ … }
static u16 ath_regd_get_eepromRD(struct ath_regulatory *reg)
{ … }
bool ath_is_world_regd(struct ath_regulatory *reg)
{ … }
EXPORT_SYMBOL(…);
static const struct ieee80211_regdomain *ath_default_world_regdomain(void)
{ … }
static const struct
ieee80211_regdomain *ath_world_regdomain(struct ath_regulatory *reg)
{ … }
bool ath_is_49ghz_allowed(u16 regdomain)
{ … }
EXPORT_SYMBOL(…);
static bool ath_is_radar_freq(u16 center_freq,
struct ath_regulatory *reg)
{ … }
static void ath_force_clear_no_ir_chan(struct wiphy *wiphy,
struct ieee80211_channel *ch)
{ … }
static void ath_force_clear_no_ir_freq(struct wiphy *wiphy, u16 center_freq)
{ … }
static void ath_force_no_ir_chan(struct ieee80211_channel *ch)
{ … }
static void ath_force_no_ir_freq(struct wiphy *wiphy, u16 center_freq)
{ … }
static void
__ath_reg_apply_beaconing_flags(struct wiphy *wiphy,
struct ath_regulatory *reg,
enum nl80211_reg_initiator initiator,
struct ieee80211_channel *ch)
{ … }
static void
ath_reg_apply_beaconing_flags(struct wiphy *wiphy,
struct ath_regulatory *reg,
enum nl80211_reg_initiator initiator)
{ … }
static void
ath_reg_apply_ir_flags(struct wiphy *wiphy,
struct ath_regulatory *reg,
enum nl80211_reg_initiator initiator)
{ … }
static void ath_reg_apply_radar_flags(struct wiphy *wiphy,
struct ath_regulatory *reg)
{ … }
static void ath_reg_apply_world_flags(struct wiphy *wiphy,
enum nl80211_reg_initiator initiator,
struct ath_regulatory *reg)
{ … }
u16 ath_regd_find_country_by_name(char *alpha2)
{ … }
EXPORT_SYMBOL(…);
static int __ath_reg_dyn_country(struct wiphy *wiphy,
struct ath_regulatory *reg,
struct regulatory_request *request)
{ … }
static void ath_reg_dyn_country(struct wiphy *wiphy,
struct ath_regulatory *reg,
struct regulatory_request *request)
{ … }
void ath_reg_notifier_apply(struct wiphy *wiphy,
struct regulatory_request *request,
struct ath_regulatory *reg)
{ … }
EXPORT_SYMBOL(…);
static bool ath_regd_is_eeprom_valid(struct ath_regulatory *reg)
{ … }
static struct country_code_to_enum_rd*
ath_regd_find_country(u16 countryCode)
{ … }
static struct country_code_to_enum_rd*
ath_regd_find_country_by_rd(int regdmn)
{ … }
static u16 ath_regd_get_default_country(u16 rd)
{ … }
static struct reg_dmn_pair_mapping*
ath_get_regpair(int regdmn)
{ … }
static int
ath_regd_init_wiphy(struct ath_regulatory *reg,
struct wiphy *wiphy,
void (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request))
{ … }
static void ath_regd_sanitize(struct ath_regulatory *reg)
{ … }
static int __ath_regd_init(struct ath_regulatory *reg)
{ … }
int
ath_regd_init(struct ath_regulatory *reg,
struct wiphy *wiphy,
void (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request))
{ … }
EXPORT_SYMBOL(…);
u32 ath_regd_get_band_ctl(struct ath_regulatory *reg,
enum nl80211_band band)
{ … }
EXPORT_SYMBOL(…);