AA: mac80211: backport package from trunk r39886
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 850-brcmsmac-remove-extra-regulation-restriction.patch
1 --- a/drivers/net/wireless/brcm80211/brcmsmac/channel.c
2 +++ b/drivers/net/wireless/brcm80211/brcmsmac/channel.c
3 @@ -58,19 +58,12 @@
4 (((c) < 149) ? 3 : 4))))
5
6 #define BRCM_2GHZ_2412_2462 REG_RULE(2412-10, 2462+10, 40, 0, 19, 0)
7 -#define BRCM_2GHZ_2467_2472 REG_RULE(2467-10, 2472+10, 20, 0, 19, \
8 - NL80211_RRF_NO_IR)
9 +#define BRCM_2GHZ_2467_2472 REG_RULE(2467-10, 2472+10, 20, 0, 19, 0)
10
11 -#define BRCM_5GHZ_5180_5240 REG_RULE(5180-10, 5240+10, 40, 0, 21, \
12 - NL80211_RRF_NO_IR)
13 -#define BRCM_5GHZ_5260_5320 REG_RULE(5260-10, 5320+10, 40, 0, 21, \
14 - NL80211_RRF_DFS | \
15 - NL80211_RRF_NO_IR)
16 -#define BRCM_5GHZ_5500_5700 REG_RULE(5500-10, 5700+10, 40, 0, 21, \
17 - NL80211_RRF_DFS | \
18 - NL80211_RRF_NO_IR)
19 -#define BRCM_5GHZ_5745_5825 REG_RULE(5745-10, 5825+10, 40, 0, 21, \
20 - NL80211_RRF_NO_IR)
21 +#define BRCM_5GHZ_5180_5240 REG_RULE(5180-10, 5240+10, 40, 0, 21, 0)
22 +#define BRCM_5GHZ_5260_5320 REG_RULE(5260-10, 5320+10, 40, 0, 21, 0)
23 +#define BRCM_5GHZ_5500_5700 REG_RULE(5500-10, 5700+10, 40, 0, 21, 0)
24 +#define BRCM_5GHZ_5745_5825 REG_RULE(5745-10, 5825+10, 40, 0, 21, 0)
25
26 static const struct ieee80211_regdomain brcms_regdom_x2 = {
27 .n_reg_rules = 6,