Browse Source

mac80211: fix an overflow issue in minstrel_ht

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 38882
Felix Fietkau 12 years ago
parent
commit
1a0ae39a7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/kernel/mac80211/patches/300-pending_work.patch

+ 1 - 1
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);
  }