OSDN Git Service

batman-adv: Add function to convert string to batadv throughput
authorSven Eckelmann <sven@narfation.org>
Sun, 13 Sep 2015 07:44:45 +0000 (09:44 +0200)
committerAntonio Quartulli <a@unstable.cc>
Sat, 9 Jan 2016 12:56:00 +0000 (20:56 +0800)
commitd737ccbed3e62dd45d631cf69183de005144d05b
tree474b03d8571a2746c227b7f8d8f68e0d7e7eb059
parent9e728e84389ba8317d1444bdf256e34ad467f3da
batman-adv: Add function to convert string to batadv throughput

The code to convert the throughput information from a string to the
batman-adv internal (100Kibit/s) representation is duplicated in
batadv_parse_gw_bandwidth. Move this functionality to its own function
batadv_parse_throughput to reduce the code complexity.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/gateway_common.c