* [PATCH] ath10k: Block radar events when requested
@ 2014-11-17 7:29 Sujith Manoharan
2014-11-17 11:32 ` Michal Kazior
0 siblings, 1 reply; 3+ messages in thread
From: Sujith Manoharan @ 2014-11-17 7:29 UTC (permalink / raw)
To: ath10k; +Cc: linux-wireless
From: Sujith Manoharan <c_manoha@qca.qualcomm.com>
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 <c_manoha@qca.qualcomm.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ath10k: Block radar events when requested
2014-11-17 7:29 [PATCH] ath10k: Block radar events when requested Sujith Manoharan
@ 2014-11-17 11:32 ` Michal Kazior
2014-11-17 11:53 ` Sujith Manoharan
0 siblings, 1 reply; 3+ messages in thread
From: Michal Kazior @ 2014-11-17 11:32 UTC (permalink / raw)
To: Sujith Manoharan; +Cc: linux-wireless, ath10k@lists.infradead.org
On 17 November 2014 08:29, Sujith Manoharan <sujith@msujith.org> wrote:
> From: Sujith Manoharan <c_manoha@qca.qualcomm.com>
>
> 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 <c_manoha@qca.qualcomm.com>
> ---
> 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);
The simulate_radar knob is meant to be used with
dfs_block_radar_events being true in the first place so you can easily
block real DFS events and inject fake ones for testing of DFS upper
layers with ath10k.
Your patch breaks this. Why would you want to do that?
Michał
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-17 11:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17 7:29 [PATCH] ath10k: Block radar events when requested Sujith Manoharan
2014-11-17 11:32 ` Michal Kazior
2014-11-17 11:53 ` Sujith Manoharan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox