diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2014-06-04 09:32:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-06-19 15:49:14 -0400 |
commit | 7d8831bb1bfbf8db896bfc1de9d0b3bc7a8e60f0 (patch) | |
tree | 8c462a10b374b0dbc84a8c5a22e49a7aca627690 | |
parent | 7949513b315ac70abcd292170ba1099a9a56dbfe (diff) |
mwifiex: Remove custom world regulatory domain
A custom regulatory domain was introduced in this commit:
cc0ba0d mwifiex: support custom world regulatory domain
The commit description says that it was introduced because the world
regulatory domain does not include channels 52-64 and 100-140. These
channels are described in the world regulatory domain now, so we can
drop this custom regulatory domain.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index e95dec91a561..201edbf76c81 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -42,36 +42,6 @@ static const struct ieee80211_iface_combination mwifiex_iface_comb_ap_sta = { | |||
42 | .beacon_int_infra_match = true, | 42 | .beacon_int_infra_match = true, |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static const struct ieee80211_regdomain mwifiex_world_regdom_custom = { | ||
46 | .n_reg_rules = 7, | ||
47 | .alpha2 = "99", | ||
48 | .reg_rules = { | ||
49 | /* Channel 1 - 11 */ | ||
50 | REG_RULE(2412-10, 2462+10, 40, 3, 20, 0), | ||
51 | /* Channel 12 - 13 */ | ||
52 | REG_RULE(2467-10, 2472+10, 20, 3, 20, | ||
53 | NL80211_RRF_NO_IR), | ||
54 | /* Channel 14 */ | ||
55 | REG_RULE(2484-10, 2484+10, 20, 3, 20, | ||
56 | NL80211_RRF_NO_IR | | ||
57 | NL80211_RRF_NO_OFDM), | ||
58 | /* Channel 36 - 48 */ | ||
59 | REG_RULE(5180-10, 5240+10, 40, 3, 20, | ||
60 | NL80211_RRF_NO_IR), | ||
61 | /* Channel 149 - 165 */ | ||
62 | REG_RULE(5745-10, 5825+10, 40, 3, 20, | ||
63 | NL80211_RRF_NO_IR), | ||
64 | /* Channel 52 - 64 */ | ||
65 | REG_RULE(5260-10, 5320+10, 40, 3, 30, | ||
66 | NL80211_RRF_NO_IR | | ||
67 | NL80211_RRF_DFS), | ||
68 | /* Channel 100 - 140 */ | ||
69 | REG_RULE(5500-10, 5700+10, 40, 3, 30, | ||
70 | NL80211_RRF_NO_IR | | ||
71 | NL80211_RRF_DFS), | ||
72 | } | ||
73 | }; | ||
74 | |||
75 | /* | 45 | /* |
76 | * This function maps the nl802.11 channel type into driver channel type. | 46 | * This function maps the nl802.11 channel type into driver channel type. |
77 | * | 47 | * |
@@ -2916,12 +2886,6 @@ int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter) | |||
2916 | wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS | | 2886 | wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS | |
2917 | WIPHY_FLAG_TDLS_EXTERNAL_SETUP; | 2887 | WIPHY_FLAG_TDLS_EXTERNAL_SETUP; |
2918 | 2888 | ||
2919 | wiphy->regulatory_flags |= | ||
2920 | REGULATORY_CUSTOM_REG | | ||
2921 | REGULATORY_STRICT_REG; | ||
2922 | |||
2923 | wiphy_apply_custom_regulatory(wiphy, &mwifiex_world_regdom_custom); | ||
2924 | |||
2925 | #ifdef CONFIG_PM | 2889 | #ifdef CONFIG_PM |
2926 | wiphy->wowlan = &mwifiex_wowlan_support; | 2890 | wiphy->wowlan = &mwifiex_wowlan_support; |
2927 | #endif | 2891 | #endif |