Lines Matching refs:next_gw
264 struct batadv_gw_node *next_gw = NULL; in batadv_gw_election() local
277 next_gw = batadv_gw_get_best_gw_node(bat_priv); in batadv_gw_election()
279 if (curr_gw == next_gw) in batadv_gw_election()
282 if (next_gw) { in batadv_gw_election()
283 sprintf(gw_addr, "%pM", next_gw->orig_node->orig); in batadv_gw_election()
285 router = batadv_orig_router_get(next_gw->orig_node, in batadv_gw_election()
300 if ((curr_gw) && (!next_gw)) { in batadv_gw_election()
305 } else if ((!curr_gw) && (next_gw)) { in batadv_gw_election()
308 next_gw->orig_node->orig, in batadv_gw_election()
309 next_gw->bandwidth_down / 10, in batadv_gw_election()
310 next_gw->bandwidth_down % 10, in batadv_gw_election()
311 next_gw->bandwidth_up / 10, in batadv_gw_election()
312 next_gw->bandwidth_up % 10, in batadv_gw_election()
319 next_gw->orig_node->orig, in batadv_gw_election()
320 next_gw->bandwidth_down / 10, in batadv_gw_election()
321 next_gw->bandwidth_down % 10, in batadv_gw_election()
322 next_gw->bandwidth_up / 10, in batadv_gw_election()
323 next_gw->bandwidth_up % 10, in batadv_gw_election()
329 batadv_gw_select(bat_priv, next_gw); in batadv_gw_election()
334 if (next_gw) in batadv_gw_election()
335 batadv_gw_node_free_ref(next_gw); in batadv_gw_election()