1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Fri, 22 Jan 2016 01:05:56 +0100
3 Subject: [PATCH] ath9k: do not limit the number of DFS interfaces to 1
5 Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 --- a/drivers/net/wireless/ath/ath9k/init.c
9 +++ b/drivers/net/wireless/ath/ath9k/init.c
10 @@ -751,14 +751,6 @@ static const struct ieee80211_iface_comb
12 #endif /* CPTCFG_ATH9K_CHANNEL_CONTEXT */
14 -static const struct ieee80211_iface_limit if_dfs_limits[] = {
15 - { .max = 1, .types = BIT(NL80211_IFTYPE_AP) |
16 -#ifdef CPTCFG_MAC80211_MESH
17 - BIT(NL80211_IFTYPE_MESH_POINT) |
19 - BIT(NL80211_IFTYPE_ADHOC) },
22 static const struct ieee80211_iface_combination if_comb[] = {
25 @@ -766,6 +758,11 @@ static const struct ieee80211_iface_comb
26 .max_interfaces = 2048,
27 .num_different_channels = 1,
28 .beacon_int_infra_match = true,
29 +#ifdef CPTCFG_ATH9K_DFS_CERTIFIED
30 + .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) |
31 + BIT(NL80211_CHAN_WIDTH_20) |
32 + BIT(NL80211_CHAN_WIDTH_40),
37 @@ -774,18 +771,6 @@ static const struct ieee80211_iface_comb
38 .num_different_channels = 1,
39 .beacon_int_infra_match = true,
41 -#ifdef CPTCFG_ATH9K_DFS_CERTIFIED
43 - .limits = if_dfs_limits,
44 - .n_limits = ARRAY_SIZE(if_dfs_limits),
45 - .max_interfaces = 1,
46 - .num_different_channels = 1,
47 - .beacon_int_infra_match = true,
48 - .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) |
49 - BIT(NL80211_CHAN_WIDTH_20) |
50 - BIT(NL80211_CHAN_WIDTH_40),
55 #ifdef CPTCFG_ATH9K_CHANNEL_CONTEXT