mac80211: fix an overflow issue in minstrel_ht
authorFelix Fietkau <nbd@openwrt.org>
Wed, 20 Nov 2013 17:33:46 +0000 (17:33 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 20 Nov 2013 17:33:46 +0000 (17:33 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38882

package/kernel/mac80211/patches/300-pending_work.patch

index 5ca87b766461f4e9966a02c788abfe80f7b473bb..60a06c60ff3ac1f8739c40f44c18a3bd85053c21 100644 (file)
  
        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);
  }