3 Index: on_firmware/openwrt/package/kernel/mac80211/patches/ath/496_radar_counter.patch
4 ===================================================================
6 +++ on_firmware/openwrt/package/kernel/mac80211/patches/ath/496_radar_counter.patch
8 +--- a/drivers/net/wireless/ath/dfs_pattern_detector.c
9 ++++ b/drivers/net/wireless/ath/dfs_pattern_detector.c
14 ++static int radar_found_counter = 0;
17 + * get_dfs_domain_radar_types() - get radar types for a given DFS domain
18 + * @param domain DFS domain
21 + dpd->last_pulse_ts = event->ts;
23 ++ /* Apply radar threshold according to ETSI EN 301893 V2.1.1, D2.
24 ++ * Only signals stronger than -64 dBm (at 0 dBi) have to be detected.
25 ++ * To be safe we use a very conservative threshold of rssi 20.
28 ++ if (20 > event->rssi)
32 + /* do type individual pattern matching */
33 + for (i = 0; i < dpd->num_radar_types; i++) {
34 + struct pri_detector *pd = cd->detectors[i];
38 + memcpy(rs, pd->rs, sizeof(*rs));
39 +- ath_dbg(dpd->common, DFS,
40 +- "DFS: radar found on freq=%d: id=%d, pri=%d, "
42 ++ if (radar_found_counter < 2) {
43 ++ radar_found_counter++;
46 ++ radar_found_counter = 0;
49 ++ printk( "DFS: radar found on freq=%d: id=%d, pri=%d, "
50 + "count=%d, count_false=%d\n",
51 + event->freq, pd->rs->type_id,
52 + ps->pri, ps->count, ps->count_falses);