mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
mac80211: fix an overflow issue in minstrel_ht
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38882 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user