generic: add more missing linux 4.1 symbols
[openwrt/staging/chunkeey.git] / package / kernel / mac80211 / patches / 302-ath-DFS-limit-number-of-potential-PRI-sequences.patch
1 From: Zefir Kurtisi <zefir.kurtisi@neratec.com>
2 Date: Tue, 16 Jun 2015 10:34:03 +0200
3 Subject: [PATCH] ath: DFS - limit number of potential PRI sequences
4
5 In the PRI detector, after the current radar pulse
6 has been checked agains existing PRI sequences, it
7 is considered as part of a new potential sequence.
8
9 Previously, the condition to accept a new sequence
10 was to have at least the same number of pulses as
11 the longest matching sequence. This was wrong,
12 since it led to duplicates of PRI sequences.
13
14 This patch changes the acceptance criteria for new
15 potential sequences from 'at least' to 'more than'
16 the longest existing.
17
18 Detection performance remains unaffected, while
19 the number of PRI sequences accounted at runtime
20 (and with it CPU load) is reduced by up to 50%.
21
22 Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
23 ---
24
25 --- a/drivers/net/wireless/ath/dfs_pri_detector.c
26 +++ b/drivers/net/wireless/ath/dfs_pri_detector.c
27 @@ -273,7 +273,7 @@ static bool pseq_handler_create_sequence
28 tmp_false_count++;
29 }
30 }
31 - if (ps.count < min_count)
32 + if (ps.count <= min_count)
33 /* did not reach minimum count, drop sequence */
34 continue;
35