mirror of https://github.com/hak5/openwrt.git
mac80211: fix an overflow issue in minstrel_ht
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38882lede-17.01
parent
d823c20f05
commit
1a0ae39a7e
|
@ -4758,7 +4758,7 @@
|
||||||
|
|
||||||
nsecs += minstrel_mcs_groups[group].duration[rate];
|
nsecs += minstrel_mcs_groups[group].duration[rate];
|
||||||
- tp = 1000000 * ((mr->probability * 1000) / nsecs);
|
- tp = 1000000 * ((mr->probability * 1000) / nsecs);
|
||||||
+ tp = 1000000 * (prob * 1000) / nsecs;
|
+ tp = 1000000 * ((prob * 1000) / nsecs);
|
||||||
|
|
||||||
mr->cur_tp = MINSTREL_TRUNC(tp);
|
mr->cur_tp = MINSTREL_TRUNC(tp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue