Add sw DFS pattern detector support for mt76x2 based devices. Dfs pattern supported: - short pulse radar patterns - staggered radar patterns Changes since v1: - improve code readability of mt76x2_dfs_fetch_event() adding macros for event fields Lorenzo Bianconi (4): mt76: introduce mt76_{incr,decr} utility routines mt76x2: dfs: add sw event ring buffer mt76x2: dfs: add sw pattern detector mt76x2: debugfs: add sw pulse statistics to dfs debugfs drivers/net/wireless/mediatek/mt76/mt76.h | 12 + .../wireless/mediatek/mt76/mt76x2_debugfs.c | 8 + .../net/wireless/mediatek/mt76/mt76x2_dfs.c | 377 +++++++++++++++++- .../net/wireless/mediatek/mt76/mt76x2_dfs.h | 64 +++ 4 files changed, 458 insertions(+), 3 deletions(-) -- 2.17.1