Skip to content
Snippets Groups Projects
Commit 77c32f0e authored by Rafał Miłecki's avatar Rafał Miłecki
Browse files

nl80211: fix code calculating average signal and rate


Using average of previous average and the next value is highly
imprecise. E.g. for values 20, 20, 20, 180 it would result in /average/
of 100 (instead of 60). Fix it by storing & using an info of how many
samples were used for the previous calculation.

Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
parent 223e09bf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment