summaryrefslogtreecommitdiff
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-20 17:33:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-11-20 17:33:46 +0000
commit1a0ae39a7e69821a85c302e9b045c540593fc652 (patch)
tree876f3a6aa95242f69e0ea7c952015f5720778d23 /package/kernel
parentd823c20f051271f36f955c538dc09a93025078b5 (diff)
downloadmtk-20170518-1a0ae39a7e69821a85c302e9b045c540593fc652.zip
mtk-20170518-1a0ae39a7e69821a85c302e9b045c540593fc652.tar.gz
mtk-20170518-1a0ae39a7e69821a85c302e9b045c540593fc652.tar.bz2
mac80211: fix an overflow issue in minstrel_ht
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38882
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mac80211/patches/300-pending_work.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/patches/300-pending_work.patch b/package/kernel/mac80211/patches/300-pending_work.patch
index 5ca87b7..60a06c6 100644
--- a/package/kernel/mac80211/patches/300-pending_work.patch
+++ b/package/kernel/mac80211/patches/300-pending_work.patch
@@ -4758,7 +4758,7 @@
nsecs += minstrel_mcs_groups[group].duration[rate];
- tp = 1000000 * ((mr->probability * 1000) / nsecs);
-+ tp = 1000000 * (prob * 1000) / nsecs;
++ tp = 1000000 * ((prob * 1000) / nsecs);
mr->cur_tp = MINSTREL_TRUNC(tp);
}