Lines Matching refs:next_gw
250 struct batadv_gw_node *curr_gw = NULL, *next_gw = NULL; in batadv_gw_election() local
263 next_gw = batadv_gw_get_best_gw_node(bat_priv); in batadv_gw_election()
265 if (curr_gw == next_gw) in batadv_gw_election()
268 if (next_gw) { in batadv_gw_election()
269 sprintf(gw_addr, "%pM", next_gw->orig_node->orig); in batadv_gw_election()
271 router = batadv_orig_router_get(next_gw->orig_node, in batadv_gw_election()
286 if ((curr_gw) && (!next_gw)) { in batadv_gw_election()
291 } else if ((!curr_gw) && (next_gw)) { in batadv_gw_election()
294 next_gw->orig_node->orig, in batadv_gw_election()
295 next_gw->bandwidth_down / 10, in batadv_gw_election()
296 next_gw->bandwidth_down % 10, in batadv_gw_election()
297 next_gw->bandwidth_up / 10, in batadv_gw_election()
298 next_gw->bandwidth_up % 10, in batadv_gw_election()
305 next_gw->orig_node->orig, in batadv_gw_election()
306 next_gw->bandwidth_down / 10, in batadv_gw_election()
307 next_gw->bandwidth_down % 10, in batadv_gw_election()
308 next_gw->bandwidth_up / 10, in batadv_gw_election()
309 next_gw->bandwidth_up % 10, in batadv_gw_election()
315 batadv_gw_select(bat_priv, next_gw); in batadv_gw_election()
320 if (next_gw) in batadv_gw_election()
321 batadv_gw_node_free_ref(next_gw); in batadv_gw_election()