diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-06 16:26:34 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-07-06 16:26:34 +0000 |
commit | 9b73f4e9475e95737d16630677a49809aa83e40d (patch) | |
tree | 66d0dbbf2f9cac91f4c5a4c9800a040d8fc9e7c9 /package/kernel/mac80211/patches/302-ath-DFS-limit-number-of-potential-PRI-sequences.patch | |
parent | 3d3e17a76291b9abf4ab801b79ebd9f51f8337ab (diff) | |
download | master-187ad058-9b73f4e9475e95737d16630677a49809aa83e40d.tar.gz master-187ad058-9b73f4e9475e95737d16630677a49809aa83e40d.tar.bz2 master-187ad058-9b73f4e9475e95737d16630677a49809aa83e40d.zip |
mac80211: update to version 2015-06-22
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46198 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/302-ath-DFS-limit-number-of-potential-PRI-sequences.patch')
-rw-r--r-- | package/kernel/mac80211/patches/302-ath-DFS-limit-number-of-potential-PRI-sequences.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/302-ath-DFS-limit-number-of-potential-PRI-sequences.patch b/package/kernel/mac80211/patches/302-ath-DFS-limit-number-of-potential-PRI-sequences.patch new file mode 100644 index 0000000000..e403e6a7ac --- /dev/null +++ b/package/kernel/mac80211/patches/302-ath-DFS-limit-number-of-potential-PRI-sequences.patch @@ -0,0 +1,35 @@ +From: Zefir Kurtisi <zefir.kurtisi@neratec.com> +Date: Tue, 16 Jun 2015 10:34:03 +0200 +Subject: [PATCH] ath: DFS - limit number of potential PRI sequences + +In the PRI detector, after the current radar pulse +has been checked agains existing PRI sequences, it +is considered as part of a new potential sequence. + +Previously, the condition to accept a new sequence +was to have at least the same number of pulses as +the longest matching sequence. This was wrong, +since it led to duplicates of PRI sequences. + +This patch changes the acceptance criteria for new +potential sequences from 'at least' to 'more than' +the longest existing. + +Detection performance remains unaffected, while +the number of PRI sequences accounted at runtime +(and with it CPU load) is reduced by up to 50%. + +Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com> +--- + +--- a/drivers/net/wireless/ath/dfs_pri_detector.c ++++ b/drivers/net/wireless/ath/dfs_pri_detector.c +@@ -273,7 +273,7 @@ static bool pseq_handler_create_sequence + tmp_false_count++; + } + } +- if (ps.count < min_count) ++ if (ps.count <= min_count) + /* did not reach minimum count, drop sequence */ + continue; + |