From 1a0ae39a7e69821a85c302e9b045c540593fc652 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 20 Nov 2013 17:33:46 +0000 Subject: [PATCH] mac80211: fix an overflow issue in minstrel_ht Signed-off-by: Felix Fietkau SVN-Revision: 38882 --- package/kernel/mac80211/patches/300-pending_work.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/mac80211/patches/300-pending_work.patch b/package/kernel/mac80211/patches/300-pending_work.patch index 5ca87b76646..60a06c60ff3 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); } -- 2.30.2