diff options
author | Antonio Quartulli <antonio@open-mesh.com> | 2013-11-04 14:59:41 -0500 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2014-01-08 14:49:41 -0500 |
commit | 4e820e72db584e39c7d8699eb359d9a94eb837e3 (patch) | |
tree | 7964442e2f38d00ae5b3f52bca819da87ddb6553 /net/batman-adv/gateway_common.c | |
parent | f3163181573f3dea264c5ffd578c187aef898bbb (diff) |
batman-adv: rename gw_deselect() to gw_reselect()
The function batadv_gw_deselect() is actually not deselecting
anything. It is just informing the GW code to perform a
re-election procedure when possible.
The current gateway is not being touched at all and therefore
the name of this function is rather misleading.
Rename it to batadv_gw_reselect() to batadv_gw_reselect()
to make its behaviour easier to grasp.
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/gateway_common.c')
-rw-r--r-- | net/batman-adv/gateway_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/gateway_common.c b/net/batman-adv/gateway_common.c index 5e63b8110a57..f76816ce9faf 100644 --- a/net/batman-adv/gateway_common.c +++ b/net/batman-adv/gateway_common.c | |||
@@ -162,7 +162,7 @@ ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, | |||
162 | if ((down_curr == down_new) && (up_curr == up_new)) | 162 | if ((down_curr == down_new) && (up_curr == up_new)) |
163 | return count; | 163 | return count; |
164 | 164 | ||
165 | batadv_gw_deselect(bat_priv); | 165 | batadv_gw_reselect(bat_priv); |
166 | batadv_info(net_dev, | 166 | batadv_info(net_dev, |
167 | "Changing gateway bandwidth from: '%u.%u/%u.%u MBit' to: '%u.%u/%u.%u MBit'\n", | 167 | "Changing gateway bandwidth from: '%u.%u/%u.%u MBit' to: '%u.%u/%u.%u MBit'\n", |
168 | down_curr / 10, down_curr % 10, up_curr / 10, up_curr % 10, | 168 | down_curr / 10, down_curr % 10, up_curr / 10, up_curr % 10, |