#include <drv_types.h>
#include <rtw_debug.h>
#include <rtw_wifi_regd.h>
#define RTW_2GHZ_CH01_11 …
#define RTW_2GHZ_CH12_13 …
static const struct ieee80211_regdomain rtw_regdom_rd = …;
static int rtw_ieee80211_channel_to_frequency(int chan, int band)
{ … }
static void _rtw_reg_apply_flags(struct wiphy *wiphy)
{ … }
static int _rtw_reg_notifier_apply(struct wiphy *wiphy,
struct regulatory_request *request,
struct rtw_regulatory *reg)
{ … }
static const struct ieee80211_regdomain *_rtw_regdomain_select(struct
rtw_regulatory
*reg)
{ … }
static void _rtw_regd_init_wiphy(struct rtw_regulatory *reg,
struct wiphy *wiphy,
void (*reg_notifier)(struct wiphy *wiphy,
struct
regulatory_request *
request))
{ … }
void rtw_regd_init(struct wiphy *wiphy,
void (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request))
{ … }
void rtw_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request)
{ … }