[next,2/3] batman-adv: convert wifi driver throughput to multiples of 100kbps
Commit Message
Fixes: 5c324517 ("ELP - compute the metric based on the estimated throughput")
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
---
net/batman-adv/bat_v_elp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Feb 01, 2016 at 12:21:19AM +0800, Marek Lindner wrote:
> Fixes: 5c324517 ("ELP - compute the metric based on the estimated throughput")
>
> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Maybe before merging this patch you add a one line commit message here saying
that expected_throughput is supposed to be expressed in kbps, therefore this
fix is required ?
Other than that:
Acked-by: Antonio Quartulli <a@unstable.cc>
@@ -100,7 +100,7 @@ static u32 batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh)
return 0;
}
if (!ret)
- return sinfo.expected_throughput / 10;
+ return sinfo.expected_throughput / 100;
}
/* unsupported WiFi driver version */