summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorPeter Oh <poh@qca.qualcomm.com>2015-03-04 15:43:46 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2015-03-05 15:55:27 +0200
commit2c3f26a065054ec942e5b48fc273b592c3f45238 (patch)
tree58c5ff08ef858b7b48ad4df7828335281f1c7ce8 /drivers/net/wireless/ath
parentbeb28edf02115a79d1bb947a01a6ca80b2aadabd (diff)
downloadblackbird-op-linux-2c3f26a065054ec942e5b48fc273b592c3f45238.tar.gz
blackbird-op-linux-2c3f26a065054ec942e5b48fc273b592c3f45238.zip
ath10k: update chirp value in pulse event
Firmware reports chirp status in phy error event if it's detected and the chirp status is valuable to distinguish radar types. So save it to use for DFS parttern detector. Signed-off-by: Peter Oh <poh@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index c7ea77edce24..7fc81f2fef36 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -2601,7 +2601,7 @@ static void ath10k_dfs_radar_report(struct ath10k *ar,
pe.freq = ar->hw->conf.chandef.chan->center_freq;
pe.width = width;
pe.rssi = rssi;
-
+ pe.chirp = (MS(reg0, RADAR_REPORT_REG0_PULSE_IS_CHIRP) != 0);
ath10k_dbg(ar, ATH10K_DBG_REGULATORY,
"dfs add pulse freq: %d, width: %d, rssi %d, tsf: %llX\n",
pe.freq, pe.width, pe.rssi, pe.ts);
OpenPOWER on IntegriCloud