* [ath9k-devel] [PATCH v2] ath9k: really disable DFS if CONFIG_ATH9K_DFS_CERTIFIED is not set
@ 2014-03-06 9:08 Matti Laakso
0 siblings, 0 replies; only message in thread
From: Matti Laakso @ 2014-03-06 9:08 UTC (permalink / raw)
To: ath9k-devel
> this patch makes ath9k fail to load, hitting a warning on
> compat-wireless-2014-01-23.1/net/wireless/core.c:380, that is
>
> /*
> * Combinations with just one interface aren't real,
> * however we make an exception for DFS.
> */
> if (WARN_ON((c->max_interfaces < 2) && !c->radar_detect_widths))
> return -EINVAL;
>
> I think you need to remove the entire configuration if DFS is disabled.
Thanks! I could've sworn I tested this with the config option disabled
as well, but apparently not.
> Please find attached a patch that addresses this.
It seems your patch was mangled by your mail program. Here's a fixed
version, rebased against wireless-next. I also took the liberty of
adding a signed-off-by from you.
Reported-by: Martin Garbe <monomartin@opennet-initiative.de>
Signed-off-by: Michael Braun <michael-dev@fami-braun.de >
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
---
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -670,15 +670,17 @@ static const struct ieee80211_iface_comb
.num_different_channels = 1,
.beacon_int_infra_match = true,
},
+#ifdef CONFIG_ATH9K_DFS_CERTIFIED
{
.limits = if_dfs_limits,
.n_limits = ARRAY_SIZE(if_dfs_limits),
.max_interfaces = 1,
.num_different_channels = 1,
.beacon_int_infra_match = true,
.radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) |
BIT(NL80211_CHAN_WIDTH_20),
}
+#endif
};
static void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-06 9:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 9:08 [ath9k-devel] [PATCH v2] ath9k: really disable DFS if CONFIG_ATH9K_DFS_CERTIFIED is not set Matti Laakso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox