From: nbd Date: Wed, 20 Nov 2013 17:33:46 +0000 (+0000) Subject: mac80211: fix an overflow issue in minstrel_ht X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=68eeb9f96c579986dbcdf2472a7a3c3770338f4b;p=openwrt.git mac80211: fix an overflow issue in minstrel_ht Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38882 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/kernel/mac80211/patches/300-pending_work.patch b/package/kernel/mac80211/patches/300-pending_work.patch index 5ca87b7664..60a06c60ff 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); }