ath: fix world regulatory domain fix-up so that all regulatory rules are processed
r24503 (trunk) and r24505 (backfire) revised the regulatory rules used for the ath drivers' world regulatory domains in the 5GHz band by opening up channels 36, 40, 44, and 48 to being used without the *_PASSIVE_SCAN and *_NO_IBSS flags set. This was done by breaking ATH9K_5GHZ_5150_5350 into two REG_RULES. The various struct ieee80211_regdomains that reference these rules in their reg_rules fields need to have their n_reg_rules fields updated accordingly. Signed-off-by: Mark Mentovai <m...@moxienet.com> --- Index: package/mac80211/patches/405-world_regd_fixup.patch =================================================================== --- package/mac80211/patches/405-world_regd_fixup.patch (revision 25401) +++ package/mac80211/patches/405-world_regd_fixup.patch (working copy) @@ -10,3 +10,48 @@ NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS) #define ATH9K_5GHZ_5470_5850 REG_RULE(5470-10, 5850+10, 40, 0, 30,\ NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS) +@@ -58,7 +59,7 @@ + /* Can be used for: + * 0x60, 0x61, 0x62 */ + static const struct ieee80211_regdomain ath_world_regdom_60_61_62 = { +- .n_reg_rules = 5, ++ .n_reg_rules = 6, + .alpha2 = "99", + .reg_rules = { + ATH9K_2GHZ_ALL, +@@ -68,7 +69,7 @@ + + /* Can be used by 0x63 and 0x65 */ + static const struct ieee80211_regdomain ath_world_regdom_63_65 = { +- .n_reg_rules = 4, ++ .n_reg_rules = 5, + .alpha2 = "99", + .reg_rules = { + ATH9K_2GHZ_CH01_11, +@@ -79,7 +80,7 @@ + + /* Can be used by 0x64 only */ + static const struct ieee80211_regdomain ath_world_regdom_64 = { +- .n_reg_rules = 3, ++ .n_reg_rules = 4, + .alpha2 = "99", + .reg_rules = { + ATH9K_2GHZ_CH01_11, +@@ -89,7 +90,7 @@ + + /* Can be used by 0x66 and 0x69 */ + static const struct ieee80211_regdomain ath_world_regdom_66_69 = { +- .n_reg_rules = 3, ++ .n_reg_rules = 4, + .alpha2 = "99", + .reg_rules = { + ATH9K_2GHZ_CH01_11, +@@ -99,7 +100,7 @@ + + /* Can be used by 0x67, 0x6A and 0x68 */ + static const struct ieee80211_regdomain ath_world_regdom_67_68_6A = { +- .n_reg_rules = 4, ++ .n_reg_rules = 5, + .alpha2 = "99", + .reg_rules = { + ATH9K_2GHZ_CH01_11, _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel