ath10k: add debugfs file to control radar events blocking
authorMarek Puzyniak <marek.puzyniak@tieto.com>
Wed, 20 Nov 2013 08:00:28 +0000 (10:00 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 20 Nov 2013 08:34:59 +0000 (10:34 +0200)
commit7d9b40b4618a1f6fcd69db7056903d5cba835c2e
tree47f61900b846def5a06d485570f2e9fa6da82dc1
parente8a50f8ba44b6933b2a39b6a65528b9a4e8ba5f3
ath10k: add debugfs file to control radar events blocking

Sometimes for DFS testing is required to stay on current channel even after
radar detected. This patch allows to enable/disable radar detected event to be
passed to mac80211.

By default radar detected event in not blocked.

To block it:
echo 1 > /sys/kernel/debug/ieee80211/phyX/ath10k/dfs_block_radar_events

To unblock again:
echo 0 > /sys/kernel/debug/ieee80211/phyX/ath10k/dfs_block_radar_events

Inform about blocking radar detected event even when logs are disabled
for throughput/performance reasons.

Signed-off-by: Marek Puzyniak <marek.puzyniak@tieto.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/wmi.c