Commit 2c3f26a0 authored by Peter Oh's avatar Peter Oh Committed by Kalle Valo

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: default avatarPeter Oh <poh@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent beb28edf
...@@ -2601,7 +2601,7 @@ static void ath10k_dfs_radar_report(struct ath10k *ar, ...@@ -2601,7 +2601,7 @@ static void ath10k_dfs_radar_report(struct ath10k *ar,
pe.freq = ar->hw->conf.chandef.chan->center_freq; pe.freq = ar->hw->conf.chandef.chan->center_freq;
pe.width = width; pe.width = width;
pe.rssi = rssi; pe.rssi = rssi;
pe.chirp = (MS(reg0, RADAR_REPORT_REG0_PULSE_IS_CHIRP) != 0);
ath10k_dbg(ar, ATH10K_DBG_REGULATORY, ath10k_dbg(ar, ATH10K_DBG_REGULATORY,
"dfs add pulse freq: %d, width: %d, rssi %d, tsf: %llX\n", "dfs add pulse freq: %d, width: %d, rssi %d, tsf: %llX\n",
pe.freq, pe.width, pe.rssi, pe.ts); pe.freq, pe.width, pe.rssi, pe.ts);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment