aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl18xx/event.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2016-03-07 00:28:09 +0200
committerKalle Valo <kvalo@codeaurora.org>2016-03-10 15:00:23 +0200
commit8cf77e176f921d20a1e61d288eaee74a2d1d2ae1 (patch)
tree2be26f7b56e0b45fdaf5a1fd57ba03ef802dbf3a /drivers/net/wireless/ti/wl18xx/event.c
parentwlcore: don't WARN_ON in case of existing ROC (diff)
downloadlinux-dev-8cf77e176f921d20a1e61d288eaee74a2d1d2ae1.tar.xz
linux-dev-8cf77e176f921d20a1e61d288eaee74a2d1d2ae1.zip
wlcore/wl18xx: add radar_debug_mode handling
Add debugfs key (under CFG80211_CERTIFICATION_ONUS configuration) to set/clear radar_debug_mode. In this mode, the driver simply ignores radar events (but prints them). The fw is notified about this mode through a special generic_cfg_feature command. This mode is relevant only for ap mode. look for it when initializing ap vif. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/event.c')
-rw-r--r--drivers/net/wireless/ti/wl18xx/event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/event.c b/drivers/net/wireless/ti/wl18xx/event.c
index 719907a0a2c2..ff6e46dd61f8 100644
--- a/drivers/net/wireless/ti/wl18xx/event.c
+++ b/drivers/net/wireless/ti/wl18xx/event.c
@@ -146,7 +146,8 @@ int wl18xx_process_mailbox_events(struct wl1271 *wl)
mbox->radar_channel,
wl18xx_radar_type_decode(mbox->radar_type));
- ieee80211_radar_detected(wl->hw);
+ if (!wl->radar_debug_mode)
+ ieee80211_radar_detected(wl->hw);
}
if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) {