1 --- a/drivers/net/wireless/ath/regd.c
2 +++ b/drivers/net/wireless/ath/regd.c
3 @@ -40,7 +40,8 @@ static int __ath_regd_init(struct ath_re
4 NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_OFDM)
6 /* We allow IBSS on these on a case by case basis by regulatory domain */
7 -#define ATH9K_5GHZ_5150_5350 REG_RULE(5150-10, 5350+10, 40, 0, 30,\
8 +#define ATH9K_5GHZ_5150_5350 REG_RULE(5150-10, 5250, 40, 0, 30, 0), \
9 + REG_RULE(5250, 5350+10, 40, 0, 30,\
10 NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS)
11 #define ATH9K_5GHZ_5470_5850 REG_RULE(5470-10, 5850+10, 40, 0, 30,\
12 NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS)
13 @@ -58,57 +59,56 @@ static int __ath_regd_init(struct ath_re
14 #define ATH9K_5GHZ_NO_MIDBAND ATH9K_5GHZ_5150_5350, \
17 +#define REGD_RULES(...) \
18 + .reg_rules = { __VA_ARGS__ }, \
19 + .n_reg_rules = ARRAY_SIZE(((struct ieee80211_reg_rule[]) { __VA_ARGS__ }))
23 static const struct ieee80211_regdomain ath_world_regdom_60_61_62 = {
34 /* Can be used by 0x63 and 0x65 */
35 static const struct ieee80211_regdomain ath_world_regdom_63_65 = {
42 ATH9K_5GHZ_NO_MIDBAND,
47 /* Can be used by 0x64 only */
48 static const struct ieee80211_regdomain ath_world_regdom_64 = {
54 ATH9K_5GHZ_NO_MIDBAND,
59 /* Can be used by 0x66 and 0x69 */
60 static const struct ieee80211_regdomain ath_world_regdom_66_69 = {
71 /* Can be used by 0x67, 0x68, 0x6A and 0x6C */
72 static const struct ieee80211_regdomain ath_world_regdom_67_68_6A_6C = {
84 static inline bool is_wwr_sku(u16 regd)