Lines Matching refs:next_gw
203 struct batadv_gw_node *next_gw = NULL;
223 next_gw = bat_priv->algo_ops->gw.get_best_gw_node(bat_priv);
225 if (curr_gw == next_gw)
228 if (next_gw) {
229 sprintf(gw_addr, "%pM", next_gw->orig_node->orig);
231 router = batadv_orig_router_get(next_gw->orig_node,
246 if (curr_gw && !next_gw) {
251 } else if (!curr_gw && next_gw) {
254 next_gw->orig_node->orig,
255 next_gw->bandwidth_down / 10,
256 next_gw->bandwidth_down % 10,
257 next_gw->bandwidth_up / 10,
258 next_gw->bandwidth_up % 10,
265 next_gw->orig_node->orig,
266 next_gw->bandwidth_down / 10,
267 next_gw->bandwidth_down % 10,
268 next_gw->bandwidth_up / 10,
269 next_gw->bandwidth_up % 10,
275 batadv_gw_select(bat_priv, next_gw);
280 if (next_gw)
281 batadv_gw_node_put(next_gw);