From: Matti Laakso <malaakso@elisanet.fi>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH v2] ath9k: really disable DFS if CONFIG_ATH9K_DFS_CERTIFIED is not set
Date: Thu, 06 Mar 2014 10:08:01 +0100 [thread overview]
Message-ID: <53183AF1.1010500@elisanet.fi> (raw)
> 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)
reply other threads:[~2014-03-06 9:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53183AF1.1010500@elisanet.fi \
--to=malaakso@elisanet.fi \
--cc=ath9k-devel@lists.ath9k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox