From: Matti Laakso Date: Sun, 02 Mar 2014 21:27:40 +0100 Subject: [ath9k-devel] [PATCH] ath9k: really disable DFS if CONFIG_ATH9K_DFS_CERTIFIED is not set Message-ID: <5313943C.3000200@elisanet.fi> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Currently ath9k allows hostapd to initialize radiation on DFS-channels even when CONFIG_ATH9K_DFS_CERTIFIED is not set. This is due to the advertised radar detection widths. This patch makes them depend on CONFIG_ATH9K_DFS_CERTIFIED. Reported-by: Martin Garbe Signed-off-by: Matti Laakso --- --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -894,8 +894,10 @@ static const struct ieee80211_iface_comb .max_interfaces = 1, .num_different_channels = 1, .beacon_int_infra_match = true, +#ifdef CONFIG_ATH9K_DFS_CERTIFIED .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) | BIT(NL80211_CHAN_WIDTH_20), +#endif } };