Commit Graph
14 Commits
Author SHA1 Message Date
Lorenzo BianconiandFelix Fietkau 016df9cc4c mt76x2: debugfs: add sw pulse statistics to dfs debugfs
Add sw pattern detector statistics to mt76x2 debugfs.
Moreover track down number of allocated sequence by the detector

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
2018-09-11 13:49:19 +02:00
Lorenzo BianconiandFelix Fietkau df8071f58c mt76x2: dfs: add sw pattern detector
Add sw DFS pattern detector support for mt76x2 based devices.
Dfs pattern supported:
- short pulse radar patterns
- staggered radar patterns

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
2018-09-11 13:49:19 +02:00
Lorenzo BianconiandFelix Fietkau 0f6379a72b mt76x2: dfs: add sw event ring buffer
Introduce sw event ring buffer to queue DFS pulses loaded from the hw.
Radar pulses will be used in DFS sw detector

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
2018-09-11 13:49:19 +02:00
Lorenzo BianconiandFelix Fietkau 5e4d60e833 mt76x2: dfs: take into account dfs region in mt76x2_dfs_init_params()
Do not enable DFS state machine if dfs region is set to NL80211_DFS_UNSET

Signed-off-by: Lorenzo Bianconi <[email protected]>
2018-01-18 19:06:53 +01:00
Lorenzo BianconiandFelix Fietkau cf591704e2 mt76x2: dfs: add set_domain handler
Add mt76x2_dfs_set_domain routine in order to properly reconfigure
pattern detector when DFS domain has been changed

Signed-off-by: Lorenzo Bianconi <[email protected]>
2018-01-18 19:06:30 +01:00
Lorenzo BianconiandFelix Fietkau 939e3e0ce2 mt76x2: dfs: avoid tasklet scheduling during mt76x2_dfs_init_params()
Substitute tasklet_kill with tasklet_disable/tasklet_enable in order to
guarantee dfs tasklet can not be executed during dfs parameter
initialization

Signed-off-by: Lorenzo Bianconi <[email protected]>
2018-01-18 19:06:06 +01:00
Felix Fietkau af425def8c mt76x2: fix LNA gain register annotation
Signed-off-by: Felix Fietkau <[email protected]>
2017-11-16 18:09:43 +01:00
Rosen PenevandFelix Fietkau e7647871da Fix errors found by cppcheck
Mismatching declarations as well as unused results.

Signed-off-by: Rosen Penev <[email protected]>
2017-10-27 12:15:53 +02:00
Lorenzo BianconiandFelix Fietkau 3c8caafc5e mt76x2: dfs: update energy thresholds to reduce false positives
Update energy high limits to reduce false positive detections on Buffalo
WSR1166. This patch has been tested using Ettus USRP N200 SDR as radar
pattern generator

Signed-off-by: Lorenzo Bianconi <[email protected]>
2017-01-31 11:31:24 +01:00
Lorenzo BianconiandFelix Fietkau 36ad8c3df2 mt76x2: dfs: remove unnecessary mt76x2_dfs_chan_state() routine
Remove chennel busy-idle logic since it is not used on mt7612-mt7662 based
devices

Signed-off-by: Lorenzo Bianconi <[email protected]>
2017-01-31 11:31:09 +01:00
Felix Fietkau 62abac9ea4 mt76x2: dfs: remove unnecessary memset
Signed-off-by: Felix Fietkau <[email protected]>
2016-09-25 18:20:28 +02:00
Felix Fietkau 129010808c mt76x2: dfs: code style cleanup
Reduce indentation

Signed-off-by: Felix Fietkau <[email protected]>
2016-09-25 18:20:05 +02:00
Lorenzo BianconiandFelix Fietkau d392047be6 mt76x2: debugfs: add dfs statistics to debugfs
Signed-off-by: Lorenzo Bianconi <[email protected]>
2016-09-25 18:13:27 +02:00
Lorenzo BianconiandFelix Fietkau 6375fc1abe mt76x2: add hw radar detector
add hw DFS pattern detector support for mt76x2 based devices
DFS region supported:
 - FCC
 - ETSI
 - JAPAN_W53
 - JAPAN_W56

Signed-off-by: Lorenzo Bianconi <[email protected]>
2016-09-25 18:13:12 +02:00