1 diff -Naur linux-4.14.103.org/drivers/net/wireless/ath/regd.c linux-4.14.103/drivers/net/wireless/ath/regd.c
2 --- linux-4.14.103.org/drivers/net/wireless/ath/regd.c 2019-02-23 09:06:44.000000000 +0100
3 +++ linux-4.14.103/drivers/net/wireless/ath/regd.c 2019-03-30 11:35:53.177299394 +0100
5 #include "regd_common.h"
7 static int __ath_regd_init(struct ath_regulatory *reg);
8 +static struct reg_dmn_pair_mapping *ath_get_regpair(int regdmn);
11 * This is a set of common rules used by our world regulatory domains.
14 static bool dynamic_country_user_possible(struct ath_regulatory *reg)
16 +// if (IS_ENABLED(CPTCFG_ATH_USER_REGD))
19 if (IS_ENABLED(CONFIG_ATH_REG_DYNAMIC_USER_CERT_TESTING))
24 static bool ath_reg_dyn_country_user_allow(struct ath_regulatory *reg)
26 +// if (IS_ENABLED(CPTCFG_ATH_USER_REGD))
28 if (!IS_ENABLED(CONFIG_ATH_REG_DYNAMIC_USER_REG_HINTS))
30 if (!dynamic_country_user_possible(reg))
32 struct ieee80211_channel *ch;
35 +// if (IS_ENABLED(CPTCFG_ATH_USER_REGD))
38 for (band = 0; band < NUM_NL80211_BANDS; band++) {
39 if (!wiphy->bands[band])
43 struct ieee80211_supported_band *sband;
45 +// if (IS_ENABLED(CPTCFG_ATH_USER_REGD))
48 sband = wiphy->bands[NL80211_BAND_2GHZ];
52 struct ieee80211_channel *ch;
55 +// if (IS_ENABLED(CPTCFG_ATH_USER_REGD))
58 if (!wiphy->bands[NL80211_BAND_5GHZ])
62 const struct ieee80211_regdomain *regd;
64 wiphy->reg_notifier = reg_notifier;
66 +// if (IS_ENABLED(CPTCFG_ATH_USER_REGD))
69 wiphy->regulatory_flags |= REGULATORY_STRICT_REG |
70 REGULATORY_CUSTOM_REG;