]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ath10k: update chirp value in pulse event
authorPeter Oh <poh@qca.qualcomm.com>
Wed, 4 Mar 2015 13:43:46 +0000 (15:43 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 5 Mar 2015 13:55:27 +0000 (15:55 +0200)
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>
drivers/net/wireless/ath/ath10k/wmi.c

index c7ea77edce245ccd389111ad3ac9fd3958d4bc89..7fc81f2fef36e978c31a2b22e8b4aeb2bd8066bc 100644 (file)
@@ -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);