ath: fix incorrect PPB on JAPAN chirp radar
authorPeter Oh <poh@qca.qualcomm.com>
Thu, 17 Sep 2015 11:29:07 +0000 (14:29 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sun, 27 Sep 2015 12:48:22 +0000 (15:48 +0300)
commitb0b252278082787eec54098556566d4d68b8126c
tree024c8ce04cf3443a0a5692a29346803f66f3377a
parent5af82fa66a7ee8dfc29fadb487a02e2ef14ea965
ath: fix incorrect PPB on JAPAN chirp radar

The number of pulses per burst on Japan chirp radar is
between 1 and 3. The previous value, 20, is representing
number of bursts, but since current DFS detector is using
pulse detection other than bursts, use the pulse number
for correct radar detection.
Also using the highest number helps to avoid false detection.

Signed-off-by: Peter Oh <poh@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/dfs_pattern_detector.c