commit | d737ccbed3e62dd45d631cf69183de005144d05b | [log] [tgz] |
---|---|---|
author | Sven Eckelmann <sven@narfation.org> | Sun Sep 13 09:44:45 2015 +0200 |
committer | Antonio Quartulli <a@unstable.cc> | Sat Jan 09 20:56:00 2016 +0800 |
tree | 474b03d8571a2746c227b7f8d8f68e0d7e7eb059 | |
parent | 9e728e84389ba8317d1444bdf256e34ad467f3da [diff] |
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>