From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from s72.web-hosting.com ([198.187.29.22]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XqGjv-0007mh-4P for ath10k@lists.infradead.org; Mon, 17 Nov 2014 07:28:47 +0000 From: Sujith Manoharan Subject: [PATCH] ath10k: Block radar events when requested Date: Mon, 17 Nov 2014 12:59:53 +0530 Message-Id: <1416209393-24736-1-git-send-email-sujith@msujith.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org From: Sujith Manoharan This patch ensures that reporting of a radar in simulation is not done when detection is disabled explicitly by using the debugfs knob 'dfs_block_radar_events'. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath10k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index 9147dd3..fa1accd 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -1437,7 +1437,8 @@ static ssize_t ath10k_write_simulate_radar(struct file *file, { struct ath10k *ar = file->private_data; - ieee80211_radar_detected(ar->hw); + if (!ar->dfs_block_radar_events) + ieee80211_radar_detected(ar->hw); return count; } -- 2.1.3 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k